diff --git a/packages/google-cloud-osconfig/.eslintignore b/packages/google-cloud-osconfig/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-osconfig/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-osconfig/.eslintrc.json b/packages/google-cloud-osconfig/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-osconfig/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-osconfig/.gitattributes b/packages/google-cloud-osconfig/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-osconfig/.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-osconfig/.github/.OwlBot.yaml b/packages/google-cloud-osconfig/.github/.OwlBot.yaml
new file mode 100644
index 00000000000..e525106dca3
--- /dev/null
+++ b/packages/google-cloud-osconfig/.github/.OwlBot.yaml
@@ -0,0 +1,28 @@
+# Copyright 2021 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+docker:
+ image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
+
+deep-remove-regex:
+ - /owl-bot-staging
+
+deep-preserve-regex:
+ - /owl-bot-staging/v1beta
+
+deep-copy-regex:
+ - source: /google/cloud/osconfig/(v.*)/.*-nodejs/(.*)
+ dest: /owl-bot-staging/$1/$2
+
+begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b
+
diff --git a/packages/google-cloud-osconfig/.gitignore b/packages/google-cloud-osconfig/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-cloud-osconfig/.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-osconfig/.jsdoc.js b/packages/google-cloud-osconfig/.jsdoc.js
new file mode 100644
index 00000000000..a78d650c774
--- /dev/null
+++ b/packages/google-cloud-osconfig/.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/os-config',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-osconfig/.mocharc.js b/packages/google-cloud-osconfig/.mocharc.js
new file mode 100644
index 00000000000..0b600509bed
--- /dev/null
+++ b/packages/google-cloud-osconfig/.mocharc.js
@@ -0,0 +1,29 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+const config = {
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000,
+ "recursive": true
+}
+if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
+ delete config['throw-deprecation'];
+}
+if (process.env.MOCHA_REPORTER) {
+ config.reporter = process.env.MOCHA_REPORTER;
+}
+if (process.env.MOCHA_REPORTER_OUTPUT) {
+ config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
+}
+module.exports = config
diff --git a/packages/google-cloud-osconfig/.nycrc b/packages/google-cloud-osconfig/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-osconfig/.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-osconfig/.prettierignore b/packages/google-cloud-osconfig/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-osconfig/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-osconfig/.prettierrc.js b/packages/google-cloud-osconfig/.prettierrc.js
new file mode 100644
index 00000000000..d1b95106f4c
--- /dev/null
+++ b/packages/google-cloud-osconfig/.prettierrc.js
@@ -0,0 +1,17 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/packages/google-cloud-osconfig/.repo-metadata.json b/packages/google-cloud-osconfig/.repo-metadata.json
new file mode 100644
index 00000000000..73385278141
--- /dev/null
+++ b/packages/google-cloud-osconfig/.repo-metadata.json
@@ -0,0 +1,16 @@
+{
+ "language": "nodejs",
+ "product_documentation": "https://cloud.google.com/compute/docs/os-patch-management",
+ "repo": "googleapis/nodejs-os-config",
+ "repo_short": "nodejs-os-config",
+ "default_version": "v1",
+ "api_description": "provides OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances.",
+ "name_pretty": "OS Config API",
+ "release_level": "stable",
+ "distribution_name": "@google-cloud/os-config",
+ "name": "osconfig",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/os-config/latest",
+ "api_id": "osconfig.googleapis.com",
+ "api_shortname": "osconfig",
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-cloud-osconfig/CHANGELOG.md b/packages/google-cloud-osconfig/CHANGELOG.md
new file mode 100644
index 00000000000..c0ee91ce54d
--- /dev/null
+++ b/packages/google-cloud-osconfig/CHANGELOG.md
@@ -0,0 +1,230 @@
+# Changelog
+
+## [2.1.2](https://github.com/googleapis/nodejs-os-config/compare/v2.1.1...v2.1.2) (2022-11-11)
+
+
+### Bug Fixes
+
+* Allow passing gax instance to client constructor ([#220](https://github.com/googleapis/nodejs-os-config/issues/220)) ([13ef9fc](https://github.com/googleapis/nodejs-os-config/commit/13ef9fc7804fe21d200d3053196371f5a621c18a))
+* **deps:** Use google-gax v3.5.2 ([#228](https://github.com/googleapis/nodejs-os-config/issues/228)) ([c02bb82](https://github.com/googleapis/nodejs-os-config/commit/c02bb8288378280736343c0022ec8c7693285738))
+* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-os-config/issues/1553)) ([#219](https://github.com/googleapis/nodejs-os-config/issues/219)) ([7c06e21](https://github.com/googleapis/nodejs-os-config/commit/7c06e2122f41f730d746c68b5ddaa2e93e5972dd))
+* Preserve default values in x-goog-request-params header ([#222](https://github.com/googleapis/nodejs-os-config/issues/222)) ([19a88d1](https://github.com/googleapis/nodejs-os-config/commit/19a88d1d760b3235df81afe04d0de9ead31b55d1))
+* Regenerated protos JS and TS definitions ([#231](https://github.com/googleapis/nodejs-os-config/issues/231)) ([9c1c5ee](https://github.com/googleapis/nodejs-os-config/commit/9c1c5ee464ca93f974e88d52cd8045cfd54b6872))
+* use google-gax v3.3.0 ([7c06e21](https://github.com/googleapis/nodejs-os-config/commit/7c06e2122f41f730d746c68b5ddaa2e93e5972dd))
+
+## [2.1.1](https://github.com/googleapis/nodejs-os-config/compare/v2.1.0...v2.1.1) (2022-08-23)
+
+
+### Bug Fixes
+
+* better support for fallback mode ([#215](https://github.com/googleapis/nodejs-os-config/issues/215)) ([6460d25](https://github.com/googleapis/nodejs-os-config/commit/6460d2540ee1c65230c5bfefac19d5f60e57dd35))
+* change import long to require ([#216](https://github.com/googleapis/nodejs-os-config/issues/216)) ([4a53d92](https://github.com/googleapis/nodejs-os-config/commit/4a53d9258f285f29b7fe47659d76368f7f116b35))
+* remove pip install statements ([#1546](https://github.com/googleapis/nodejs-os-config/issues/1546)) ([#218](https://github.com/googleapis/nodejs-os-config/issues/218)) ([60e2d27](https://github.com/googleapis/nodejs-os-config/commit/60e2d273dcff7b2d88db8b4689524341e138edd3))
+
+## [2.1.0](https://github.com/googleapis/nodejs-os-config/compare/v2.0.0...v2.1.0) (2022-07-02)
+
+
+### Features
+
+* REGAPIC LRO; fix: make some camelcased methods work ([#211](https://github.com/googleapis/nodejs-os-config/issues/211)) ([af5d7d2](https://github.com/googleapis/nodejs-os-config/commit/af5d7d2c688c081a028c33f14490271ce2e52725))
+
+## [2.0.0](https://github.com/googleapis/nodejs-os-config/compare/v1.12.1...v2.0.0) (2022-05-20)
+
+
+### ⚠ BREAKING CHANGES
+
+* update library to use Node 12 (#204)
+
+### Build System
+
+* update library to use Node 12 ([#204](https://github.com/googleapis/nodejs-os-config/issues/204)) ([39b393c](https://github.com/googleapis/nodejs-os-config/commit/39b393c6031079fba097b38458be6db8625515c5))
+
+### [1.12.1](https://github.com/googleapis/nodejs-os-config/compare/v1.12.0...v1.12.1) (2022-02-11)
+
+
+### Bug Fixes
+
+* update third_party protos to the most actual version: ([#186](https://github.com/googleapis/nodejs-os-config/issues/186)) ([9aceeab](https://github.com/googleapis/nodejs-os-config/commit/9aceeab92c12856e88cb7e59db29ee41cfba5465))
+
+## [1.12.0](https://github.com/googleapis/nodejs-os-config/compare/v1.11.0...v1.12.0) (2022-02-08)
+
+
+### Features
+
+* Update osconfig v1 protos ([#183](https://github.com/googleapis/nodejs-os-config/issues/183)) ([8ce2c5a](https://github.com/googleapis/nodejs-os-config/commit/8ce2c5ab9cfe2d4d0e12a574135b737279b86b22))
+
+## [1.11.0](https://www.github.com/googleapis/nodejs-os-config/compare/v1.10.0...v1.11.0) (2021-11-12)
+
+
+### Features
+
+* Update OSConfig API ([#164](https://www.github.com/googleapis/nodejs-os-config/issues/164)) ([19e820a](https://www.github.com/googleapis/nodejs-os-config/commit/19e820a362341b10225562bf76dc0f34e3e3fcae))
+
+## [1.10.0](https://www.github.com/googleapis/nodejs-os-config/compare/v1.9.1...v1.10.0) (2021-10-20)
+
+
+### Features
+
+* Update osconfig v1 and v1alpha RecurringSchedule.Frequency with DAILY frequency ([0a79eba](https://www.github.com/googleapis/nodejs-os-config/commit/0a79eba9f2a3e0939a74c9aa437b8890801ebd2a))
+
+### [1.9.1](https://www.github.com/googleapis/nodejs-os-config/compare/v1.9.0...v1.9.1) (2021-09-09)
+
+
+### Bug Fixes
+
+* **build:** switch primary branch to main ([#146](https://www.github.com/googleapis/nodejs-os-config/issues/146)) ([3947132](https://www.github.com/googleapis/nodejs-os-config/commit/39471322fa54f12943ff74e4ff4548034a99c5e6))
+
+## [1.9.0](https://www.github.com/googleapis/nodejs-os-config/compare/v1.8.0...v1.9.0) (2021-09-07)
+
+
+### Features
+
+* add OSConfigZonalService API Committer: [@jaiminsh](https://www.github.com/jaiminsh) ([#144](https://www.github.com/googleapis/nodejs-os-config/issues/144)) ([317a7a2](https://www.github.com/googleapis/nodejs-os-config/commit/317a7a2c3ea899b28fd0a5f2f4abe18524df1f7a))
+
+## [1.8.0](https://www.github.com/googleapis/nodejs-os-config/compare/v1.7.0...v1.8.0) (2021-08-30)
+
+
+### Features
+
+* Update osconfig v1 and v1alpha with WindowsApplication ([#142](https://www.github.com/googleapis/nodejs-os-config/issues/142)) ([6ad0c6d](https://www.github.com/googleapis/nodejs-os-config/commit/6ad0c6d547891986e3080fbcfc73ee64f7a31681))
+
+## [1.7.0](https://www.github.com/googleapis/nodejs-os-config/compare/v1.6.6...v1.7.0) (2021-08-23)
+
+
+### Features
+
+* turns on self-signed JWT feature flag ([#138](https://www.github.com/googleapis/nodejs-os-config/issues/138)) ([321fc5d](https://www.github.com/googleapis/nodejs-os-config/commit/321fc5d9088ad878d5343735659fc2884a76136a))
+
+### [1.6.6](https://www.github.com/googleapis/nodejs-os-config/compare/v1.6.5...v1.6.6) (2021-08-17)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.24.1 ([#136](https://www.github.com/googleapis/nodejs-os-config/issues/136)) ([d2f27b5](https://www.github.com/googleapis/nodejs-os-config/commit/d2f27b551e224cfcf5bc43dd8604dd1f2aa59fe9))
+
+### [1.6.5](https://www.github.com/googleapis/nodejs-os-config/compare/v1.6.4...v1.6.5) (2021-07-16)
+
+
+### Bug Fixes
+
+* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#128](https://www.github.com/googleapis/nodejs-os-config/issues/128)) ([4d7deda](https://www.github.com/googleapis/nodejs-os-config/commit/4d7deda72a06ecdfa2e88a9c2373fb3ec6365b77))
+
+### [1.6.4](https://www.github.com/googleapis/nodejs-os-config/compare/v1.6.3...v1.6.4) (2021-07-12)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.1 ([#126](https://www.github.com/googleapis/nodejs-os-config/issues/126)) ([a2744c6](https://www.github.com/googleapis/nodejs-os-config/commit/a2744c63a4d39a76e33f8a99d92c4027f25fc3a7))
+
+### [1.6.3](https://www.github.com/googleapis/nodejs-os-config/compare/v1.6.2...v1.6.3) (2021-07-01)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.0 with mTLS ([#123](https://www.github.com/googleapis/nodejs-os-config/issues/123)) ([29f562b](https://www.github.com/googleapis/nodejs-os-config/commit/29f562b5f3489e2bfd2d2ae797d3f0212375fe01))
+
+### [1.6.2](https://www.github.com/googleapis/nodejs-os-config/compare/v1.6.1...v1.6.2) (2021-06-22)
+
+
+### Bug Fixes
+
+* make request optional in all cases ([#117](https://www.github.com/googleapis/nodejs-os-config/issues/117)) ([4d1bbb8](https://www.github.com/googleapis/nodejs-os-config/commit/4d1bbb8593c3ca0ea0f6e8af1737b7106239617b))
+
+### [1.6.1](https://www.github.com/googleapis/nodejs-os-config/compare/v1.6.0...v1.6.1) (2021-05-25)
+
+
+### Bug Fixes
+
+* GoogleAdsError missing using generator version after 1.3.0 ([#108](https://www.github.com/googleapis/nodejs-os-config/issues/108)) ([3d61a36](https://www.github.com/googleapis/nodejs-os-config/commit/3d61a36652465fa948595a18a99e0ebb3ecd0eac))
+
+## [1.6.0](https://www.github.com/googleapis/nodejs-os-config/compare/v1.5.0...v1.6.0) (2021-05-24)
+
+
+### Features
+
+* OSConfig: add ExecResourceOutput and per step error message. ([#105](https://www.github.com/googleapis/nodejs-os-config/issues/105)) ([3d9dbe9](https://www.github.com/googleapis/nodejs-os-config/commit/3d9dbe9f619798e691df9e04a65f8e42a2c2b0bc))
+
+## [1.5.0](https://www.github.com/googleapis/nodejs-os-config/compare/v1.4.0...v1.5.0) (2021-05-12)
+
+
+### Features
+
+* add OSConfig v1alpha api ([#100](https://www.github.com/googleapis/nodejs-os-config/issues/100)) ([aa51617](https://www.github.com/googleapis/nodejs-os-config/commit/aa51617e8d473a1b2b08f878d3c9609b58274341))
+
+
+### Bug Fixes
+
+* **deps:** require google-gax v2.12.0 ([#95](https://www.github.com/googleapis/nodejs-os-config/issues/95)) ([1aae782](https://www.github.com/googleapis/nodejs-os-config/commit/1aae7821fe5d4606da2e04c05e383b43b698067e))
+* use require() to load JSON protos ([#98](https://www.github.com/googleapis/nodejs-os-config/issues/98)) ([d9e466b](https://www.github.com/googleapis/nodejs-os-config/commit/d9e466b9e54bd6ec667a0dfd324a47ec5593d7e1))
+
+## [1.4.0](https://www.github.com/googleapis/nodejs-os-config/compare/v1.3.1...v1.4.0) (2021-01-09)
+
+
+### Features
+
+* adds style enumeration ([#75](https://www.github.com/googleapis/nodejs-os-config/issues/75)) ([797ad14](https://www.github.com/googleapis/nodejs-os-config/commit/797ad14b56e331d5926ca7d952583b4094217ccc))
+
+### [1.3.1](https://www.github.com/googleapis/nodejs-os-config/compare/v1.3.0...v1.3.1) (2020-11-25)
+
+
+### Bug Fixes
+
+* check for fetch on window ([#69](https://www.github.com/googleapis/nodejs-os-config/issues/69)) ([02a5374](https://www.github.com/googleapis/nodejs-os-config/commit/02a53747e1b52d4a5d05714d8868ceee2c9eabb1))
+
+## [1.3.0](https://www.github.com/googleapis/nodejs-os-config/compare/v1.2.3...v1.3.0) (2020-11-12)
+
+
+### Features
+
+* Added PatchRollout feature to PatchDeployments inventory proto definitions for VM Manager Inventory ([#62](https://www.github.com/googleapis/nodejs-os-config/issues/62)) ([7c4e2a1](https://www.github.com/googleapis/nodejs-os-config/commit/7c4e2a171346cb5f5ad5068c25b4c982450585c3))
+
+### [1.2.3](https://www.github.com/googleapis/nodejs-os-config/compare/v1.2.2...v1.2.3) (2020-11-07)
+
+
+### Bug Fixes
+
+* do not modify options object, use defaultScopes ([#59](https://www.github.com/googleapis/nodejs-os-config/issues/59)) ([c6409f8](https://www.github.com/googleapis/nodejs-os-config/commit/c6409f8f5eae987853369a4206671b353d1da983))
+
+### [1.2.2](https://www.github.com/googleapis/nodejs-os-config/compare/v1.2.1...v1.2.2) (2020-07-29)
+
+
+### Bug Fixes
+
+* move gitattributes files to node templates ([#34](https://www.github.com/googleapis/nodejs-os-config/issues/34)) ([6d2276d](https://www.github.com/googleapis/nodejs-os-config/commit/6d2276d2b7b55672b61385b998bb490baf59bbbc))
+
+### [1.2.1](https://www.github.com/googleapis/nodejs-os-config/compare/v1.2.0...v1.2.1) (2020-06-18)
+
+
+### Bug Fixes
+
+* update node issue template ([#18](https://www.github.com/googleapis/nodejs-os-config/issues/18)) ([3d03605](https://www.github.com/googleapis/nodejs-os-config/commit/3d0360512d98ecdc11fd0267a0d4bfed5bc52900))
+
+## [1.2.0](https://www.github.com/googleapis/nodejs-os-config/compare/v1.1.0...v1.2.0) (2020-06-16)
+
+
+### Features
+
+* promote library to GA ([#16](https://www.github.com/googleapis/nodejs-os-config/issues/16)) ([04b3c63](https://www.github.com/googleapis/nodejs-os-config/commit/04b3c63d188e2b8da10594bae80b4e47b7a89390))
+
+## [1.1.0](https://www.github.com/googleapis/nodejs-os-config/compare/v1.0.0...v1.1.0) (2020-06-15)
+
+
+### Features
+
+* move ts target to es2018 from es2016 ([#11](https://www.github.com/googleapis/nodejs-os-config/issues/11)) ([eec48b0](https://www.github.com/googleapis/nodejs-os-config/commit/eec48b072d3eeb802b0736494ffba6f39d23ae19))
+
+
+### Bug Fixes
+
+* proper fallback option handling ([40f5d76](https://www.github.com/googleapis/nodejs-os-config/commit/40f5d76a8401f5a534e17fe7d5613fc839671383))
+
+## 1.0.0 (2020-05-12)
+
+
+### ⚠ BREAKING CHANGES
+
+* initial generation of library (#1)
+
+### Features
+
+* initial generation of library ([#1](https://www.github.com/googleapis/nodejs-os-config/issues/1)) ([b526b74](https://www.github.com/googleapis/nodejs-os-config/commit/b526b74051bd6dc093f3afb4dc2692cbb6bd8c3a))
diff --git a/packages/google-cloud-osconfig/CODE_OF_CONDUCT.md b/packages/google-cloud-osconfig/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-osconfig/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-osconfig/CONTRIBUTING.md b/packages/google-cloud-osconfig/CONTRIBUTING.md
new file mode 100644
index 00000000000..34c1ac3fb2a
--- /dev/null
+++ b/packages/google-cloud-osconfig/CONTRIBUTING.md
@@ -0,0 +1,75 @@
+# 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 the OS Config API 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=osconfig.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-osconfig/LICENSE b/packages/google-cloud-osconfig/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-osconfig/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-osconfig/README.md b/packages/google-cloud-osconfig/README.md
new file mode 100644
index 00000000000..c7100c5acb1
--- /dev/null
+++ b/packages/google-cloud-osconfig/README.md
@@ -0,0 +1,156 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [OS Config API: Node.js Client](https://github.com/googleapis/nodejs-os-config)
+
+[](https://cloud.google.com/terms/launch-stages)
+[](https://www.npmjs.org/package/@google-cloud/os-config)
+
+
+
+
+Osconfig client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/nodejs-os-config/blob/main/CHANGELOG.md).
+
+* [OS Config API Node.js Client API Reference][client-docs]
+* [OS Config API Documentation][product-docs]
+* [github.com/googleapis/nodejs-os-config](https://github.com/googleapis/nodejs-os-config)
+
+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 the OS Config API 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/os-config
+```
+
+
+### Using the client library
+
+```javascript
+// Imports the Google Cloud client library
+const {OsConfigServiceClient} = require('@google-cloud/os-config');
+
+// Creates a client
+const client = new OsConfigServiceClient();
+
+// project = 'my-project' // Project to list deployments for.
+
+async function listPatchDeployments() {
+ const [deployments] = await client.listPatchDeployments({
+ parent: `projects/${project}`,
+ });
+ console.info(`found ${deployments.length} deployments:`);
+ console.info(deployments);
+}
+const listPatchDeploymentsResponse = listPatchDeployments();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/nodejs-os-config/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Quickstart | [source code](https://github.com/googleapis/nodejs-os-config/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-os-config&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
+
+
+
+The [OS Config API 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/os-config@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+
+
+This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways
+unless absolutely necessary (e.g. because of critical security issues) or with
+an extensive deprecation period. Issues and requests against **stable** libraries
+are addressed with the highest priority.
+
+
+
+
+
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-os-config/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`, the `samples/README.md`,
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template. To edit one of these files, make an edit
+to its templates in
+[directory](https://github.com/googleapis/synthtool).
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/nodejs-os-config/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/os-config/latest
+[product-docs]: https://cloud.google.com/compute/docs/os-patch-management
+[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=osconfig.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-osconfig/linkinator.config.json b/packages/google-cloud-osconfig/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-osconfig/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-osconfig/package.json b/packages/google-cloud-osconfig/package.json
new file mode 100644
index 00000000000..faace764a6d
--- /dev/null
+++ b/packages/google-cloud-osconfig/package.json
@@ -0,0 +1,52 @@
+{
+ "name": "@google-cloud/os-config",
+ "version": "2.1.2",
+ "description": "Osconfig client for Node.js",
+ "repository": "googleapis/nodejs-os-config",
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "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",
+ "prefix": "cd samples; npm link ../; npm install",
+ "lint": "gts check",
+ "prelint": "cd samples; npm link ../; npm install",
+ "prepare": "npm run compile-protos && npm run compile",
+ "samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
+ "system-test": "c8 mocha build/system-test",
+ "test": "c8 mocha build/test"
+ },
+ "dependencies": {
+ "google-gax": "^3.5.2"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^18.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.1.2",
+ "gts": "^3.1.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^2.0.0",
+ "jsdoc-region-tag": "^2.0.0",
+ "linkinator": "^4.0.0",
+ "mocha": "^9.2.2",
+ "null-loader": "^4.0.0",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^9.0.0",
+ "typescript": "^4.6.4"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/common_resources.proto b/packages/google-cloud-osconfig/protos/google/cloud/common_resources.proto
new file mode 100644
index 00000000000..56c9f800d5e
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/common_resources.proto
@@ -0,0 +1,52 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This file contains stub messages for common resources in GCP.
+// It is not intended to be directly generated, and is instead used by
+// other tooling to be able to match common resource patterns.
+syntax = "proto3";
+
+package google.cloud;
+
+import "google/api/resource.proto";
+
+
+option (google.api.resource_definition) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ pattern: "projects/{project}"
+};
+
+
+option (google.api.resource_definition) = {
+ type: "cloudresourcemanager.googleapis.com/Organization"
+ pattern: "organizations/{organization}"
+};
+
+
+option (google.api.resource_definition) = {
+ type: "cloudresourcemanager.googleapis.com/Folder"
+ pattern: "folders/{folder}"
+};
+
+
+option (google.api.resource_definition) = {
+ type: "cloudbilling.googleapis.com/BillingAccount"
+ pattern: "billingAccounts/{billing_account}"
+};
+
+option (google.api.resource_definition) = {
+ type: "locations.googleapis.com/Location"
+ pattern: "projects/{project}/locations/{location}"
+};
+
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/inventory.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/inventory.proto
new file mode 100644
index 00000000000..92c2b81c832
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/inventory.proto
@@ -0,0 +1,384 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+import "google/type/date.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "Inventories";
+option java_package = "com.google.cloud.osconfig.v1";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1";
+option ruby_package = "Google::Cloud::OsConfig::V1";
+
+// OS Config Inventory is a service for collecting and reporting operating
+// system and package information on VM instances.
+
+// This API resource represents the available inventory data for a
+// Compute Engine virtual machine (VM) instance at a given point in time.
+//
+// You can use this API resource to determine the inventory data of your VM.
+//
+// For more information, see [Information provided by OS inventory
+// management](https://cloud.google.com/compute/docs/instances/os-inventory-management#data-collected).
+message Inventory {
+ option (google.api.resource) = {
+ type: "osconfig.googleapis.com/Inventory"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}/inventory"
+ };
+
+ // Operating system information for the VM.
+ message OsInfo {
+ // The VM hostname.
+ string hostname = 9;
+
+ // The operating system long name.
+ // For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019
+ // Datacenter'.
+ string long_name = 2;
+
+ // The operating system short name.
+ // For example, 'windows' or 'debian'.
+ string short_name = 3;
+
+ // The version of the operating system.
+ string version = 4;
+
+ // The system architecture of the operating system.
+ string architecture = 5;
+
+ // The kernel version of the operating system.
+ string kernel_version = 6;
+
+ // The kernel release of the operating system.
+ string kernel_release = 7;
+
+ // The current version of the OS Config agent running on the VM.
+ string osconfig_agent_version = 8;
+ }
+
+ // A single piece of inventory on a VM.
+ message Item {
+ // The origin of a specific inventory item.
+ enum OriginType {
+ // Invalid. An origin type must be specified.
+ ORIGIN_TYPE_UNSPECIFIED = 0;
+
+ // This inventory item was discovered as the result of the agent
+ // reporting inventory via the reporting API.
+ INVENTORY_REPORT = 1;
+ }
+
+ // The different types of inventory that are tracked on a VM.
+ enum Type {
+ // Invalid. An type must be specified.
+ TYPE_UNSPECIFIED = 0;
+
+ // This represents a package that is installed on the VM.
+ INSTALLED_PACKAGE = 1;
+
+ // This represents an update that is available for a package.
+ AVAILABLE_PACKAGE = 2;
+ }
+
+ // Identifier for this item, unique across items for this VM.
+ string id = 1;
+
+ // The origin of this inventory item.
+ OriginType origin_type = 2;
+
+ // When this inventory item was first detected.
+ google.protobuf.Timestamp create_time = 8;
+
+ // When this inventory item was last modified.
+ google.protobuf.Timestamp update_time = 9;
+
+ // The specific type of inventory, correlating to its specific details.
+ Type type = 5;
+
+ // Specific details of this inventory item based on its type.
+ oneof details {
+ // Software package present on the VM instance.
+ SoftwarePackage installed_package = 6;
+
+ // Software package available to be installed on the VM instance.
+ SoftwarePackage available_package = 7;
+ }
+ }
+
+ // Software package information of the operating system.
+ message SoftwarePackage {
+ // Information about the different types of software packages.
+ oneof details {
+ // Yum package info.
+ // For details about the yum package manager, see
+ // https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum.
+ VersionedPackage yum_package = 1;
+
+ // Details of an APT package.
+ // For details about the apt package manager, see
+ // https://wiki.debian.org/Apt.
+ VersionedPackage apt_package = 2;
+
+ // Details of a Zypper package.
+ // For details about the Zypper package manager, see
+ // https://en.opensuse.org/SDB:Zypper_manual.
+ VersionedPackage zypper_package = 3;
+
+ // Details of a Googet package.
+ // For details about the googet package manager, see
+ // https://github.com/google/googet.
+ VersionedPackage googet_package = 4;
+
+ // Details of a Zypper patch.
+ // For details about the Zypper package manager, see
+ // https://en.opensuse.org/SDB:Zypper_manual.
+ ZypperPatch zypper_patch = 5;
+
+ // Details of a Windows Update package.
+ // See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for
+ // information about Windows Update.
+ WindowsUpdatePackage wua_package = 6;
+
+ // Details of a Windows Quick Fix engineering package.
+ // See
+ // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
+ // for info in Windows Quick Fix Engineering.
+ WindowsQuickFixEngineeringPackage qfe_package = 7;
+
+ // Details of a COS package.
+ VersionedPackage cos_package = 8;
+
+ // Details of Windows Application.
+ WindowsApplication windows_application = 9;
+ }
+ }
+
+ // Information related to the a standard versioned package. This includes
+ // package info for APT, Yum, Zypper, and Googet package managers.
+ message VersionedPackage {
+ // The name of the package.
+ string package_name = 4;
+
+ // The system architecture this package is intended for.
+ string architecture = 2;
+
+ // The version of the package.
+ string version = 3;
+ }
+
+ // Details related to a Zypper Patch.
+ message ZypperPatch {
+ // The name of the patch.
+ string patch_name = 5;
+
+ // The category of the patch.
+ string category = 2;
+
+ // The severity specified for this patch
+ string severity = 3;
+
+ // Any summary information provided about this patch.
+ string summary = 4;
+ }
+
+ // Details related to a Windows Update package.
+ // Field data and names are taken from Windows Update API IUpdate Interface:
+ // https://docs.microsoft.com/en-us/windows/win32/api/_wua/
+ // Descriptive fields like title, and description are localized based on
+ // the locale of the VM being updated.
+ message WindowsUpdatePackage {
+ // Categories specified by the Windows Update.
+ message WindowsUpdateCategory {
+ // The identifier of the windows update category.
+ string id = 1;
+
+ // The name of the windows update category.
+ string name = 2;
+ }
+
+ // The localized title of the update package.
+ string title = 1;
+
+ // The localized description of the update package.
+ string description = 2;
+
+ // The categories that are associated with this update package.
+ repeated WindowsUpdateCategory categories = 3;
+
+ // A collection of Microsoft Knowledge Base article IDs that are associated
+ // with the update package.
+ repeated string kb_article_ids = 4;
+
+ // A hyperlink to the language-specific support information for the update.
+ string support_url = 11;
+
+ // A collection of URLs that provide more information about the update
+ // package.
+ repeated string more_info_urls = 5;
+
+ // Gets the identifier of an update package. Stays the same across
+ // revisions.
+ string update_id = 6;
+
+ // The revision number of this update package.
+ int32 revision_number = 7;
+
+ // The last published date of the update, in (UTC) date and time.
+ google.protobuf.Timestamp last_deployment_change_time = 10;
+ }
+
+ // Information related to a Quick Fix Engineering package.
+ // Fields are taken from Windows QuickFixEngineering Interface and match
+ // the source names:
+ // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
+ message WindowsQuickFixEngineeringPackage {
+ // A short textual description of the QFE update.
+ string caption = 1;
+
+ // A textual description of the QFE update.
+ string description = 2;
+
+ // Unique identifier associated with a particular QFE update.
+ string hot_fix_id = 3;
+
+ // Date that the QFE update was installed. Mapped from installed_on field.
+ google.protobuf.Timestamp install_time = 5;
+ }
+
+ // Contains information about a Windows application that is retrieved from the
+ // Windows Registry. For more information about these fields, see:
+ // https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key
+ message WindowsApplication {
+ // The name of the application or product.
+ string display_name = 1;
+
+ // The version of the product or application in string format.
+ string display_version = 2;
+
+ // The name of the manufacturer for the product or application.
+ string publisher = 3;
+
+ // The last time this product received service. The value of this property
+ // is replaced each time a patch is applied or removed from the product or
+ // the command-line option is used to repair the product.
+ google.type.Date install_date = 4;
+
+ // The internet address for technical support.
+ string help_link = 5;
+ }
+
+ // Output only. The `Inventory` API resource name.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`
+ string name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Base level operating system information for the VM.
+ OsInfo os_info = 1;
+
+ // Inventory items related to the VM keyed by an opaque unique identifier for
+ // each inventory item. The identifier is unique to each distinct and
+ // addressable inventory item and will change, when there is a new package
+ // version.
+ map items = 2;
+
+ // Output only. Timestamp of the last reported inventory for the VM.
+ google.protobuf.Timestamp update_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// A request message for getting inventory data for the specified VM.
+message GetInventoryRequest {
+ // Required. API resource name for inventory resource.
+ //
+ // Format:
+ // `projects/{project}/locations/{location}/instances/{instance}/inventory`
+ //
+ // For `{project}`, either `project-number` or `project-id` can be provided.
+ // For `{instance}`, either Compute Engine `instance-id` or `instance-name`
+ // can be provided.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/Inventory"
+ }
+ ];
+
+ // Inventory view indicating what information should be included in the
+ // inventory resource. If unspecified, the default view is BASIC.
+ InventoryView view = 2;
+}
+
+// A request message for listing inventory data for all VMs in the specified
+// location.
+message ListInventoriesRequest {
+ // Required. The parent resource name.
+ //
+ // Format: `projects/{project}/locations/{location}/instances/-`
+ //
+ // For `{project}`, either `project-number` or `project-id` can be provided.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "compute.googleapis.com/Instance"
+ }
+ ];
+
+ // Inventory view indicating what information should be included in the
+ // inventory resource. If unspecified, the default view is BASIC.
+ InventoryView view = 2;
+
+ // The maximum number of results to return.
+ int32 page_size = 3;
+
+ // A pagination token returned from a previous call to
+ // `ListInventories` that indicates where this listing
+ // should continue from.
+ string page_token = 4;
+
+ // If provided, this field specifies the criteria that must be met by a
+ // `Inventory` API resource to be included in the response.
+ string filter = 5;
+}
+
+// A response message for listing inventory data for all VMs in a specified
+// location.
+message ListInventoriesResponse {
+ // List of inventory objects.
+ repeated Inventory inventories = 1;
+
+ // The pagination token to retrieve the next page of inventory objects.
+ string next_page_token = 2;
+}
+
+// The view for inventory objects.
+enum InventoryView {
+ // The default value.
+ // The API defaults to the BASIC view.
+ INVENTORY_VIEW_UNSPECIFIED = 0;
+
+ // Returns the basic inventory information that includes `os_info`.
+ BASIC = 1;
+
+ // Returns all fields.
+ FULL = 2;
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy.proto
new file mode 100644
index 00000000000..de0db191797
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy.proto
@@ -0,0 +1,548 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1;
+
+import "google/api/field_behavior.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "OsPolicyProto";
+option java_package = "com.google.cloud.osconfig.v1";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1";
+option ruby_package = "Google::Cloud::OsConfig::V1";
+
+// An OS policy defines the desired state configuration for a VM.
+message OSPolicy {
+ // Policy mode
+ enum Mode {
+ // Invalid mode
+ MODE_UNSPECIFIED = 0;
+
+ // This mode checks if the configuration resources in the policy are in
+ // their desired state. No actions are performed if they are not in the
+ // desired state. This mode is used for reporting purposes.
+ VALIDATION = 1;
+
+ // This mode checks if the configuration resources in the policy are in
+ // their desired state, and if not, enforces the desired state.
+ ENFORCEMENT = 2;
+ }
+
+ // Filtering criteria to select VMs based on inventory details.
+ message InventoryFilter {
+ // Required. The OS short name
+ string os_short_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The OS version
+ //
+ // Prefix matches are supported if asterisk(*) is provided as the
+ // last character. For example, to match all versions with a major
+ // version of `7`, specify the following value for this field `7.*`
+ //
+ // An empty string matches all OS versions.
+ string os_version = 2;
+ }
+
+ // An OS policy resource is used to define the desired state configuration
+ // and provides a specific functionality like installing/removing packages,
+ // executing a script etc.
+ //
+ // The system ensures that resources are always in their desired state by
+ // taking necessary actions if they have drifted from their desired state.
+ message Resource {
+ // A remote or local file.
+ message File {
+ // Specifies a file available via some URI.
+ message Remote {
+ // Required. URI from which to fetch the object. It should contain both
+ // the protocol and path following the format `{protocol}://{location}`.
+ string uri = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // SHA256 checksum of the remote file.
+ string sha256_checksum = 2;
+ }
+
+ // Specifies a file available as a Cloud Storage Object.
+ message Gcs {
+ // Required. Bucket of the Cloud Storage object.
+ string bucket = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Name of the Cloud Storage object.
+ string object = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Generation number of the Cloud Storage object.
+ int64 generation = 3;
+ }
+
+ // A specific type of file.
+ oneof type {
+ // A generic remote file.
+ Remote remote = 1;
+
+ // A Cloud Storage object.
+ Gcs gcs = 2;
+
+ // A local path within the VM to use.
+ string local_path = 3;
+ }
+
+ // Defaults to false. When false, files are subject to validations
+ // based on the file type:
+ //
+ // Remote: A checksum must be specified.
+ // Cloud Storage: An object generation number must be specified.
+ bool allow_insecure = 4;
+ }
+
+ // A resource that manages a system package.
+ message PackageResource {
+ // The desired state that the OS Config agent maintains on the VM.
+ enum DesiredState {
+ // Unspecified is invalid.
+ DESIRED_STATE_UNSPECIFIED = 0;
+
+ // Ensure that the package is installed.
+ INSTALLED = 1;
+
+ // The agent ensures that the package is not installed and
+ // uninstalls it if detected.
+ REMOVED = 2;
+ }
+
+ // A deb package file. dpkg packages only support INSTALLED state.
+ message Deb {
+ // Required. A deb package.
+ File source = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Whether dependencies should also be installed.
+ // - install when false: `dpkg -i package`
+ // - install when true: `apt-get update && apt-get -y install
+ // package.deb`
+ bool pull_deps = 2;
+ }
+
+ // A package managed by APT.
+ // - install: `apt-get update && apt-get -y install [name]`
+ // - remove: `apt-get -y remove [name]`
+ message APT {
+ // Required. Package name.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // An RPM package file. RPM packages only support INSTALLED state.
+ message RPM {
+ // Required. An rpm package.
+ File source = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Whether dependencies should also be installed.
+ // - install when false: `rpm --upgrade --replacepkgs package.rpm`
+ // - install when true: `yum -y install package.rpm` or
+ // `zypper -y install package.rpm`
+ bool pull_deps = 2;
+ }
+
+ // A package managed by YUM.
+ // - install: `yum -y install package`
+ // - remove: `yum -y remove package`
+ message YUM {
+ // Required. Package name.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // A package managed by Zypper.
+ // - install: `zypper -y install package`
+ // - remove: `zypper -y rm package`
+ message Zypper {
+ // Required. Package name.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // A package managed by GooGet.
+ // - install: `googet -noconfirm install package`
+ // - remove: `googet -noconfirm remove package`
+ message GooGet {
+ // Required. Package name.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // An MSI package. MSI packages only support INSTALLED state.
+ message MSI {
+ // Required. The MSI package.
+ File source = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Additional properties to use during installation.
+ // This should be in the format of Property=Setting.
+ // Appended to the defaults of `ACTION=INSTALL
+ // REBOOT=ReallySuppress`.
+ repeated string properties = 2;
+ }
+
+ // Required. The desired state the agent should maintain for this package.
+ DesiredState desired_state = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // A system package.
+ oneof system_package {
+ // A package managed by Apt.
+ APT apt = 2;
+
+ // A deb package file.
+ Deb deb = 3;
+
+ // A package managed by YUM.
+ YUM yum = 4;
+
+ // A package managed by Zypper.
+ Zypper zypper = 5;
+
+ // An rpm package file.
+ RPM rpm = 6;
+
+ // A package managed by GooGet.
+ GooGet googet = 7;
+
+ // An MSI package.
+ MSI msi = 8;
+ }
+ }
+
+ // A resource that manages a package repository.
+ message RepositoryResource {
+ // Represents a single apt package repository. These will be added to
+ // a repo file that will be managed at
+ // `/etc/apt/sources.list.d/google_osconfig.list`.
+ message AptRepository {
+ // Type of archive.
+ enum ArchiveType {
+ // Unspecified is invalid.
+ ARCHIVE_TYPE_UNSPECIFIED = 0;
+
+ // Deb indicates that the archive contains binary files.
+ DEB = 1;
+
+ // Deb-src indicates that the archive contains source files.
+ DEB_SRC = 2;
+ }
+
+ // Required. Type of archive files in this repository.
+ ArchiveType archive_type = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. URI for this repository.
+ string uri = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Distribution of this repository.
+ string distribution = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. List of components for this repository. Must contain at
+ // least one item.
+ repeated string components = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // URI of the key file for this repository. The agent maintains a
+ // keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg`.
+ string gpg_key = 5;
+ }
+
+ // Represents a single yum package repository. These are added to a
+ // repo file that is managed at
+ // `/etc/yum.repos.d/google_osconfig.repo`.
+ message YumRepository {
+ // Required. A one word, unique name for this repository. This is the
+ // `repo id` in the yum config file and also the `display_name` if
+ // `display_name` is omitted. This id is also used as the unique
+ // identifier when checking for resource conflicts.
+ string id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The display name of the repository.
+ string display_name = 2;
+
+ // Required. The location of the repository directory.
+ string base_url = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // URIs of GPG keys.
+ repeated string gpg_keys = 4;
+ }
+
+ // Represents a single zypper package repository. These are added to a
+ // repo file that is managed at
+ // `/etc/zypp/repos.d/google_osconfig.repo`.
+ message ZypperRepository {
+ // Required. A one word, unique name for this repository. This is the
+ // `repo id` in the zypper config file and also the `display_name` if
+ // `display_name` is omitted. This id is also used as the unique
+ // identifier when checking for GuestPolicy conflicts.
+ string id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The display name of the repository.
+ string display_name = 2;
+
+ // Required. The location of the repository directory.
+ string base_url = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // URIs of GPG keys.
+ repeated string gpg_keys = 4;
+ }
+
+ // Represents a Goo package repository. These are added to a repo file
+ // that is managed at
+ // `C:/ProgramData/GooGet/repos/google_osconfig.repo`.
+ message GooRepository {
+ // Required. The name of the repository.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The url of the repository.
+ string url = 2 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // A specific type of repository.
+ oneof repository {
+ // An Apt Repository.
+ AptRepository apt = 1;
+
+ // A Yum Repository.
+ YumRepository yum = 2;
+
+ // A Zypper Repository.
+ ZypperRepository zypper = 3;
+
+ // A Goo Repository.
+ GooRepository goo = 4;
+ }
+ }
+
+ // A resource that allows executing scripts on the VM.
+ //
+ // The `ExecResource` has 2 stages: `validate` and `enforce` and both stages
+ // accept a script as an argument to execute.
+ //
+ // When the `ExecResource` is applied by the agent, it first executes the
+ // script in the `validate` stage. The `validate` stage can signal that the
+ // `ExecResource` is already in the desired state by returning an exit code
+ // of `100`. If the `ExecResource` is not in the desired state, it should
+ // return an exit code of `101`. Any other exit code returned by this stage
+ // is considered an error.
+ //
+ // If the `ExecResource` is not in the desired state based on the exit code
+ // from the `validate` stage, the agent proceeds to execute the script from
+ // the `enforce` stage. If the `ExecResource` is already in the desired
+ // state, the `enforce` stage will not be run.
+ // Similar to `validate` stage, the `enforce` stage should return an exit
+ // code of `100` to indicate that the resource in now in its desired state.
+ // Any other exit code is considered an error.
+ //
+ // NOTE: An exit code of `100` was chosen over `0` (and `101` vs `1`) to
+ // have an explicit indicator of `in desired state`, `not in desired state`
+ // and errors. Because, for example, Powershell will always return an exit
+ // code of `0` unless an `exit` statement is provided in the script. So, for
+ // reasons of consistency and being explicit, exit codes `100` and `101`
+ // were chosen.
+ message ExecResource {
+ // A file or script to execute.
+ message Exec {
+ // The interpreter to use.
+ enum Interpreter {
+ // Invalid value, the request will return validation error.
+ INTERPRETER_UNSPECIFIED = 0;
+
+ // If an interpreter is not specified, the
+ // source is executed directly. This execution, without an
+ // interpreter, only succeeds for executables and scripts that have shebang lines.
+ NONE = 1;
+
+ // Indicates that the script runs with `/bin/sh` on Linux and
+ // `cmd.exe` on Windows.
+ SHELL = 2;
+
+ // Indicates that the script runs with PowerShell.
+ POWERSHELL = 3;
+ }
+
+ // What to execute.
+ oneof source {
+ // A remote or local file.
+ File file = 1;
+
+ // An inline script.
+ // The size of the script is limited to 1024 characters.
+ string script = 2;
+ }
+
+ // Optional arguments to pass to the source during execution.
+ repeated string args = 3;
+
+ // Required. The script interpreter to use.
+ Interpreter interpreter = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Only recorded for enforce Exec.
+ // Path to an output file (that is created by this Exec) whose
+ // content will be recorded in OSPolicyResourceCompliance after a
+ // successful run. Absence or failure to read this file will result in
+ // this ExecResource being non-compliant. Output file size is limited to
+ // 100K bytes.
+ string output_file_path = 5;
+ }
+
+ // Required. What to run to validate this resource is in the desired
+ // state. An exit code of 100 indicates "in desired state", and exit code
+ // of 101 indicates "not in desired state". Any other exit code indicates
+ // a failure running validate.
+ Exec validate = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // What to run to bring this resource into the desired state.
+ // An exit code of 100 indicates "success", any other exit code indicates
+ // a failure running enforce.
+ Exec enforce = 2;
+ }
+
+ // A resource that manages the state of a file.
+ message FileResource {
+ // Desired state of the file.
+ enum DesiredState {
+ // Unspecified is invalid.
+ DESIRED_STATE_UNSPECIFIED = 0;
+
+ // Ensure file at path is present.
+ PRESENT = 1;
+
+ // Ensure file at path is absent.
+ ABSENT = 2;
+
+ // Ensure the contents of the file at path matches. If the file does
+ // not exist it will be created.
+ CONTENTS_MATCH = 3;
+ }
+
+ // The source for the contents of the file.
+ oneof source {
+ // A remote or local source.
+ File file = 1;
+
+ // A a file with this content.
+ // The size of the content is limited to 1024 characters.
+ string content = 2;
+ }
+
+ // Required. The absolute path of the file within the VM.
+ string path = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Desired state of the file.
+ DesiredState state = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Consists of three octal digits which represent, in
+ // order, the permissions of the owner, group, and other users for the
+ // file (similarly to the numeric mode used in the linux chmod
+ // utility). Each digit represents a three bit number with the 4 bit
+ // corresponding to the read permissions, the 2 bit corresponds to the
+ // write bit, and the one bit corresponds to the execute permission.
+ // Default behavior is 755.
+ //
+ // Below are some examples of permissions and their associated values:
+ // read, write, and execute: 7
+ // read and execute: 5
+ // read and write: 6
+ // read only: 4
+ string permissions = 5;
+ }
+
+ // Required. The id of the resource with the following restrictions:
+ //
+ // * Must contain only lowercase letters, numbers, and hyphens.
+ // * Must start with a letter.
+ // * Must be between 1-63 characters.
+ // * Must end with a number or a letter.
+ // * Must be unique within the OS policy.
+ string id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Resource type.
+ oneof resource_type {
+ // Package resource
+ PackageResource pkg = 2;
+
+ // Package repository resource
+ RepositoryResource repository = 3;
+
+ // Exec resource
+ ExecResource exec = 4;
+
+ // File resource
+ FileResource file = 5;
+ }
+ }
+
+ // Resource groups provide a mechanism to group OS policy resources.
+ //
+ // Resource groups enable OS policy authors to create a single OS policy
+ // to be applied to VMs running different operating Systems.
+ //
+ // When the OS policy is applied to a target VM, the appropriate resource
+ // group within the OS policy is selected based on the `OSFilter` specified
+ // within the resource group.
+ message ResourceGroup {
+ // List of inventory filters for the resource group.
+ //
+ // The resources in this resource group are applied to the target VM if it
+ // satisfies at least one of the following inventory filters.
+ //
+ // For example, to apply this resource group to VMs running either `RHEL` or
+ // `CentOS` operating systems, specify 2 items for the list with following
+ // values:
+ // inventory_filters[0].os_short_name='rhel' and
+ // inventory_filters[1].os_short_name='centos'
+ //
+ // If the list is empty, this resource group will be applied to the target
+ // VM unconditionally.
+ repeated InventoryFilter inventory_filters = 1;
+
+ // Required. List of resources configured for this resource group.
+ // The resources are executed in the exact order specified here.
+ repeated Resource resources = 2 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Required. The id of the OS policy with the following restrictions:
+ //
+ // * Must contain only lowercase letters, numbers, and hyphens.
+ // * Must start with a letter.
+ // * Must be between 1-63 characters.
+ // * Must end with a number or a letter.
+ // * Must be unique within the assignment.
+ string id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Policy description.
+ // Length of the description is limited to 1024 characters.
+ string description = 2;
+
+ // Required. Policy mode
+ Mode mode = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. List of resource groups for the policy.
+ // For a particular VM, resource groups are evaluated in the order specified
+ // and the first resource group that is applicable is selected and the rest
+ // are ignored.
+ //
+ // If none of the resource groups are applicable for a VM, the VM is
+ // considered to be non-compliant w.r.t this policy. This behavior can be
+ // toggled by the flag `allow_no_resource_group_match`
+ repeated ResourceGroup resource_groups = 4
+ [(google.api.field_behavior) = REQUIRED];
+
+ // This flag determines the OS policy compliance status when none of the
+ // resource groups within the policy are applicable for a VM. Set this value
+ // to `true` if the policy needs to be reported as compliant even if the
+ // policy has nothing to validate or enforce.
+ bool allow_no_resource_group_match = 5;
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignment_reports.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignment_reports.proto
new file mode 100644
index 00000000000..aa4b2b11b4e
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignment_reports.proto
@@ -0,0 +1,296 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "OSPolicyAssignmentReportsProto";
+option java_package = "com.google.cloud.osconfig.v1";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1";
+option ruby_package = "Google::Cloud::OsConfig::V1";
+option (google.api.resource_definition) = {
+ type: "osconfig.googleapis.com/InstanceOSPolicyAssignment"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}"
+};
+
+// Get a report of the OS policy assignment for a VM instance.
+message GetOSPolicyAssignmentReportRequest {
+ // Required. API resource name for OS policy assignment report.
+ //
+ // Format:
+ // `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ //
+ // For `{project}`, either `project-number` or `project-id` can be provided.
+ // For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
+ // can be provided.
+ // For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignmentReport"
+ }
+ ];
+}
+
+// List the OS policy assignment reports for VM instances.
+message ListOSPolicyAssignmentReportsRequest {
+ // Required. The parent resource name.
+ //
+ // Format:
+ // `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ //
+ // For `{project}`, either `project-number` or `project-id` can be provided.
+ // For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
+ // provided. If '-' is provided, the response will include
+ // OSPolicyAssignmentReports for all instances in the project/location.
+ // For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ // is provided, the response will include OSPolicyAssignmentReports for all
+ // OSPolicyAssignments in the project/location.
+ // Either {instance} or {assignment} must be `-`.
+ //
+ // For example:
+ // `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ // returns all reports for the instance
+ // `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ // returns all the reports for the given assignment across all instances.
+ // `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
+ // returns all the reports for all assignments across all instances.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/InstanceOSPolicyAssignment"
+ }
+ ];
+
+ // The maximum number of results to return.
+ int32 page_size = 2;
+
+ // If provided, this field specifies the criteria that must be met by the
+ // `OSPolicyAssignmentReport` API resource that is included in the response.
+ string filter = 3;
+
+ // A pagination token returned from a previous call to the
+ // `ListOSPolicyAssignmentReports` method that indicates where this listing
+ // should continue from.
+ string page_token = 4;
+}
+
+// A response message for listing OS Policy assignment reports including the
+// page of results and page token.
+message ListOSPolicyAssignmentReportsResponse {
+ // List of OS policy assignment reports.
+ repeated OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+
+ // The pagination token to retrieve the next page of OS policy assignment
+ // report objects.
+ string next_page_token = 2;
+}
+
+// A report of the OS policy assignment status for a given instance.
+message OSPolicyAssignmentReport {
+ option (google.api.resource) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignmentReport"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report"
+ };
+
+ // Compliance data for an OS policy
+ message OSPolicyCompliance {
+ // Possible compliance states for an os policy.
+ enum ComplianceState {
+ // The policy is in an unknown compliance state.
+ //
+ // Refer to the field `compliance_state_reason` to learn the exact reason
+ // for the policy to be in this compliance state.
+ UNKNOWN = 0;
+
+ // Policy is compliant.
+ //
+ // The policy is compliant if all the underlying resources are also
+ // compliant.
+ COMPLIANT = 1;
+
+ // Policy is non-compliant.
+ //
+ // The policy is non-compliant if one or more underlying resources are
+ // non-compliant.
+ NON_COMPLIANT = 2;
+ }
+
+ // Compliance data for an OS policy resource.
+ message OSPolicyResourceCompliance {
+ // Step performed by the OS Config agent for configuring an
+ // `OSPolicy` resource to its desired state.
+ message OSPolicyResourceConfigStep {
+ // Supported configuration step types
+ enum Type {
+ // Default value. This value is unused.
+ TYPE_UNSPECIFIED = 0;
+
+ // Checks for resource conflicts such as schema errors.
+ VALIDATION = 1;
+
+ // Checks the current status of the desired state for a resource.
+ DESIRED_STATE_CHECK = 2;
+
+ // Enforces the desired state for a resource that is not in desired
+ // state.
+ DESIRED_STATE_ENFORCEMENT = 3;
+
+ // Re-checks the status of the desired state. This check is done
+ // for a resource after the enforcement of all OS policies.
+ //
+ // This step is used to determine the final desired state status for
+ // the resource. It accounts for any resources that might have drifted
+ // from their desired state due to side effects from executing other
+ // resources.
+ DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4;
+ }
+
+ // Configuration step type.
+ Type type = 1;
+
+ // An error message recorded during the execution of this step.
+ // Only populated if errors were encountered during this step execution.
+ string error_message = 2;
+ }
+
+ // Possible compliance states for a resource.
+ enum ComplianceState {
+ // The resource is in an unknown compliance state.
+ //
+ // To get more details about why the policy is in this state, review
+ // the output of the `compliance_state_reason` field.
+ UNKNOWN = 0;
+
+ // Resource is compliant.
+ COMPLIANT = 1;
+
+ // Resource is non-compliant.
+ NON_COMPLIANT = 2;
+ }
+
+ // ExecResource specific output.
+ message ExecResourceOutput {
+ // Output from enforcement phase output file (if run).
+ // Output size is limited to 100K bytes.
+ bytes enforcement_output = 2;
+ }
+
+ // The ID of the OS policy resource.
+ string os_policy_resource_id = 1;
+
+ // Ordered list of configuration completed by the agent for the OS policy
+ // resource.
+ repeated OSPolicyResourceConfigStep config_steps = 2;
+
+ // The compliance state of the resource.
+ ComplianceState compliance_state = 3;
+
+ // A reason for the resource to be in the given compliance state.
+ // This field is always populated when `compliance_state` is `UNKNOWN`.
+ //
+ // The following values are supported when `compliance_state == UNKNOWN`
+ //
+ // * `execution-errors`: Errors were encountered by the agent while
+ // executing the resource and the compliance state couldn't be
+ // determined.
+ // * `execution-skipped-by-agent`: Resource execution was skipped by the
+ // agent because errors were encountered while executing prior resources
+ // in the OS policy.
+ // * `os-policy-execution-attempt-failed`: The execution of the OS policy
+ // containing this resource failed and the compliance state couldn't be
+ // determined.
+ string compliance_state_reason = 4;
+
+ // Resource specific output.
+ oneof output {
+ // ExecResource specific output.
+ ExecResourceOutput exec_resource_output = 5;
+ }
+ }
+
+ // The OS policy id
+ string os_policy_id = 1;
+
+ // The compliance state of the OS policy.
+ ComplianceState compliance_state = 2;
+
+ // The reason for the OS policy to be in an unknown compliance state.
+ // This field is always populated when `compliance_state` is `UNKNOWN`.
+ //
+ // If populated, the field can contain one of the following values:
+ //
+ // * `vm-not-running`: The VM was not running.
+ // * `os-policies-not-supported-by-agent`: The version of the OS Config
+ // agent running on the VM does not support running OS policies.
+ // * `no-agent-detected`: The OS Config agent is not detected for the VM.
+ // * `resource-execution-errors`: The OS Config agent encountered errors
+ // while executing one or more resources in the policy. See
+ // `os_policy_resource_compliances` for details.
+ // * `task-timeout`: The task sent to the agent to apply the policy timed
+ // out.
+ // * `unexpected-agent-state`: The OS Config agent did not report the final
+ // status of the task that attempted to apply the policy. Instead, the agent
+ // unexpectedly started working on a different task. This mostly happens
+ // when the agent or VM unexpectedly restarts while applying OS policies.
+ // * `internal-service-errors`: Internal service errors were encountered
+ // while attempting to apply the policy.
+ string compliance_state_reason = 3;
+
+ // Compliance data for each resource within the policy that is applied to
+ // the VM.
+ repeated OSPolicyResourceCompliance os_policy_resource_compliances = 4;
+ }
+
+ // The `OSPolicyAssignmentReport` API resource name.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`
+ string name = 1;
+
+ // The Compute Engine VM instance name.
+ string instance = 2;
+
+ // Reference to the `OSPolicyAssignment` API resource that the `OSPolicy`
+ // belongs to.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
+ string os_policy_assignment = 3 [(google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ }];
+
+ // Compliance data for each `OSPolicy` that is applied to the VM.
+ repeated OSPolicyCompliance os_policy_compliances = 4;
+
+ // Timestamp for when the report was last generated.
+ google.protobuf.Timestamp update_time = 5;
+
+ // Unique identifier of the last attempted run to apply the OS policies
+ // associated with this assignment on the VM.
+ //
+ // This ID is logged by the OS Config agent while applying the OS
+ // policies associated with this assignment on the VM.
+ // NOTE: If the service is unable to successfully connect to the agent for
+ // this run, then this id will not be available in the agent logs.
+ string last_run_id = 6;
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignments.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignments.proto
new file mode 100644
index 00000000000..157b8fd3989
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignments.proto
@@ -0,0 +1,386 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/osconfig/v1/os_policy.proto";
+import "google/cloud/osconfig/v1/osconfig_common.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "OsPolicyAssignmentsProto";
+option java_package = "com.google.cloud.osconfig.v1";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1";
+option ruby_package = "Google::Cloud::OsConfig::V1";
+
+// OS policy assignment is an API resource that is used to
+// apply a set of OS policies to a dynamically targeted group of Compute Engine
+// VM instances.
+//
+// An OS policy is used to define the desired state configuration for a
+// Compute Engine VM instance through a set of configuration resources that
+// provide capabilities such as installing or removing software packages, or
+// executing a script.
+//
+// For more information, see [OS policy and OS policy
+// assignment](https://cloud.google.com/compute/docs/os-configuration-management/working-with-os-policies).
+message OSPolicyAssignment {
+ option (google.api.resource) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ pattern: "projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}"
+ };
+
+ // Message representing label set.
+ // * A label is a key value pair set for a VM.
+ // * A LabelSet is a set of labels.
+ // * Labels within a LabelSet are ANDed. In other words, a LabelSet is
+ // applicable for a VM only if it matches all the labels in the
+ // LabelSet.
+ // * Example: A LabelSet with 2 labels: `env=prod` and `type=webserver` will
+ // only be applicable for those VMs with both labels
+ // present.
+ message LabelSet {
+ // Labels are identified by key/value pairs in this map.
+ // A VM should contain all the key/value pairs specified in this
+ // map to be selected.
+ map labels = 1;
+ }
+
+ // Filters to select target VMs for an assignment.
+ //
+ // If more than one filter criteria is specified below, a VM will be selected
+ // if and only if it satisfies all of them.
+ message InstanceFilter {
+ // VM inventory details.
+ message Inventory {
+ // Required. The OS short name
+ string os_short_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The OS version
+ //
+ // Prefix matches are supported if asterisk(*) is provided as the
+ // last character. For example, to match all versions with a major
+ // version of `7`, specify the following value for this field `7.*`
+ //
+ // An empty string matches all OS versions.
+ string os_version = 2;
+ }
+
+ // Target all VMs in the project. If true, no other criteria is
+ // permitted.
+ bool all = 1;
+
+ // List of label sets used for VM inclusion.
+ //
+ // If the list has more than one `LabelSet`, the VM is included if any
+ // of the label sets are applicable for the VM.
+ repeated LabelSet inclusion_labels = 2;
+
+ // List of label sets used for VM exclusion.
+ //
+ // If the list has more than one label set, the VM is excluded if any
+ // of the label sets are applicable for the VM.
+ repeated LabelSet exclusion_labels = 3;
+
+ // List of inventories to select VMs.
+ //
+ // A VM is selected if its inventory data matches at least one of the
+ // following inventories.
+ repeated Inventory inventories = 4;
+ }
+
+ // Message to configure the rollout at the zonal level for the OS policy
+ // assignment.
+ message Rollout {
+ // Required. The maximum number (or percentage) of VMs per zone to disrupt
+ // at any given moment.
+ FixedOrPercent disruption_budget = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. This determines the minimum duration of time to wait after the
+ // configuration changes are applied through the current rollout. A
+ // VM continues to count towards the `disruption_budget` at least
+ // until this duration of time has passed after configuration changes are
+ // applied.
+ google.protobuf.Duration min_wait_duration = 2
+ [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // OS policy assignment rollout state
+ enum RolloutState {
+ // Invalid value
+ ROLLOUT_STATE_UNSPECIFIED = 0;
+
+ // The rollout is in progress.
+ IN_PROGRESS = 1;
+
+ // The rollout is being cancelled.
+ CANCELLING = 2;
+
+ // The rollout is cancelled.
+ CANCELLED = 3;
+
+ // The rollout has completed successfully.
+ SUCCEEDED = 4;
+ }
+
+ // Resource name.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}`
+ //
+ // This field is ignored when you create an OS policy assignment.
+ string name = 1;
+
+ // OS policy assignment description.
+ // Length of the description is limited to 1024 characters.
+ string description = 2;
+
+ // Required. List of OS policies to be applied to the VMs.
+ repeated OSPolicy os_policies = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Filter to select VMs.
+ InstanceFilter instance_filter = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Rollout to deploy the OS policy assignment.
+ // A rollout is triggered in the following situations:
+ // 1) OSPolicyAssignment is created.
+ // 2) OSPolicyAssignment is updated and the update contains changes to one of
+ // the following fields:
+ // - instance_filter
+ // - os_policies
+ // 3) OSPolicyAssignment is deleted.
+ Rollout rollout = 5 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. The assignment revision ID
+ // A new revision is committed whenever a rollout is triggered for a OS policy
+ // assignment
+ string revision_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The timestamp that the revision was created.
+ google.protobuf.Timestamp revision_create_time = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The etag for this OS policy assignment.
+ // If this is provided on update, it must match the server's etag.
+ string etag = 8;
+
+ // Output only. OS policy assignment rollout state
+ RolloutState rollout_state = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Indicates that this revision has been successfully rolled out
+ // in this zone and new VMs will be assigned OS policies from this revision.
+ //
+ // For a given OS policy assignment, there is only one revision with a value
+ // of `true` for this field.
+ bool baseline = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Indicates that this revision deletes the OS policy assignment.
+ bool deleted = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Indicates that reconciliation is in progress for the revision.
+ // This value is `true` when the `rollout_state` is one of:
+ // * IN_PROGRESS
+ // * CANCELLING
+ bool reconciling = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Server generated unique id for the OS policy assignment
+ // resource.
+ string uid = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// OS policy assignment operation metadata provided by OS policy assignment API
+// methods that return long running operations.
+message OSPolicyAssignmentOperationMetadata {
+ // The OS policy assignment API method.
+ enum APIMethod {
+ // Invalid value
+ API_METHOD_UNSPECIFIED = 0;
+
+ // Create OS policy assignment API method
+ CREATE = 1;
+
+ // Update OS policy assignment API method
+ UPDATE = 2;
+
+ // Delete OS policy assignment API method
+ DELETE = 3;
+ }
+
+ // State of the rollout
+ enum RolloutState {
+ // Invalid value
+ ROLLOUT_STATE_UNSPECIFIED = 0;
+
+ // The rollout is in progress.
+ IN_PROGRESS = 1;
+
+ // The rollout is being cancelled.
+ CANCELLING = 2;
+
+ // The rollout is cancelled.
+ CANCELLED = 3;
+
+ // The rollout has completed successfully.
+ SUCCEEDED = 4;
+ }
+
+ // Reference to the `OSPolicyAssignment` API resource.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
+ string os_policy_assignment = 1 [(google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ }];
+
+ // The OS policy assignment API method.
+ APIMethod api_method = 2;
+
+ // State of the rollout
+ RolloutState rollout_state = 3;
+
+ // Rollout start time
+ google.protobuf.Timestamp rollout_start_time = 4;
+
+ // Rollout update time
+ google.protobuf.Timestamp rollout_update_time = 5;
+}
+
+// A request message to create an OS policy assignment
+message CreateOSPolicyAssignmentRequest {
+ // Required. The parent resource name in the form:
+ // projects/{project}/locations/{location}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The OS policy assignment to be created.
+ OSPolicyAssignment os_policy_assignment = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The logical name of the OS policy assignment in the project
+ // with the following restrictions:
+ //
+ // * Must contain only lowercase letters, numbers, and hyphens.
+ // * Must start with a letter.
+ // * Must be between 1-63 characters.
+ // * Must end with a number or a letter.
+ // * Must be unique within the project.
+ string os_policy_assignment_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// A request message to update an OS policy assignment
+message UpdateOSPolicyAssignmentRequest {
+ // Required. The updated OS policy assignment.
+ OSPolicyAssignment os_policy_assignment = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Field mask that controls which fields of the assignment should be
+ // updated.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A request message to get an OS policy assignment
+message GetOSPolicyAssignmentRequest {
+ // Required. The resource name of OS policy assignment.
+ //
+ // Format:
+ // `projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ }
+ ];
+}
+
+// A request message to list OS policy assignments for a parent resource
+message ListOSPolicyAssignmentsRequest {
+ // Required. The parent resource name.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of assignments to return.
+ int32 page_size = 2;
+
+ // A pagination token returned from a previous call to
+ // `ListOSPolicyAssignments` that indicates where this listing should continue
+ // from.
+ string page_token = 3;
+}
+
+// A response message for listing all assignments under given parent.
+message ListOSPolicyAssignmentsResponse {
+ // The list of assignments
+ repeated OSPolicyAssignment os_policy_assignments = 1;
+
+ // The pagination token to retrieve the next page of OS policy assignments.
+ string next_page_token = 2;
+}
+
+// A request message to list revisions for a OS policy assignment
+message ListOSPolicyAssignmentRevisionsRequest {
+ // Required. The name of the OS policy assignment to list revisions for.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ }
+ ];
+
+ // The maximum number of revisions to return.
+ int32 page_size = 2;
+
+ // A pagination token returned from a previous call to
+ // `ListOSPolicyAssignmentRevisions` that indicates where this listing should
+ // continue from.
+ string page_token = 3;
+}
+
+// A response message for listing all revisions for a OS policy assignment.
+message ListOSPolicyAssignmentRevisionsResponse {
+ // The OS policy assignment revisions
+ repeated OSPolicyAssignment os_policy_assignments = 1;
+
+ // The pagination token to retrieve the next page of OS policy assignment
+ // revisions.
+ string next_page_token = 2;
+}
+
+// A request message for deleting a OS policy assignment.
+message DeleteOSPolicyAssignmentRequest {
+ // Required. The name of the OS policy assignment to be deleted
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ }
+ ];
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_common.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_common.proto
new file mode 100644
index 00000000000..2b72d6ae945
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_common.proto
@@ -0,0 +1,38 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1;
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
+option java_outer_classname = "Common";
+option java_package = "com.google.cloud.osconfig.v1";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1";
+option ruby_package = "Google::Cloud::OsConfig::V1";
+
+// Message encapsulating a value that can be either absolute ("fixed") or
+// relative ("percent") to a value.
+message FixedOrPercent {
+ // Type of the value.
+ oneof mode {
+ // Specifies a fixed value.
+ int32 fixed = 1;
+
+ // Specifies the relative value defined as a percentage, which will be
+ // multiplied by a reference value.
+ int32 percent = 2;
+ }
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_service.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_service.proto
new file mode 100644
index 00000000000..515905c87d5
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_service.proto
@@ -0,0 +1,158 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1;
+
+import "google/api/client.proto";
+import "google/api/resource.proto";
+import "google/cloud/osconfig/v1/patch_deployments.proto";
+import "google/cloud/osconfig/v1/patch_jobs.proto";
+import "google/protobuf/empty.proto";
+import "google/api/annotations.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
+option java_outer_classname = "OsConfigProto";
+option java_package = "com.google.cloud.osconfig.v1";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1";
+option ruby_package = "Google::Cloud::OsConfig::V1";
+option (google.api.resource_definition) = {
+ type: "compute.googleapis.com/Instance"
+ pattern: "projects/{project}/zones/{zone}/instances/{instance}"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}"
+};
+
+// OS Config API
+//
+// The OS Config service is a server-side component that you can use to
+// manage package installations and patch jobs for virtual machine instances.
+service OsConfigService {
+ option (google.api.default_host) = "osconfig.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Patch VM instances by creating and running a patch job.
+ rpc ExecutePatchJob(ExecutePatchJobRequest) returns (PatchJob) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*}/patchJobs:execute"
+ body: "*"
+ };
+ }
+
+ // Get the patch job. This can be used to track the progress of an
+ // ongoing patch job or review the details of completed jobs.
+ rpc GetPatchJob(GetPatchJobRequest) returns (PatchJob) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/patchJobs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Cancel a patch job. The patch job must be active. Canceled patch jobs
+ // cannot be restarted.
+ rpc CancelPatchJob(CancelPatchJobRequest) returns (PatchJob) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/patchJobs/*}:cancel"
+ body: "*"
+ };
+ }
+
+ // Get a list of patch jobs.
+ rpc ListPatchJobs(ListPatchJobsRequest) returns (ListPatchJobsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*}/patchJobs"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Get a list of instance details for a given patch job.
+ rpc ListPatchJobInstanceDetails(ListPatchJobInstanceDetailsRequest)
+ returns (ListPatchJobInstanceDetailsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/patchJobs/*}/instanceDetails"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Create an OS Config patch deployment.
+ rpc CreatePatchDeployment(CreatePatchDeploymentRequest)
+ returns (PatchDeployment) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*}/patchDeployments"
+ body: "patch_deployment"
+ };
+ option (google.api.method_signature) =
+ "parent,patch_deployment,patch_deployment_id";
+ }
+
+ // Get an OS Config patch deployment.
+ rpc GetPatchDeployment(GetPatchDeploymentRequest) returns (PatchDeployment) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/patchDeployments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Get a page of OS Config patch deployments.
+ rpc ListPatchDeployments(ListPatchDeploymentsRequest)
+ returns (ListPatchDeploymentsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*}/patchDeployments"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Delete an OS Config patch deployment.
+ rpc DeletePatchDeployment(DeletePatchDeploymentRequest)
+ returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/patchDeployments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Update an OS Config patch deployment.
+ rpc UpdatePatchDeployment(UpdatePatchDeploymentRequest)
+ returns (PatchDeployment) {
+ option (google.api.http) = {
+ patch: "/v1/{patch_deployment.name=projects/*/patchDeployments/*}"
+ body: "patch_deployment"
+ };
+ option (google.api.method_signature) = "patch_deployment,update_mask";
+ }
+
+ // Change state of patch deployment to "PAUSED".
+ // Patch deployment in paused state doesn't generate patch jobs.
+ rpc PausePatchDeployment(PausePatchDeploymentRequest)
+ returns (PatchDeployment) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/patchDeployments/*}:pause"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Change state of patch deployment back to "ACTIVE".
+ // Patch deployment in active state continues to generate patch jobs.
+ rpc ResumePatchDeployment(ResumePatchDeploymentRequest)
+ returns (PatchDeployment) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/patchDeployments/*}:resume"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_zonal_service.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_zonal_service.proto
new file mode 100644
index 00000000000..196737c1941
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_zonal_service.proto
@@ -0,0 +1,202 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/cloud/osconfig/v1/inventory.proto";
+import "google/cloud/osconfig/v1/os_policy_assignment_reports.proto";
+import "google/cloud/osconfig/v1/os_policy_assignments.proto";
+import "google/cloud/osconfig/v1/vulnerability.proto";
+import "google/longrunning/operations.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "OsConfigZonalServiceProto";
+option java_package = "com.google.cloud.osconfig.v1";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1";
+option ruby_package = "Google::Cloud::OsConfig::V1";
+
+// Zonal OS Config API
+//
+// The OS Config service is the server-side component that allows users to
+// manage package installations and patch jobs for Compute Engine VM instances.
+service OsConfigZonalService {
+ option (google.api.default_host) = "osconfig.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Create an OS policy assignment.
+ //
+ // This method also creates the first revision of the OS policy assignment.
+ //
+ // This method returns a long running operation (LRO) that contains the
+ // rollout details. The rollout can be cancelled by cancelling the LRO.
+ //
+ // For more information, see [Method:
+ // projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).
+ rpc CreateOSPolicyAssignment(CreateOSPolicyAssignmentRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/osPolicyAssignments"
+ body: "os_policy_assignment"
+ };
+ option (google.api.method_signature) =
+ "parent,os_policy_assignment,os_policy_assignment_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "OSPolicyAssignment"
+ metadata_type: "OSPolicyAssignmentOperationMetadata"
+ };
+ }
+
+ // Update an existing OS policy assignment.
+ //
+ // This method creates a new revision of the OS policy assignment.
+ //
+ // This method returns a long running operation (LRO) that contains the
+ // rollout details. The rollout can be cancelled by cancelling the LRO.
+ //
+ // For more information, see [Method:
+ // projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).
+ rpc UpdateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{os_policy_assignment.name=projects/*/locations/*/osPolicyAssignments/*}"
+ body: "os_policy_assignment"
+ };
+ option (google.api.method_signature) = "os_policy_assignment,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "OSPolicyAssignment"
+ metadata_type: "OSPolicyAssignmentOperationMetadata"
+ };
+ }
+
+ // Retrieve an existing OS policy assignment.
+ //
+ // This method always returns the latest revision. In order to retrieve a
+ // previous revision of the assignment, also provide the revision ID in the
+ // `name` parameter.
+ rpc GetOSPolicyAssignment(GetOSPolicyAssignmentRequest)
+ returns (OSPolicyAssignment) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/osPolicyAssignments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List the OS policy assignments under the parent resource.
+ //
+ // For each OS policy assignment, the latest revision is returned.
+ rpc ListOSPolicyAssignments(ListOSPolicyAssignmentsRequest)
+ returns (ListOSPolicyAssignmentsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/osPolicyAssignments"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // List the OS policy assignment revisions for a given OS policy assignment.
+ rpc ListOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest)
+ returns (ListOSPolicyAssignmentRevisionsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/osPolicyAssignments/*}:listRevisions"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Delete the OS policy assignment.
+ //
+ // This method creates a new revision of the OS policy assignment.
+ //
+ // This method returns a long running operation (LRO) that contains the
+ // rollout details. The rollout can be cancelled by cancelling the LRO.
+ //
+ // If the LRO completes and is not cancelled, all revisions associated with
+ // the OS policy assignment are deleted.
+ //
+ // For more information, see [Method:
+ // projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).
+ rpc DeleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/osPolicyAssignments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OSPolicyAssignmentOperationMetadata"
+ };
+ }
+
+ // Get the OS policy asssignment report for the specified Compute Engine VM
+ // instance.
+ rpc GetOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest)
+ returns (OSPolicyAssignmentReport) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/instances/*/osPolicyAssignments/*/report}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List OS policy asssignment reports for all Compute Engine VM instances in
+ // the specified zone.
+ rpc ListOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest)
+ returns (ListOSPolicyAssignmentReportsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/instances/*/osPolicyAssignments/*}/reports"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Get inventory data for the specified VM instance. If the VM has no
+ // associated inventory, the message `NOT_FOUND` is returned.
+ rpc GetInventory(GetInventoryRequest) returns (Inventory) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/instances/*/inventory}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List inventory data for all VM instances in the specified zone.
+ rpc ListInventories(ListInventoriesRequest)
+ returns (ListInventoriesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/instances/*}/inventories"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the vulnerability report for the specified VM instance. Only VMs with
+ // inventory data have vulnerability reports associated with them.
+ rpc GetVulnerabilityReport(GetVulnerabilityReportRequest)
+ returns (VulnerabilityReport) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/instances/*/vulnerabilityReport}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List vulnerability reports for all VM instances in the specified zone.
+ rpc ListVulnerabilityReports(ListVulnerabilityReportsRequest)
+ returns (ListVulnerabilityReportsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/instances/*}/vulnerabilityReports"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_deployments.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_deployments.proto
new file mode 100644
index 00000000000..d5708544f8b
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_deployments.proto
@@ -0,0 +1,339 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/osconfig/v1/patch_jobs.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+import "google/type/datetime.proto";
+import "google/type/dayofweek.proto";
+import "google/type/timeofday.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
+option java_outer_classname = "PatchDeployments";
+option java_package = "com.google.cloud.osconfig.v1";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1";
+option ruby_package = "Google::Cloud::OsConfig::V1";
+
+// Patch deployments are configurations that individual patch jobs use to
+// complete a patch. These configurations include instance filter, package
+// repository settings, and a schedule. For more information about creating and
+// managing patch deployments, see [Scheduling patch
+// jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
+message PatchDeployment {
+ option (google.api.resource) = {
+ type: "osconfig.googleapis.com/PatchDeployment"
+ pattern: "projects/{project}/patchDeployments/{patch_deployment}"
+ };
+
+ // Represents state of patch peployment.
+ enum State {
+ // The default value. This value is used if the state is omitted.
+ STATE_UNSPECIFIED = 0;
+
+ // Active value means that patch deployment generates Patch Jobs.
+ ACTIVE = 1;
+
+ // Paused value means that patch deployment does not generate
+ // Patch jobs. Requires user action to move in and out from this state.
+ PAUSED = 2;
+ }
+
+ // Unique name for the patch deployment resource in a project. The patch
+ // deployment name is in the form:
+ // `projects/{project_id}/patchDeployments/{patch_deployment_id}`.
+ // This field is ignored when you create a new patch deployment.
+ string name = 1;
+
+ // Optional. Description of the patch deployment. Length of the description is
+ // limited to 1024 characters.
+ string description = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. VM instances to patch.
+ PatchInstanceFilter instance_filter = 3
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Patch configuration that is applied.
+ PatchConfig patch_config = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Duration of the patch. After the duration ends, the patch times
+ // out.
+ google.protobuf.Duration duration = 5
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Schedule for the patch.
+ oneof schedule {
+ // Required. Schedule a one-time execution.
+ OneTimeSchedule one_time_schedule = 6
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Schedule recurring executions.
+ RecurringSchedule recurring_schedule = 7
+ [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Output only. Time the patch deployment was created. Timestamp is in
+ // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+ google.protobuf.Timestamp create_time = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Time the patch deployment was last updated. Timestamp is in
+ // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+ google.protobuf.Timestamp update_time = 9
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The last time a patch job was started by this deployment.
+ // Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
+ // format.
+ google.protobuf.Timestamp last_execute_time = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Rollout strategy of the patch job.
+ PatchRollout rollout = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Current state of the patch deployment.
+ State state = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Sets the time for a one time patch deployment. Timestamp is in
+// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+message OneTimeSchedule {
+ // Required. The desired patch job execution time.
+ google.protobuf.Timestamp execute_time = 1
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Sets the time for recurring patch deployments.
+message RecurringSchedule {
+ // Specifies the frequency of the recurring patch deployments.
+ enum Frequency {
+ // Invalid. A frequency must be specified.
+ FREQUENCY_UNSPECIFIED = 0;
+
+ // Indicates that the frequency of recurrence should be expressed in terms
+ // of weeks.
+ WEEKLY = 1;
+
+ // Indicates that the frequency of recurrence should be expressed in terms
+ // of months.
+ MONTHLY = 2;
+
+ // Indicates that the frequency of recurrence should be expressed in terms
+ // of days.
+ DAILY = 3;
+ }
+
+ // Required. Defines the time zone that `time_of_day` is relative to.
+ // The rules for daylight saving time are determined by the chosen time zone.
+ google.type.TimeZone time_zone = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The time that the recurring schedule becomes effective.
+ // Defaults to `create_time` of the patch deployment.
+ google.protobuf.Timestamp start_time = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The end time at which a recurring patch deployment schedule is no
+ // longer active.
+ google.protobuf.Timestamp end_time = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Time of the day to run a recurring deployment.
+ google.type.TimeOfDay time_of_day = 4
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The frequency unit of this recurring schedule.
+ Frequency frequency = 5 [(google.api.field_behavior) = REQUIRED];
+
+ // Configurations for this recurring schedule.
+ // Configurations must match frequency.
+ oneof schedule_config {
+ // Required. Schedule with weekly executions.
+ WeeklySchedule weekly = 6 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Schedule with monthly executions.
+ MonthlySchedule monthly = 7 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Output only. The time the last patch job ran successfully.
+ google.protobuf.Timestamp last_execute_time = 9
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the next patch job is scheduled to run.
+ google.protobuf.Timestamp next_execute_time = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Represents a weekly schedule.
+message WeeklySchedule {
+ // Required. Day of the week.
+ google.type.DayOfWeek day_of_week = 1
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Represents a monthly schedule. An example of a valid monthly schedule is
+// "on the third Tuesday of the month" or "on the 15th of the month".
+message MonthlySchedule {
+ // One day in a month.
+ oneof day_of_month {
+ // Required. Week day in a month.
+ WeekDayOfMonth week_day_of_month = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. One day of the month. 1-31 indicates the 1st to the 31st day.
+ // -1 indicates the last day of the month. Months without the target day
+ // will be skipped. For example, a schedule to run "every month on the 31st"
+ // will not run in February, April, June, etc.
+ int32 month_day = 2 [(google.api.field_behavior) = REQUIRED];
+ }
+}
+
+// Represents one week day in a month. An example is "the 4th Sunday".
+message WeekDayOfMonth {
+ // Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
+ // month. -1 indicates the last week of the month.
+ int32 week_ordinal = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A day of the week.
+ google.type.DayOfWeek day_of_week = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Represents the number of days before or after the given week day
+ // of month that the patch deployment is scheduled for. For example if
+ // `week_ordinal` and `day_of_week` values point to the second day of the
+ // month and this `day_offset` value is set to `3`, the patch deployment takes
+ // place three days after the second Tuesday of the month. If this value is
+ // negative, for example -5, the patches are deployed five days before before
+ // the second Tuesday of the month. Allowed values are in range [-30, 30].
+ int32 day_offset = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A request message for creating a patch deployment.
+message CreatePatchDeploymentRequest {
+ // Required. The project to apply this patch deployment to in the form
+ // `projects/*`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Required. A name for the patch deployment in the project. When creating a
+ // name the following rules apply:
+ // * Must contain only lowercase letters, numbers, and hyphens.
+ // * Must start with a letter.
+ // * Must be between 1-63 characters.
+ // * Must end with a number or a letter.
+ // * Must be unique within the project.
+ string patch_deployment_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The patch deployment to create.
+ PatchDeployment patch_deployment = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// A request message for retrieving a patch deployment.
+message GetPatchDeploymentRequest {
+ // Required. The resource name of the patch deployment in the form
+ // `projects/*/patchDeployments/*`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/PatchDeployment"
+ }
+ ];
+}
+
+// A request message for listing patch deployments.
+message ListPatchDeploymentsRequest {
+ // Required. The resource name of the parent in the form `projects/*`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Optional. The maximum number of patch deployments to return. Default is
+ // 100.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A pagination token returned from a previous call to
+ // ListPatchDeployments that indicates where this listing should continue
+ // from.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A response message for listing patch deployments.
+message ListPatchDeploymentsResponse {
+ // The list of patch deployments.
+ repeated PatchDeployment patch_deployments = 1;
+
+ // A pagination token that can be used to get the next page of patch
+ // deployments.
+ string next_page_token = 2;
+}
+
+// A request message for deleting a patch deployment.
+message DeletePatchDeploymentRequest {
+ // Required. The resource name of the patch deployment in the form
+ // `projects/*/patchDeployments/*`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/PatchDeployment"
+ }
+ ];
+}
+
+// A request message for updating a patch deployment.
+message UpdatePatchDeploymentRequest {
+ // Required. The patch deployment to Update.
+ PatchDeployment patch_deployment = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Field mask that controls which fields of the patch deployment
+ // should be updated.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A request message for pausing a patch deployment.
+message PausePatchDeploymentRequest {
+ // Required. The resource name of the patch deployment in the form
+ // `projects/*/patchDeployments/*`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/PatchDeployment"
+ }
+ ];
+}
+
+// A request message for resuming a patch deployment.
+message ResumePatchDeploymentRequest {
+ // Required. The resource name of the patch deployment in the form
+ // `projects/*/patchDeployments/*`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/PatchDeployment"
+ }
+ ];
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_jobs.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_jobs.proto
new file mode 100644
index 00000000000..4edfc8df555
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_jobs.proto
@@ -0,0 +1,742 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/osconfig/v1/osconfig_common.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
+option java_outer_classname = "PatchJobs";
+option java_package = "com.google.cloud.osconfig.v1";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1";
+option ruby_package = "Google::Cloud::OsConfig::V1";
+
+// A request message to initiate patching across Compute Engine
+// instances.
+message ExecutePatchJobRequest {
+ // Required. The project in which to run this patch in the form `projects/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Description of the patch job. Length of the description is limited
+ // to 1024 characters.
+ string description = 2;
+
+ // Required. Instances to patch, either explicitly or filtered by some
+ // criteria such as zone or labels.
+ PatchInstanceFilter instance_filter = 7
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Patch configuration being applied. If omitted, instances are
+ // patched using the default configurations.
+ PatchConfig patch_config = 4;
+
+ // Duration of the patch job. After the duration ends, the patch job
+ // times out.
+ google.protobuf.Duration duration = 5;
+
+ // If this patch is a dry-run only, instances are contacted but
+ // will do nothing.
+ bool dry_run = 6;
+
+ // Display name for this patch job. This does not have to be unique.
+ string display_name = 8;
+
+ // Rollout strategy of the patch job.
+ PatchRollout rollout = 9;
+}
+
+// Request to get an active or completed patch job.
+message GetPatchJobRequest {
+ // Required. Name of the patch in the form `projects/*/patchJobs/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/PatchJob"
+ }
+ ];
+}
+
+// Request to list details for all instances that are part of a patch job.
+message ListPatchJobInstanceDetailsRequest {
+ // Required. The parent for the instances are in the form of
+ // `projects/*/patchJobs/*`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/PatchJob"
+ }
+ ];
+
+ // The maximum number of instance details records to return. Default is 100.
+ int32 page_size = 2;
+
+ // A pagination token returned from a previous call
+ // that indicates where this listing should continue from.
+ string page_token = 3;
+
+ // A filter expression that filters results listed in the response. This
+ // field supports filtering results by instance zone, name, state, or
+ // `failure_reason`.
+ string filter = 4;
+}
+
+// A response message for listing the instances details for a patch job.
+message ListPatchJobInstanceDetailsResponse {
+ // A list of instance status.
+ repeated PatchJobInstanceDetails patch_job_instance_details = 1;
+
+ // A pagination token that can be used to get the next page of results.
+ string next_page_token = 2;
+}
+
+// Patch details for a VM instance. For more information about reviewing VM
+// instance details, see
+// [Listing all VM instance details for a specific patch
+// job](https://cloud.google.com/compute/docs/os-patch-management/manage-patch-jobs#list-instance-details).
+message PatchJobInstanceDetails {
+ // The instance name in the form `projects/*/zones/*/instances/*`
+ string name = 1 [(google.api.resource_reference) = {
+ type: "compute.googleapis.com/Instance"
+ }];
+
+ // The unique identifier for the instance. This identifier is
+ // defined by the server.
+ string instance_system_id = 2;
+
+ // Current state of instance patch.
+ Instance.PatchState state = 3;
+
+ // If the patch fails, this field provides the reason.
+ string failure_reason = 4;
+
+ // The number of times the agent that the agent attempts to apply the patch.
+ int64 attempt_count = 5;
+}
+
+// A request message for listing patch jobs.
+message ListPatchJobsRequest {
+ // Required. In the form of `projects/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // The maximum number of instance status to return.
+ int32 page_size = 2;
+
+ // A pagination token returned from a previous call
+ // that indicates where this listing should continue from.
+ string page_token = 3;
+
+ // If provided, this field specifies the criteria that must be met by patch
+ // jobs to be included in the response.
+ // Currently, filtering is only available on the patch_deployment field.
+ string filter = 4;
+}
+
+// A response message for listing patch jobs.
+message ListPatchJobsResponse {
+ // The list of patch jobs.
+ repeated PatchJob patch_jobs = 1;
+
+ // A pagination token that can be used to get the next page of results.
+ string next_page_token = 2;
+}
+
+// A high level representation of a patch job that is either in progress
+// or has completed.
+//
+// Instance details are not included in the job. To paginate through instance
+// details, use ListPatchJobInstanceDetails.
+//
+// For more information about patch jobs, see
+// [Creating patch
+// jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
+message PatchJob {
+ option (google.api.resource) = {
+ type: "osconfig.googleapis.com/PatchJob"
+ pattern: "projects/{project}/patchJobs/{patch_job}"
+ };
+
+ // Enumeration of the various states a patch job passes through as it
+ // executes.
+ enum State {
+ // State must be specified.
+ STATE_UNSPECIFIED = 0;
+
+ // The patch job was successfully initiated.
+ STARTED = 1;
+
+ // The patch job is looking up instances to run the patch on.
+ INSTANCE_LOOKUP = 2;
+
+ // Instances are being patched.
+ PATCHING = 3;
+
+ // Patch job completed successfully.
+ SUCCEEDED = 4;
+
+ // Patch job completed but there were errors.
+ COMPLETED_WITH_ERRORS = 5;
+
+ // The patch job was canceled.
+ CANCELED = 6;
+
+ // The patch job timed out.
+ TIMED_OUT = 7;
+ }
+
+ // A summary of the current patch state across all instances that this patch
+ // job affects. Contains counts of instances in different states. These states
+ // map to `InstancePatchState`. List patch job instance details to see the
+ // specific states of each instance.
+ message InstanceDetailsSummary {
+ // Number of instances pending patch job.
+ int64 pending_instance_count = 1;
+
+ // Number of instances that are inactive.
+ int64 inactive_instance_count = 2;
+
+ // Number of instances notified about patch job.
+ int64 notified_instance_count = 3;
+
+ // Number of instances that have started.
+ int64 started_instance_count = 4;
+
+ // Number of instances that are downloading patches.
+ int64 downloading_patches_instance_count = 5;
+
+ // Number of instances that are applying patches.
+ int64 applying_patches_instance_count = 6;
+
+ // Number of instances rebooting.
+ int64 rebooting_instance_count = 7;
+
+ // Number of instances that have completed successfully.
+ int64 succeeded_instance_count = 8;
+
+ // Number of instances that require reboot.
+ int64 succeeded_reboot_required_instance_count = 9;
+
+ // Number of instances that failed.
+ int64 failed_instance_count = 10;
+
+ // Number of instances that have acked and will start shortly.
+ int64 acked_instance_count = 11;
+
+ // Number of instances that exceeded the time out while applying the patch.
+ int64 timed_out_instance_count = 12;
+
+ // Number of instances that are running the pre-patch step.
+ int64 pre_patch_step_instance_count = 13;
+
+ // Number of instances that are running the post-patch step.
+ int64 post_patch_step_instance_count = 14;
+
+ // Number of instances that do not appear to be running the agent. Check to
+ // ensure that the agent is installed, running, and able to communicate with
+ // the service.
+ int64 no_agent_detected_instance_count = 15;
+ }
+
+ // Unique identifier for this patch job in the form
+ // `projects/*/patchJobs/*`
+ string name = 1;
+
+ // Display name for this patch job. This is not a unique identifier.
+ string display_name = 14;
+
+ // Description of the patch job. Length of the description is limited
+ // to 1024 characters.
+ string description = 2;
+
+ // Time this patch job was created.
+ google.protobuf.Timestamp create_time = 3;
+
+ // Last time this patch job was updated.
+ google.protobuf.Timestamp update_time = 4;
+
+ // The current state of the PatchJob.
+ State state = 5;
+
+ // Instances to patch.
+ PatchInstanceFilter instance_filter = 13;
+
+ // Patch configuration being applied.
+ PatchConfig patch_config = 7;
+
+ // Duration of the patch job. After the duration ends, the
+ // patch job times out.
+ google.protobuf.Duration duration = 8;
+
+ // Summary of instance details.
+ InstanceDetailsSummary instance_details_summary = 9;
+
+ // If this patch job is a dry run, the agent reports that it has
+ // finished without running any updates on the VM instance.
+ bool dry_run = 10;
+
+ // If this patch job failed, this message provides information about the
+ // failure.
+ string error_message = 11;
+
+ // Reflects the overall progress of the patch job in the range of
+ // 0.0 being no progress to 100.0 being complete.
+ double percent_complete = 12;
+
+ // Output only. Name of the patch deployment that created this patch job.
+ string patch_deployment = 15 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/PatchDeployment"
+ }
+ ];
+
+ // Rollout strategy being applied.
+ PatchRollout rollout = 16;
+}
+
+// Patch configuration specifications. Contains details on how to apply the
+// patch(es) to a VM instance.
+message PatchConfig {
+ // Post-patch reboot settings.
+ enum RebootConfig {
+ // The default behavior is DEFAULT.
+ REBOOT_CONFIG_UNSPECIFIED = 0;
+
+ // The agent decides if a reboot is necessary by checking signals such as
+ // registry keys on Windows or `/var/run/reboot-required` on APT based
+ // systems. On RPM based systems, a set of core system package install times
+ // are compared with system boot time.
+ DEFAULT = 1;
+
+ // Always reboot the machine after the update completes.
+ ALWAYS = 2;
+
+ // Never reboot the machine after the update completes.
+ NEVER = 3;
+ }
+
+ // Post-patch reboot settings.
+ RebootConfig reboot_config = 1;
+
+ // Apt update settings. Use this setting to override the default `apt` patch
+ // rules.
+ AptSettings apt = 3;
+
+ // Yum update settings. Use this setting to override the default `yum` patch
+ // rules.
+ YumSettings yum = 4;
+
+ // Goo update settings. Use this setting to override the default `goo` patch
+ // rules.
+ GooSettings goo = 5;
+
+ // Zypper update settings. Use this setting to override the default `zypper`
+ // patch rules.
+ ZypperSettings zypper = 6;
+
+ // Windows update settings. Use this override the default windows patch rules.
+ WindowsUpdateSettings windows_update = 7;
+
+ // The `ExecStep` to run before the patch update.
+ ExecStep pre_step = 8;
+
+ // The `ExecStep` to run after the patch update.
+ ExecStep post_step = 9;
+
+ // Allows the patch job to run on Managed instance groups (MIGs).
+ bool mig_instances_allowed = 10;
+}
+
+// Namespace for instance state enums.
+message Instance {
+ // Patch state of an instance.
+ enum PatchState {
+ // Unspecified.
+ PATCH_STATE_UNSPECIFIED = 0;
+
+ // The instance is not yet notified.
+ PENDING = 1;
+
+ // Instance is inactive and cannot be patched.
+ INACTIVE = 2;
+
+ // The instance is notified that it should be patched.
+ NOTIFIED = 3;
+
+ // The instance has started the patching process.
+ STARTED = 4;
+
+ // The instance is downloading patches.
+ DOWNLOADING_PATCHES = 5;
+
+ // The instance is applying patches.
+ APPLYING_PATCHES = 6;
+
+ // The instance is rebooting.
+ REBOOTING = 7;
+
+ // The instance has completed applying patches.
+ SUCCEEDED = 8;
+
+ // The instance has completed applying patches but a reboot is required.
+ SUCCEEDED_REBOOT_REQUIRED = 9;
+
+ // The instance has failed to apply the patch.
+ FAILED = 10;
+
+ // The instance acked the notification and will start shortly.
+ ACKED = 11;
+
+ // The instance exceeded the time out while applying the patch.
+ TIMED_OUT = 12;
+
+ // The instance is running the pre-patch step.
+ RUNNING_PRE_PATCH_STEP = 13;
+
+ // The instance is running the post-patch step.
+ RUNNING_POST_PATCH_STEP = 14;
+
+ // The service could not detect the presence of the agent. Check to ensure
+ // that the agent is installed, running, and able to communicate with the
+ // service.
+ NO_AGENT_DETECTED = 15;
+ }
+}
+
+// Message for canceling a patch job.
+message CancelPatchJobRequest {
+ // Required. Name of the patch in the form `projects/*/patchJobs/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/PatchJob"
+ }
+ ];
+}
+
+// Apt patching is completed by executing `apt-get update && apt-get
+// upgrade`. Additional options can be set to control how this is executed.
+message AptSettings {
+ // Apt patch type.
+ enum Type {
+ // By default, upgrade will be performed.
+ TYPE_UNSPECIFIED = 0;
+
+ // Runs `apt-get dist-upgrade`.
+ DIST = 1;
+
+ // Runs `apt-get upgrade`.
+ UPGRADE = 2;
+ }
+
+ // By changing the type to DIST, the patching is performed
+ // using `apt-get dist-upgrade` instead.
+ Type type = 1;
+
+ // List of packages to exclude from update. These packages will be excluded
+ repeated string excludes = 2;
+
+ // An exclusive list of packages to be updated. These are the only packages
+ // that will be updated. If these packages are not installed, they will be
+ // ignored. This field cannot be specified with any other patch configuration
+ // fields.
+ repeated string exclusive_packages = 3;
+}
+
+// Yum patching is performed by executing `yum update`. Additional options
+// can be set to control how this is executed.
+//
+// Note that not all settings are supported on all platforms.
+message YumSettings {
+ // Adds the `--security` flag to `yum update`. Not supported on
+ // all platforms.
+ bool security = 1;
+
+ // Will cause patch to run `yum update-minimal` instead.
+ bool minimal = 2;
+
+ // List of packages to exclude from update. These packages are excluded by
+ // using the yum `--exclude` flag.
+ repeated string excludes = 3;
+
+ // An exclusive list of packages to be updated. These are the only packages
+ // that will be updated. If these packages are not installed, they will be
+ // ignored. This field must not be specified with any other patch
+ // configuration fields.
+ repeated string exclusive_packages = 4;
+}
+
+// Googet patching is performed by running `googet update`.
+message GooSettings {}
+
+// Zypper patching is performed by running `zypper patch`.
+// See also https://en.opensuse.org/SDB:Zypper_manual.
+message ZypperSettings {
+ // Adds the `--with-optional` flag to `zypper patch`.
+ bool with_optional = 1;
+
+ // Adds the `--with-update` flag, to `zypper patch`.
+ bool with_update = 2;
+
+ // Install only patches with these categories.
+ // Common categories include security, recommended, and feature.
+ repeated string categories = 3;
+
+ // Install only patches with these severities.
+ // Common severities include critical, important, moderate, and low.
+ repeated string severities = 4;
+
+ // List of patches to exclude from update.
+ repeated string excludes = 5;
+
+ // An exclusive list of patches to be updated. These are the only patches
+ // that will be installed using 'zypper patch patch:' command.
+ // This field must not be used with any other patch configuration fields.
+ repeated string exclusive_patches = 6;
+}
+
+// Windows patching is performed using the Windows Update Agent.
+message WindowsUpdateSettings {
+ // Microsoft Windows update classifications as defined in
+ // [1]
+ // https://support.microsoft.com/en-us/help/824684/description-of-the-standard-terminology-that-is-used-to-describe-micro
+ enum Classification {
+ // Invalid. If classifications are included, they must be specified.
+ CLASSIFICATION_UNSPECIFIED = 0;
+
+ // "A widely released fix for a specific problem that addresses a critical,
+ // non-security-related bug." [1]
+ CRITICAL = 1;
+
+ // "A widely released fix for a product-specific, security-related
+ // vulnerability. Security vulnerabilities are rated by their severity. The
+ // severity rating is indicated in the Microsoft security bulletin as
+ // critical, important, moderate, or low." [1]
+ SECURITY = 2;
+
+ // "A widely released and frequent software update that contains additions
+ // to a product's definition database. Definition databases are often used
+ // to detect objects that have specific attributes, such as malicious code,
+ // phishing websites, or junk mail." [1]
+ DEFINITION = 3;
+
+ // "Software that controls the input and output of a device." [1]
+ DRIVER = 4;
+
+ // "New product functionality that is first distributed outside the context
+ // of a product release and that is typically included in the next full
+ // product release." [1]
+ FEATURE_PACK = 5;
+
+ // "A tested, cumulative set of all hotfixes, security updates, critical
+ // updates, and updates. Additionally, service packs may contain additional
+ // fixes for problems that are found internally since the release of the
+ // product. Service packs my also contain a limited number of
+ // customer-requested design changes or features." [1]
+ SERVICE_PACK = 6;
+
+ // "A utility or feature that helps complete a task or set of tasks." [1]
+ TOOL = 7;
+
+ // "A tested, cumulative set of hotfixes, security updates, critical
+ // updates, and updates that are packaged together for easy deployment. A
+ // rollup generally targets a specific area, such as security, or a
+ // component of a product, such as Internet Information Services (IIS)." [1]
+ UPDATE_ROLLUP = 8;
+
+ // "A widely released fix for a specific problem. An update addresses a
+ // noncritical, non-security-related bug." [1]
+ UPDATE = 9;
+ }
+
+ // Only apply updates of these windows update classifications. If empty, all
+ // updates are applied.
+ repeated Classification classifications = 1;
+
+ // List of KBs to exclude from update.
+ repeated string excludes = 2;
+
+ // An exclusive list of kbs to be updated. These are the only patches
+ // that will be updated. This field must not be used with other
+ // patch configurations.
+ repeated string exclusive_patches = 3;
+}
+
+// A step that runs an executable for a PatchJob.
+message ExecStep {
+ // The ExecStepConfig for all Linux VMs targeted by the PatchJob.
+ ExecStepConfig linux_exec_step_config = 1;
+
+ // The ExecStepConfig for all Windows VMs targeted by the PatchJob.
+ ExecStepConfig windows_exec_step_config = 2;
+}
+
+// Common configurations for an ExecStep.
+message ExecStepConfig {
+ // The interpreter used to execute the a file.
+ enum Interpreter {
+ // Invalid for a Windows ExecStepConfig. For a Linux ExecStepConfig, the
+ // interpreter will be parsed from the shebang line of the script if
+ // unspecified.
+ INTERPRETER_UNSPECIFIED = 0;
+
+ // Indicates that the script is run with `/bin/sh` on Linux and `cmd`
+ // on Windows.
+ SHELL = 1;
+
+ // Indicates that the file is run with PowerShell flags
+ // `-NonInteractive`, `-NoProfile`, and `-ExecutionPolicy Bypass`.
+ POWERSHELL = 2;
+ }
+
+ // Location of the executable.
+ oneof executable {
+ // An absolute path to the executable on the VM.
+ string local_path = 1;
+
+ // A Cloud Storage object containing the executable.
+ GcsObject gcs_object = 2;
+ }
+
+ // Defaults to [0]. A list of possible return values that the
+ // execution can return to indicate a success.
+ repeated int32 allowed_success_codes = 3;
+
+ // The script interpreter to use to run the script. If no interpreter is
+ // specified the script will be executed directly, which will likely
+ // only succeed for scripts with [shebang lines]
+ // (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ Interpreter interpreter = 4;
+}
+
+// Cloud Storage object representation.
+message GcsObject {
+ // Required. Bucket of the Cloud Storage object.
+ string bucket = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Name of the Cloud Storage object.
+ string object = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Generation number of the Cloud Storage object. This is used to
+ // ensure that the ExecStep specified by this PatchJob does not change.
+ int64 generation_number = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// A filter to target VM instances for patching. The targeted
+// VMs must meet all criteria specified. So if both labels and zones are
+// specified, the patch job targets only VMs with those labels and in those
+// zones.
+message PatchInstanceFilter {
+ // Targets a group of VM instances by using their [assigned
+ // labels](https://cloud.google.com/compute/docs/labeling-resources). Labels
+ // are key-value pairs. A `GroupLabel` is a combination of labels
+ // that is used to target VMs for a patch job.
+ //
+ // For example, a patch job can target VMs that have the following
+ // `GroupLabel`: `{"env":"test", "app":"web"}`. This means that the patch job
+ // is applied to VMs that have both the labels `env=test` and `app=web`.
+ message GroupLabel {
+ // Compute Engine instance labels that must be present for a VM
+ // instance to be targeted by this filter.
+ map labels = 1;
+ }
+
+ // Target all VM instances in the project. If true, no other criteria is
+ // permitted.
+ bool all = 1;
+
+ // Targets VM instances matching ANY of these GroupLabels. This allows
+ // targeting of disparate groups of VM instances.
+ repeated GroupLabel group_labels = 2;
+
+ // Targets VM instances in ANY of these zones. Leave empty to target VM
+ // instances in any zone.
+ repeated string zones = 3;
+
+ // Targets any of the VM instances specified. Instances are specified by their
+ // URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
+ // `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
+ // `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
+ repeated string instances = 4;
+
+ // Targets VMs whose name starts with one of these prefixes. Similar to
+ // labels, this is another way to group VMs when targeting configs, for
+ // example prefix="prod-".
+ repeated string instance_name_prefixes = 5;
+}
+
+// Patch rollout configuration specifications. Contains details on the
+// concurrency control when applying patch(es) to all targeted VMs.
+message PatchRollout {
+ // Type of the rollout.
+ enum Mode {
+ // Mode must be specified.
+ MODE_UNSPECIFIED = 0;
+
+ // Patches are applied one zone at a time. The patch job begins in the
+ // region with the lowest number of targeted VMs. Within the region,
+ // patching begins in the zone with the lowest number of targeted VMs. If
+ // multiple regions (or zones within a region) have the same number of
+ // targeted VMs, a tie-breaker is achieved by sorting the regions or zones
+ // in alphabetical order.
+ ZONE_BY_ZONE = 1;
+
+ // Patches are applied to VMs in all zones at the same time.
+ CONCURRENT_ZONES = 2;
+ }
+
+ // Mode of the patch rollout.
+ Mode mode = 1;
+
+ // The maximum number (or percentage) of VMs per zone to disrupt at any given
+ // moment. The number of VMs calculated from multiplying the percentage by the
+ // total number of VMs in a zone is rounded up.
+ //
+ // During patching, a VM is considered disrupted from the time the agent is
+ // notified to begin until patching has completed. This disruption time
+ // includes the time to complete reboot and any post-patch steps.
+ //
+ // A VM contributes to the disruption budget if its patching operation fails
+ // either when applying the patches, running pre or post patch steps, or if it
+ // fails to respond with a success notification before timing out. VMs that
+ // are not running or do not have an active agent do not count toward this
+ // disruption budget.
+ //
+ // For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ // the patch job stops, because continuing to the next zone requires
+ // completion of the patch process in the previous zone.
+ //
+ // For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ // fail to patch in the current zone, the patch job continues to patch 2 VMs
+ // at a time until the zone is completed. When that zone is completed
+ // successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ // VMs in the next zone fail to patch, the patch job stops.
+ FixedOrPercent disruption_budget = 2;
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/vulnerability.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/vulnerability.proto
new file mode 100644
index 00000000000..b8ca5175ce0
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/vulnerability.proto
@@ -0,0 +1,365 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "VulnerabilityProto";
+option java_package = "com.google.cloud.osconfig.v1";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1";
+option ruby_package = "Google::Cloud::OsConfig::V1";
+
+// This API resource represents the vulnerability report for a specified
+// Compute Engine virtual machine (VM) instance at a given point in time.
+//
+// For more information, see [Vulnerability
+// reports](https://cloud.google.com/compute/docs/instances/os-inventory-management#vulnerability-reports).
+message VulnerabilityReport {
+ option (google.api.resource) = {
+ type: "osconfig.googleapis.com/VulnerabilityReport"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport"
+ };
+
+ // A vulnerability affecting the VM instance.
+ message Vulnerability {
+ // Contains metadata information for the vulnerability. This information is
+ // collected from the upstream feed of the operating system.
+ message Details {
+ // A reference for this vulnerability.
+ message Reference {
+ // The url of the reference.
+ string url = 1;
+
+ // The source of the reference e.g. NVD.
+ string source = 2;
+ }
+
+ // The CVE of the vulnerability. CVE cannot be
+ // empty and the combination of should be unique
+ // across vulnerabilities for a VM.
+ string cve = 1;
+
+ // The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of
+ // 0 - 10 where 0 indicates low severity and 10 indicates high severity.
+ float cvss_v2_score = 2;
+
+ // The full description of the CVSSv3 for this vulnerability from NVD.
+ CVSSv3 cvss_v3 = 3;
+
+ // Assigned severity/impact ranking from the distro.
+ string severity = 4;
+
+ // The note or description describing the vulnerability from the distro.
+ string description = 5;
+
+ // Corresponds to the references attached to the `VulnerabilityDetails`.
+ repeated Reference references = 6;
+ }
+
+ // OS inventory item that is affected by a vulnerability or fixed as a
+ // result of a vulnerability.
+ message Item {
+ // Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ // This field displays the inventory items affected by this vulnerability.
+ // If the vulnerability report was not updated after the VM inventory
+ // update, these values might not display in VM inventory. For some
+ // operating systems, this field might be empty.
+ string installed_inventory_item_id = 1;
+
+ // Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ // If the vulnerability report was not updated after the VM inventory
+ // update, these values might not display in VM inventory. If there is no
+ // available fix, the field is empty. The `inventory_item` value specifies
+ // the latest `SoftwarePackage` available to the VM that fixes the
+ // vulnerability.
+ string available_inventory_item_id = 2;
+
+ // The recommended [CPE URI](https://cpe.mitre.org/specification/) update
+ // that contains a fix for this vulnerability.
+ string fixed_cpe_uri = 3;
+
+ // The upstream OS patch, packages or KB that fixes the vulnerability.
+ string upstream_fix = 4;
+ }
+
+ // Contains metadata as per the upstream feed of the operating system and
+ // NVD.
+ Details details = 1;
+
+ // Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ // This field displays the inventory items affected by this vulnerability.
+ // If the vulnerability report was not updated after the VM inventory
+ // update, these values might not display in VM inventory. For some distros,
+ // this field may be empty.
+ repeated string installed_inventory_item_ids = 2 [deprecated = true];
+
+ // Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ // If the vulnerability report was not updated after the VM inventory
+ // update, these values might not display in VM inventory. If there is no
+ // available fix, the field is empty. The `inventory_item` value specifies
+ // the latest `SoftwarePackage` available to the VM that fixes the
+ // vulnerability.
+ repeated string available_inventory_item_ids = 3 [deprecated = true];
+
+ // The timestamp for when the vulnerability was first detected.
+ google.protobuf.Timestamp create_time = 4;
+
+ // The timestamp for when the vulnerability was last modified.
+ google.protobuf.Timestamp update_time = 5;
+
+ // List of items affected by the vulnerability.
+ repeated Item items = 6;
+ }
+
+ // Output only. The `vulnerabilityReport` API resource name.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. List of vulnerabilities affecting the VM.
+ repeated Vulnerability vulnerabilities = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The timestamp for when the last vulnerability report was generated for the
+ // VM.
+ google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// A request message for getting the vulnerability report for the specified VM.
+message GetVulnerabilityReportRequest {
+ // Required. API resource name for vulnerability resource.
+ //
+ // Format:
+ // `projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport`
+ //
+ // For `{project}`, either `project-number` or `project-id` can be provided.
+ // For `{instance}`, either Compute Engine `instance-id` or `instance-name`
+ // can be provided.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/VulnerabilityReport"
+ }
+ ];
+}
+
+// A request message for listing vulnerability reports for all VM instances in
+// the specified location.
+message ListVulnerabilityReportsRequest {
+ // Required. The parent resource name.
+ //
+ // Format: `projects/{project}/locations/{location}/instances/-`
+ //
+ // For `{project}`, either `project-number` or `project-id` can be provided.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "compute.googleapis.com/Instance"
+ }
+ ];
+
+ // The maximum number of results to return.
+ int32 page_size = 2;
+
+ // A pagination token returned from a previous call to
+ // `ListVulnerabilityReports` that indicates where this listing
+ // should continue from.
+ string page_token = 3;
+
+ // If provided, this field specifies the criteria that must be met by a
+ // `vulnerabilityReport` API resource to be included in the response.
+ string filter = 4;
+}
+
+// A response message for listing vulnerability reports for all VM instances in
+// the specified location.
+message ListVulnerabilityReportsResponse {
+ // List of vulnerabilityReport objects.
+ repeated VulnerabilityReport vulnerability_reports = 1;
+
+ // The pagination token to retrieve the next page of vulnerabilityReports
+ // object.
+ string next_page_token = 2;
+}
+
+// Common Vulnerability Scoring System version 3.
+// For details, see https://www.first.org/cvss/specification-document
+message CVSSv3 {
+ // This metric reflects the context by which vulnerability exploitation is
+ // possible.
+ enum AttackVector {
+ // Invalid value.
+ ATTACK_VECTOR_UNSPECIFIED = 0;
+
+ // The vulnerable component is bound to the network stack and the set of
+ // possible attackers extends beyond the other options listed below, up to
+ // and including the entire Internet.
+ ATTACK_VECTOR_NETWORK = 1;
+
+ // The vulnerable component is bound to the network stack, but the attack is
+ // limited at the protocol level to a logically adjacent topology.
+ ATTACK_VECTOR_ADJACENT = 2;
+
+ // The vulnerable component is not bound to the network stack and the
+ // attacker's path is via read/write/execute capabilities.
+ ATTACK_VECTOR_LOCAL = 3;
+
+ // The attack requires the attacker to physically touch or manipulate the
+ // vulnerable component.
+ ATTACK_VECTOR_PHYSICAL = 4;
+ }
+
+ // This metric describes the conditions beyond the attacker's control that
+ // must exist in order to exploit the vulnerability.
+ enum AttackComplexity {
+ // Invalid value.
+ ATTACK_COMPLEXITY_UNSPECIFIED = 0;
+
+ // Specialized access conditions or extenuating circumstances do not exist.
+ // An attacker can expect repeatable success when attacking the vulnerable
+ // component.
+ ATTACK_COMPLEXITY_LOW = 1;
+
+ // A successful attack depends on conditions beyond the attacker's control.
+ // That is, a successful attack cannot be accomplished at will, but requires
+ // the attacker to invest in some measurable amount of effort in preparation
+ // or execution against the vulnerable component before a successful attack
+ // can be expected.
+ ATTACK_COMPLEXITY_HIGH = 2;
+ }
+
+ // This metric describes the level of privileges an attacker must possess
+ // before successfully exploiting the vulnerability.
+ enum PrivilegesRequired {
+ // Invalid value.
+ PRIVILEGES_REQUIRED_UNSPECIFIED = 0;
+
+ // The attacker is unauthorized prior to attack, and therefore does not
+ // require any access to settings or files of the vulnerable system to
+ // carry out an attack.
+ PRIVILEGES_REQUIRED_NONE = 1;
+
+ // The attacker requires privileges that provide basic user capabilities
+ // that could normally affect only settings and files owned by a user.
+ // Alternatively, an attacker with Low privileges has the ability to access
+ // only non-sensitive resources.
+ PRIVILEGES_REQUIRED_LOW = 2;
+
+ // The attacker requires privileges that provide significant (e.g.,
+ // administrative) control over the vulnerable component allowing access to
+ // component-wide settings and files.
+ PRIVILEGES_REQUIRED_HIGH = 3;
+ }
+
+ // This metric captures the requirement for a human user, other than the
+ // attacker, to participate in the successful compromise of the vulnerable
+ // component.
+ enum UserInteraction {
+ // Invalid value.
+ USER_INTERACTION_UNSPECIFIED = 0;
+
+ // The vulnerable system can be exploited without interaction from any user.
+ USER_INTERACTION_NONE = 1;
+
+ // Successful exploitation of this vulnerability requires a user to take
+ // some action before the vulnerability can be exploited.
+ USER_INTERACTION_REQUIRED = 2;
+ }
+
+ // The Scope metric captures whether a vulnerability in one vulnerable
+ // component impacts resources in components beyond its security scope.
+ enum Scope {
+ // Invalid value.
+ SCOPE_UNSPECIFIED = 0;
+
+ // An exploited vulnerability can only affect resources managed by the same
+ // security authority.
+ SCOPE_UNCHANGED = 1;
+
+ // An exploited vulnerability can affect resources beyond the security scope
+ // managed by the security authority of the vulnerable component.
+ SCOPE_CHANGED = 2;
+ }
+
+ // The Impact metrics capture the effects of a successfully exploited
+ // vulnerability on the component that suffers the worst outcome that is most
+ // directly and predictably associated with the attack.
+ enum Impact {
+ // Invalid value.
+ IMPACT_UNSPECIFIED = 0;
+
+ // High impact.
+ IMPACT_HIGH = 1;
+
+ // Low impact.
+ IMPACT_LOW = 2;
+
+ // No impact.
+ IMPACT_NONE = 3;
+ }
+
+ // The base score is a function of the base metric scores.
+ // https://www.first.org/cvss/specification-document#Base-Metrics
+ float base_score = 1;
+
+ // The Exploitability sub-score equation is derived from the Base
+ // Exploitability metrics.
+ // https://www.first.org/cvss/specification-document#2-1-Exploitability-Metrics
+ float exploitability_score = 2;
+
+ // The Impact sub-score equation is derived from the Base Impact metrics.
+ float impact_score = 3;
+
+ // This metric reflects the context by which vulnerability exploitation is
+ // possible.
+ AttackVector attack_vector = 5;
+
+ // This metric describes the conditions beyond the attacker's control that
+ // must exist in order to exploit the vulnerability.
+ AttackComplexity attack_complexity = 6;
+
+ // This metric describes the level of privileges an attacker must possess
+ // before successfully exploiting the vulnerability.
+ PrivilegesRequired privileges_required = 7;
+
+ // This metric captures the requirement for a human user, other than the
+ // attacker, to participate in the successful compromise of the vulnerable
+ // component.
+ UserInteraction user_interaction = 8;
+
+ // The Scope metric captures whether a vulnerability in one vulnerable
+ // component impacts resources in components beyond its security scope.
+ Scope scope = 9;
+
+ // This metric measures the impact to the confidentiality of the information
+ // resources managed by a software component due to a successfully exploited
+ // vulnerability.
+ Impact confidentiality_impact = 10;
+
+ // This metric measures the impact to integrity of a successfully exploited
+ // vulnerability.
+ Impact integrity_impact = 11;
+
+ // This metric measures the impact to the availability of the impacted
+ // component resulting from a successfully exploited vulnerability.
+ Impact availability_impact = 12;
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/config_common.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/config_common.proto
new file mode 100644
index 00000000000..a7a50c716bf
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/config_common.proto
@@ -0,0 +1,133 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1alpha;
+
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "ConfigCommonProto";
+option java_package = "com.google.cloud.osconfig.v1alpha";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1alpha";
+option ruby_package = "Google::Cloud::OsConfig::V1alpha";
+
+// Step performed by the OS Config agent for configuring an `OSPolicyResource`
+// to its desired state.
+message OSPolicyResourceConfigStep {
+ option deprecated = true;
+
+ // Supported configuration step types
+ enum Type {
+ option deprecated = true;
+
+ // Default value. This value is unused.
+ TYPE_UNSPECIFIED = 0;
+
+ // Validation to detect resource conflicts, schema errors, etc.
+ VALIDATION = 1;
+
+ // Check the current desired state status of the resource.
+ DESIRED_STATE_CHECK = 2;
+
+ // Enforce the desired state for a resource that is not in desired state.
+ DESIRED_STATE_ENFORCEMENT = 3;
+
+ // Re-check desired state status for a resource after enforcement of all
+ // resources in the current configuration run.
+ //
+ // This step is used to determine the final desired state status for the
+ // resource. It accounts for any resources that might have drifted from
+ // their desired state due to side effects from configuring other resources
+ // during the current configuration run.
+ DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4;
+ }
+
+ // Supported outcomes for a configuration step.
+ enum Outcome {
+ option deprecated = true;
+
+ // Default value. This value is unused.
+ OUTCOME_UNSPECIFIED = 0;
+
+ // The step succeeded.
+ SUCCEEDED = 1;
+
+ // The step failed.
+ FAILED = 2;
+ }
+
+ // Configuration step type.
+ Type type = 1;
+
+ // Outcome of the configuration step.
+ Outcome outcome = 2;
+
+ // An error message recorded during the execution of this step.
+ // Only populated when outcome is FAILED.
+ string error_message = 3;
+}
+
+// Compliance data for an OS policy resource.
+message OSPolicyResourceCompliance {
+ option deprecated = true;
+
+ // ExecResource specific output.
+ message ExecResourceOutput {
+ option deprecated = true;
+
+ // Output from Enforcement phase output file (if run).
+ // Output size is limited to 100K bytes.
+ bytes enforcement_output = 2;
+ }
+
+ // The id of the OS policy resource.
+ string os_policy_resource_id = 1;
+
+ // Ordered list of configuration steps taken by the agent for the OS policy
+ // resource.
+ repeated OSPolicyResourceConfigStep config_steps = 2;
+
+ // Compliance state of the OS policy resource.
+ OSPolicyComplianceState state = 3;
+
+ // Resource specific output.
+ oneof output {
+ // ExecResource specific output.
+ ExecResourceOutput exec_resource_output = 4;
+ }
+}
+
+// Supported OSPolicy compliance states.
+enum OSPolicyComplianceState {
+ option deprecated = true;
+
+ // Default value. This value is unused.
+ OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED = 0;
+
+ // Compliant state.
+ COMPLIANT = 1;
+
+ // Non-compliant state
+ NON_COMPLIANT = 2;
+
+ // Unknown compliance state.
+ UNKNOWN = 3;
+
+ // No applicable OS policies were found for the instance.
+ // This state is only applicable to the instance.
+ NO_OS_POLICIES_APPLICABLE = 4;
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto
new file mode 100644
index 00000000000..501ac3aef3f
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto
@@ -0,0 +1,182 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1alpha;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/osconfig/v1alpha/config_common.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "InstanceOSPoliciesComplianceProto";
+option java_package = "com.google.cloud.osconfig.v1alpha";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1alpha";
+option ruby_package = "Google::Cloud::OsConfig::V1alpha";
+
+// This API resource represents the OS policies compliance data for a Compute
+// Engine virtual machine (VM) instance at a given point in time.
+//
+// A Compute Engine VM can have multiple OS policy assignments, and each
+// assignment can have multiple OS policies. As a result, multiple OS policies
+// could be applied to a single VM.
+//
+// You can use this API resource to determine both the compliance state of your
+// VM as well as the compliance state of an individual OS policy.
+//
+// For more information, see [View
+// compliance](https://cloud.google.com/compute/docs/os-configuration-management/view-compliance).
+message InstanceOSPoliciesCompliance {
+ option deprecated = true;
+ option (google.api.resource) = {
+ type: "osconfig.googleapis.com/InstanceOSPoliciesCompliance"
+ pattern: "projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}"
+ };
+
+ // Compliance data for an OS policy
+ message OSPolicyCompliance {
+ option deprecated = true;
+
+ // The OS policy id
+ string os_policy_id = 1;
+
+ // Reference to the `OSPolicyAssignment` API resource that the `OSPolicy`
+ // belongs to.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
+ string os_policy_assignment = 2 [(google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ }];
+
+ // Compliance state of the OS policy.
+ OSPolicyComplianceState state = 4;
+
+ // Compliance data for each `OSPolicyResource` that is applied to the
+ // VM.
+ repeated OSPolicyResourceCompliance os_policy_resource_compliances = 5;
+ }
+
+ // Output only. The `InstanceOSPoliciesCompliance` API resource name.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The Compute Engine VM instance name.
+ string instance = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Compliance state of the VM.
+ OSPolicyComplianceState state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Detailed compliance state of the VM.
+ // This field is populated only when compliance state is `UNKNOWN`.
+ //
+ // It may contain one of the following values:
+ //
+ // * `no-compliance-data`: Compliance data is not available for this VM.
+ // * `no-agent-detected`: OS Config agent is not detected for this VM.
+ // * `config-not-supported-by-agent`: The version of the OS Config agent
+ // running on this VM does not support configuration management.
+ // * `inactive`: VM is not running.
+ // * `internal-service-errors`: There were internal service errors encountered
+ // while enforcing compliance.
+ // * `agent-errors`: OS config agent encountered errors while enforcing
+ // compliance.
+ string detailed_state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The reason for the `detailed_state` of the VM (if any).
+ string detailed_state_reason = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Compliance data for each `OSPolicy` that is applied to the VM.
+ repeated OSPolicyCompliance os_policy_compliances = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Timestamp of the last compliance check for the VM.
+ google.protobuf.Timestamp last_compliance_check_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Unique identifier for the last compliance run.
+ // This id will be logged by the OS config agent during a compliance run and
+ // can be used for debugging and tracing purpose.
+ string last_compliance_run_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// A request message for getting OS policies compliance data for the given
+// Compute Engine VM instance.
+message GetInstanceOSPoliciesComplianceRequest {
+ option deprecated = true;
+
+ // Required. API resource name for instance OS policies compliance resource.
+ //
+ // Format:
+ // `projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}`
+ //
+ // For `{project}`, either Compute Engine project-number or project-id can be
+ // provided.
+ // For `{instance}`, either Compute Engine VM instance-id or instance-name can
+ // be provided.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/InstanceOSPoliciesCompliance"
+ }
+ ];
+}
+
+// A request message for listing OS policies compliance data for all Compute
+// Engine VMs in the given location.
+message ListInstanceOSPoliciesCompliancesRequest {
+ option deprecated = true;
+
+ // Required. The parent resource name.
+ //
+ // Format: `projects/{project}/locations/{location}`
+ //
+ // For `{project}`, either Compute Engine project-number or project-id can be
+ // provided.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of results to return.
+ int32 page_size = 2;
+
+ // A pagination token returned from a previous call to
+ // `ListInstanceOSPoliciesCompliances` that indicates where this listing
+ // should continue from.
+ string page_token = 3;
+
+ // If provided, this field specifies the criteria that must be met by a
+ // `InstanceOSPoliciesCompliance` API resource to be included in the response.
+ string filter = 4;
+}
+
+// A response message for listing OS policies compliance data for all Compute
+// Engine VMs in the given location.
+message ListInstanceOSPoliciesCompliancesResponse {
+ option deprecated = true;
+
+ // List of instance OS policies compliance objects.
+ repeated InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;
+
+ // The pagination token to retrieve the next page of instance OS policies
+ // compliance objects.
+ string next_page_token = 2;
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/inventory.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/inventory.proto
new file mode 100644
index 00000000000..c524ae1c93e
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/inventory.proto
@@ -0,0 +1,383 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1alpha;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+import "google/type/date.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "Inventories";
+option java_package = "com.google.cloud.osconfig.v1alpha";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1alpha";
+option ruby_package = "Google::Cloud::OsConfig::V1alpha";
+
+// OS Inventory is a service for collecting and reporting operating
+// system and package information on VM instances.
+
+// This API resource represents the available inventory data for a
+// Compute Engine virtual machine (VM) instance at a given point in time.
+//
+// You can use this API resource to determine the inventory data of your VM.
+//
+// For more information, see [Information provided by OS inventory
+// management](https://cloud.google.com/compute/docs/instances/os-inventory-management#data-collected).
+message Inventory {
+ option (google.api.resource) = {
+ type: "osconfig.googleapis.com/Inventory"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}/inventory"
+ };
+
+ // Operating system information for the VM.
+ message OsInfo {
+ // The VM hostname.
+ string hostname = 9;
+
+ // The operating system long name.
+ // For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019
+ // Datacenter'.
+ string long_name = 2;
+
+ // The operating system short name.
+ // For example, 'windows' or 'debian'.
+ string short_name = 3;
+
+ // The version of the operating system.
+ string version = 4;
+
+ // The system architecture of the operating system.
+ string architecture = 5;
+
+ // The kernel version of the operating system.
+ string kernel_version = 6;
+
+ // The kernel release of the operating system.
+ string kernel_release = 7;
+
+ // The current version of the OS Config agent running on the VM.
+ string osconfig_agent_version = 8;
+ }
+
+ // A single piece of inventory on a VM.
+ message Item {
+ // The origin of a specific inventory item.
+ enum OriginType {
+ // Invalid. An origin type must be specified.
+ ORIGIN_TYPE_UNSPECIFIED = 0;
+
+ // This inventory item was discovered as the result of the agent
+ // reporting inventory via the reporting API.
+ INVENTORY_REPORT = 1;
+ }
+
+ // The different types of inventory that are tracked on a VM.
+ enum Type {
+ // Invalid. An type must be specified.
+ TYPE_UNSPECIFIED = 0;
+
+ // This represents a package that is installed on the VM.
+ INSTALLED_PACKAGE = 1;
+
+ // This represents an update that is available for a package.
+ AVAILABLE_PACKAGE = 2;
+ }
+
+ // Identifier for this item, unique across items for this VM.
+ string id = 1;
+
+ // The origin of this inventory item.
+ OriginType origin_type = 2;
+
+ // When this inventory item was first detected.
+ google.protobuf.Timestamp create_time = 8;
+
+ // When this inventory item was last modified.
+ google.protobuf.Timestamp update_time = 9;
+
+ // The specific type of inventory, correlating to its specific details.
+ Type type = 5;
+
+ // Specific details of this inventory item based on its type.
+ oneof details {
+ // Software package present on the VM instance.
+ SoftwarePackage installed_package = 6;
+
+ // Software package available to be installed on the VM instance.
+ SoftwarePackage available_package = 7;
+ }
+ }
+
+ // Software package information of the operating system.
+ message SoftwarePackage {
+ // Information about the different types of software packages.
+ oneof details {
+ // Yum package info.
+ // For details about the yum package manager, see
+ // https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum.
+ VersionedPackage yum_package = 1;
+
+ // Details of an APT package.
+ // For details about the apt package manager, see
+ // https://wiki.debian.org/Apt.
+ VersionedPackage apt_package = 2;
+
+ // Details of a Zypper package.
+ // For details about the Zypper package manager, see
+ // https://en.opensuse.org/SDB:Zypper_manual.
+ VersionedPackage zypper_package = 3;
+
+ // Details of a Googet package.
+ // For details about the googet package manager, see
+ // https://github.com/google/googet.
+ VersionedPackage googet_package = 4;
+
+ // Details of a Zypper patch.
+ // For details about the Zypper package manager, see
+ // https://en.opensuse.org/SDB:Zypper_manual.
+ ZypperPatch zypper_patch = 5;
+
+ // Details of a Windows Update package.
+ // See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for
+ // information about Windows Update.
+ WindowsUpdatePackage wua_package = 6;
+
+ // Details of a Windows Quick Fix engineering package.
+ // See
+ // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
+ // for info in Windows Quick Fix Engineering.
+ WindowsQuickFixEngineeringPackage qfe_package = 7;
+
+ // Details of a COS package.
+ VersionedPackage cos_package = 8;
+
+ // Details of Windows Application.
+ WindowsApplication windows_application = 9;
+ }
+ }
+
+ // Information related to the a standard versioned package. This includes
+ // package info for APT, Yum, Zypper, and Googet package managers.
+ message VersionedPackage {
+ // The name of the package.
+ string package_name = 4;
+
+ // The system architecture this package is intended for.
+ string architecture = 2;
+
+ // The version of the package.
+ string version = 3;
+ }
+
+ // Details related to a Zypper Patch.
+ message ZypperPatch {
+ // The name of the patch.
+ string patch_name = 5;
+
+ // The category of the patch.
+ string category = 2;
+
+ // The severity specified for this patch
+ string severity = 3;
+
+ // Any summary information provided about this patch.
+ string summary = 4;
+ }
+
+ // Details related to a Windows Update package.
+ // Field data and names are taken from Windows Update API IUpdate Interface:
+ // https://docs.microsoft.com/en-us/windows/win32/api/_wua/
+ // Descriptive fields like title, and description are localized based on
+ // the locale of the VM being updated.
+ message WindowsUpdatePackage {
+ // Categories specified by the Windows Update.
+ message WindowsUpdateCategory {
+ // The identifier of the windows update category.
+ string id = 1;
+
+ // The name of the windows update category.
+ string name = 2;
+ }
+
+ // The localized title of the update package.
+ string title = 1;
+
+ // The localized description of the update package.
+ string description = 2;
+
+ // The categories that are associated with this update package.
+ repeated WindowsUpdateCategory categories = 3;
+
+ // A collection of Microsoft Knowledge Base article IDs that are associated
+ // with the update package.
+ repeated string kb_article_ids = 4;
+
+ // A hyperlink to the language-specific support information for the update.
+ string support_url = 11;
+
+ // A collection of URLs that provide more information about the update
+ // package.
+ repeated string more_info_urls = 5;
+
+ // Gets the identifier of an update package. Stays the same across
+ // revisions.
+ string update_id = 6;
+
+ // The revision number of this update package.
+ int32 revision_number = 7;
+
+ // The last published date of the update, in (UTC) date and time.
+ google.protobuf.Timestamp last_deployment_change_time = 10;
+ }
+
+ // Information related to a Quick Fix Engineering package.
+ // Fields are taken from Windows QuickFixEngineering Interface and match
+ // the source names:
+ // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
+ message WindowsQuickFixEngineeringPackage {
+ // A short textual description of the QFE update.
+ string caption = 1;
+
+ // A textual description of the QFE update.
+ string description = 2;
+
+ // Unique identifier associated with a particular QFE update.
+ string hot_fix_id = 3;
+
+ // Date that the QFE update was installed. Mapped from installed_on field.
+ google.protobuf.Timestamp install_time = 5;
+ }
+
+ // Contains information about a Windows application that is retrieved from the
+ // Windows Registry. For more information about these fields, see:
+ // https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key
+ message WindowsApplication {
+ // The name of the application or product.
+ string display_name = 1;
+
+ // The version of the product or application in string format.
+ string display_version = 2;
+
+ // The name of the manufacturer for the product or application.
+ string publisher = 3;
+
+ // The last time this product received service. The value of this property
+ // is replaced each time a patch is applied or removed from the product or
+ // the command-line option is used to repair the product.
+ google.type.Date install_date = 4;
+
+ // The internet address for technical support.
+ string help_link = 5;
+ }
+
+ // Output only. The `Inventory` API resource name.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`
+ string name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Base level operating system information for the VM.
+ OsInfo os_info = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ // each inventory item. The identifier is unique to each distinct and
+ // addressable inventory item and will change, when there is a new package
+ // version.
+ map items = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Timestamp of the last reported inventory for the VM.
+ google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// A request message for getting inventory data for the specified VM.
+message GetInventoryRequest {
+ // Required. API resource name for inventory resource.
+ //
+ // Format:
+ // `projects/{project}/locations/{location}/instances/{instance}/inventory`
+ //
+ // For `{project}`, either `project-number` or `project-id` can be provided.
+ // For `{instance}`, either Compute Engine `instance-id` or `instance-name`
+ // can be provided.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/Inventory"
+ }
+ ];
+
+ // Inventory view indicating what information should be included in the
+ // inventory resource. If unspecified, the default view is BASIC.
+ InventoryView view = 2;
+}
+
+// A request message for listing inventory data for all VMs in the specified
+// location.
+message ListInventoriesRequest {
+ // Required. The parent resource name.
+ //
+ // Format: `projects/{project}/locations/{location}/instances/-`
+ //
+ // For `{project}`, either `project-number` or `project-id` can be provided.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "compute.googleapis.com/Instance"
+ }
+ ];
+
+ // Inventory view indicating what information should be included in the
+ // inventory resource. If unspecified, the default view is BASIC.
+ InventoryView view = 2;
+
+ // The maximum number of results to return.
+ int32 page_size = 3;
+
+ // A pagination token returned from a previous call to
+ // `ListInventories` that indicates where this listing
+ // should continue from.
+ string page_token = 4;
+
+ // If provided, this field specifies the criteria that must be met by a
+ // `Inventory` API resource to be included in the response.
+ string filter = 5;
+}
+
+// A response message for listing inventory data for all VMs in a specified
+// location.
+message ListInventoriesResponse {
+ // List of inventory objects.
+ repeated Inventory inventories = 1;
+
+ // The pagination token to retrieve the next page of inventory objects.
+ string next_page_token = 2;
+}
+
+// The view for inventory objects.
+enum InventoryView {
+ // The default value.
+ // The API defaults to the BASIC view.
+ INVENTORY_VIEW_UNSPECIFIED = 0;
+
+ // Returns the basic inventory information that includes `os_info`.
+ BASIC = 1;
+
+ // Returns all fields.
+ FULL = 2;
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy.proto
new file mode 100644
index 00000000000..578d82a1e69
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy.proto
@@ -0,0 +1,565 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1alpha;
+
+import "google/api/field_behavior.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "OsPolicyProto";
+option java_package = "com.google.cloud.osconfig.v1alpha";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1alpha";
+option ruby_package = "Google::Cloud::OsConfig::V1alpha";
+
+// An OS policy defines the desired state configuration for a VM.
+message OSPolicy {
+ // Policy mode
+ enum Mode {
+ // Invalid mode
+ MODE_UNSPECIFIED = 0;
+
+ // This mode checks if the configuration resources in the policy are in
+ // their desired state. No actions are performed if they are not in the
+ // desired state. This mode is used for reporting purposes.
+ VALIDATION = 1;
+
+ // This mode checks if the configuration resources in the policy are in
+ // their desired state, and if not, enforces the desired state.
+ ENFORCEMENT = 2;
+ }
+
+ // Filtering criteria to select VMs based on OS details.
+ message OSFilter {
+ // This should match OS short name emitted by the OS inventory agent.
+ // An empty value matches any OS.
+ string os_short_name = 1;
+
+ // This value should match the version emitted by the OS inventory
+ // agent.
+ // Prefix matches are supported if asterisk(*) is provided as the
+ // last character. For example, to match all versions with a major
+ // version of `7`, specify the following value for this field `7.*`
+ string os_version = 2;
+ }
+
+ // Filtering criteria to select VMs based on inventory details.
+ message InventoryFilter {
+ // Required. The OS short name
+ string os_short_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The OS version
+ //
+ // Prefix matches are supported if asterisk(*) is provided as the
+ // last character. For example, to match all versions with a major
+ // version of `7`, specify the following value for this field `7.*`
+ //
+ // An empty string matches all OS versions.
+ string os_version = 2;
+ }
+
+ // An OS policy resource is used to define the desired state configuration
+ // and provides a specific functionality like installing/removing packages,
+ // executing a script etc.
+ //
+ // The system ensures that resources are always in their desired state by
+ // taking necessary actions if they have drifted from their desired state.
+ message Resource {
+ // A remote or local file.
+ message File {
+ // Specifies a file available via some URI.
+ message Remote {
+ // Required. URI from which to fetch the object. It should contain both the
+ // protocol and path following the format `{protocol}://{location}`.
+ string uri = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // SHA256 checksum of the remote file.
+ string sha256_checksum = 2;
+ }
+
+ // Specifies a file available as a Cloud Storage Object.
+ message Gcs {
+ // Required. Bucket of the Cloud Storage object.
+ string bucket = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Name of the Cloud Storage object.
+ string object = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Generation number of the Cloud Storage object.
+ int64 generation = 3;
+ }
+
+ // A specific type of file.
+ oneof type {
+ // A generic remote file.
+ Remote remote = 1;
+
+ // A Cloud Storage object.
+ Gcs gcs = 2;
+
+ // A local path within the VM to use.
+ string local_path = 3;
+ }
+
+ // Defaults to false. When false, files are subject to validations
+ // based on the file type:
+ //
+ // Remote: A checksum must be specified.
+ // Cloud Storage: An object generation number must be specified.
+ bool allow_insecure = 4;
+ }
+
+ // A resource that manages a system package.
+ message PackageResource {
+ // The desired state that the OS Config agent maintains on the VM.
+ enum DesiredState {
+ // Unspecified is invalid.
+ DESIRED_STATE_UNSPECIFIED = 0;
+
+ // Ensure that the package is installed.
+ INSTALLED = 1;
+
+ // The agent ensures that the package is not installed and
+ // uninstalls it if detected.
+ REMOVED = 2;
+ }
+
+ // A deb package file. dpkg packages only support INSTALLED state.
+ message Deb {
+ // Required. A deb package.
+ File source = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Whether dependencies should also be installed.
+ // - install when false: `dpkg -i package`
+ // - install when true: `apt-get update && apt-get -y install
+ // package.deb`
+ bool pull_deps = 2;
+ }
+
+ // A package managed by APT.
+ // - install: `apt-get update && apt-get -y install [name]`
+ // - remove: `apt-get -y remove [name]`
+ message APT {
+ // Required. Package name.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // An RPM package file. RPM packages only support INSTALLED state.
+ message RPM {
+ // Required. An rpm package.
+ File source = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Whether dependencies should also be installed.
+ // - install when false: `rpm --upgrade --replacepkgs package.rpm`
+ // - install when true: `yum -y install package.rpm` or
+ // `zypper -y install package.rpm`
+ bool pull_deps = 2;
+ }
+
+ // A package managed by YUM.
+ // - install: `yum -y install package`
+ // - remove: `yum -y remove package`
+ message YUM {
+ // Required. Package name.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // A package managed by Zypper.
+ // - install: `zypper -y install package`
+ // - remove: `zypper -y rm package`
+ message Zypper {
+ // Required. Package name.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // A package managed by GooGet.
+ // - install: `googet -noconfirm install package`
+ // - remove: `googet -noconfirm remove package`
+ message GooGet {
+ // Required. Package name.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // An MSI package. MSI packages only support INSTALLED state.
+ message MSI {
+ // Required. The MSI package.
+ File source = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Additional properties to use during installation.
+ // This should be in the format of Property=Setting.
+ // Appended to the defaults of `ACTION=INSTALL
+ // REBOOT=ReallySuppress`.
+ repeated string properties = 2;
+ }
+
+ // Required. The desired state the agent should maintain for this package.
+ DesiredState desired_state = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // A system package.
+ oneof system_package {
+ // A package managed by Apt.
+ APT apt = 2;
+
+ // A deb package file.
+ Deb deb = 3;
+
+ // A package managed by YUM.
+ YUM yum = 4;
+
+ // A package managed by Zypper.
+ Zypper zypper = 5;
+
+ // An rpm package file.
+ RPM rpm = 6;
+
+ // A package managed by GooGet.
+ GooGet googet = 7;
+
+ // An MSI package.
+ MSI msi = 8;
+ }
+ }
+
+ // A resource that manages a package repository.
+ message RepositoryResource {
+ // Represents a single apt package repository. These will be added to
+ // a repo file that will be managed at
+ // `/etc/apt/sources.list.d/google_osconfig.list`.
+ message AptRepository {
+ // Type of archive.
+ enum ArchiveType {
+ // Unspecified is invalid.
+ ARCHIVE_TYPE_UNSPECIFIED = 0;
+
+ // Deb indicates that the archive contains binary files.
+ DEB = 1;
+
+ // Deb-src indicates that the archive contains source files.
+ DEB_SRC = 2;
+ }
+
+ // Required. Type of archive files in this repository.
+ ArchiveType archive_type = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. URI for this repository.
+ string uri = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Distribution of this repository.
+ string distribution = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. List of components for this repository. Must contain at least one
+ // item.
+ repeated string components = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // URI of the key file for this repository. The agent maintains a
+ // keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg`.
+ string gpg_key = 5;
+ }
+
+ // Represents a single yum package repository. These are added to a
+ // repo file that is managed at
+ // `/etc/yum.repos.d/google_osconfig.repo`.
+ message YumRepository {
+ // Required. A one word, unique name for this repository. This is the `repo
+ // id` in the yum config file and also the `display_name` if
+ // `display_name` is omitted. This id is also used as the unique
+ // identifier when checking for resource conflicts.
+ string id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The display name of the repository.
+ string display_name = 2;
+
+ // Required. The location of the repository directory.
+ string base_url = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // URIs of GPG keys.
+ repeated string gpg_keys = 4;
+ }
+
+ // Represents a single zypper package repository. These are added to a
+ // repo file that is managed at
+ // `/etc/zypp/repos.d/google_osconfig.repo`.
+ message ZypperRepository {
+ // Required. A one word, unique name for this repository. This is the `repo
+ // id` in the zypper config file and also the `display_name` if
+ // `display_name` is omitted. This id is also used as the unique
+ // identifier when checking for GuestPolicy conflicts.
+ string id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The display name of the repository.
+ string display_name = 2;
+
+ // Required. The location of the repository directory.
+ string base_url = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // URIs of GPG keys.
+ repeated string gpg_keys = 4;
+ }
+
+ // Represents a Goo package repository. These are added to a repo file
+ // that is managed at
+ // `C:/ProgramData/GooGet/repos/google_osconfig.repo`.
+ message GooRepository {
+ // Required. The name of the repository.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The url of the repository.
+ string url = 2 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // A specific type of repository.
+ oneof repository {
+ // An Apt Repository.
+ AptRepository apt = 1;
+
+ // A Yum Repository.
+ YumRepository yum = 2;
+
+ // A Zypper Repository.
+ ZypperRepository zypper = 3;
+
+ // A Goo Repository.
+ GooRepository goo = 4;
+ }
+ }
+
+ // A resource that allows executing scripts on the VM.
+ //
+ // The `ExecResource` has 2 stages: `validate` and `enforce` and both stages
+ // accept a script as an argument to execute.
+ //
+ // When the `ExecResource` is applied by the agent, it first executes the
+ // script in the `validate` stage. The `validate` stage can signal that the
+ // `ExecResource` is already in the desired state by returning an exit code
+ // of `100`. If the `ExecResource` is not in the desired state, it should
+ // return an exit code of `101`. Any other exit code returned by this stage
+ // is considered an error.
+ //
+ // If the `ExecResource` is not in the desired state based on the exit code
+ // from the `validate` stage, the agent proceeds to execute the script from
+ // the `enforce` stage. If the `ExecResource` is already in the desired
+ // state, the `enforce` stage will not be run.
+ // Similar to `validate` stage, the `enforce` stage should return an exit
+ // code of `100` to indicate that the resource in now in its desired state.
+ // Any other exit code is considered an error.
+ //
+ // NOTE: An exit code of `100` was chosen over `0` (and `101` vs `1`) to
+ // have an explicit indicator of `in desired state`, `not in desired state`
+ // and errors. Because, for example, Powershell will always return an exit
+ // code of `0` unless an `exit` statement is provided in the script. So, for
+ // reasons of consistency and being explicit, exit codes `100` and `101`
+ // were chosen.
+ message ExecResource {
+ // A file or script to execute.
+ message Exec {
+ // The interpreter to use.
+ enum Interpreter {
+ // Invalid value, the request will return validation error.
+ INTERPRETER_UNSPECIFIED = 0;
+
+ // If an interpreter is not specified, the
+ // source is executed directly. This execution, without an
+ // interpreter, only succeeds for executables and scripts that have shebang lines.
+ NONE = 1;
+
+ // Indicates that the script runs with `/bin/sh` on Linux and
+ // `cmd.exe` on Windows.
+ SHELL = 2;
+
+ // Indicates that the script runs with PowerShell.
+ POWERSHELL = 3;
+ }
+
+ // What to execute.
+ oneof source {
+ // A remote or local file.
+ File file = 1;
+
+ // An inline script.
+ // The size of the script is limited to 1024 characters.
+ string script = 2;
+ }
+
+ // Optional arguments to pass to the source during execution.
+ repeated string args = 3;
+
+ // Required. The script interpreter to use.
+ Interpreter interpreter = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Only recorded for enforce Exec.
+ // Path to an output file (that is created by this Exec) whose
+ // content will be recorded in OSPolicyResourceCompliance after a
+ // successful run. Absence or failure to read this file will result in
+ // this ExecResource being non-compliant. Output file size is limited to
+ // 100K bytes.
+ string output_file_path = 5;
+ }
+
+ // Required. What to run to validate this resource is in the desired state.
+ // An exit code of 100 indicates "in desired state", and exit code of 101
+ // indicates "not in desired state". Any other exit code indicates a
+ // failure running validate.
+ Exec validate = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // What to run to bring this resource into the desired state.
+ // An exit code of 100 indicates "success", any other exit code indicates
+ // a failure running enforce.
+ Exec enforce = 2;
+ }
+
+ // A resource that manages the state of a file.
+ message FileResource {
+ // Desired state of the file.
+ enum DesiredState {
+ // Unspecified is invalid.
+ DESIRED_STATE_UNSPECIFIED = 0;
+
+ // Ensure file at path is present.
+ PRESENT = 1;
+
+ // Ensure file at path is absent.
+ ABSENT = 2;
+
+ // Ensure the contents of the file at path matches. If the file does
+ // not exist it will be created.
+ CONTENTS_MATCH = 3;
+ }
+
+ // The source for the contents of the file.
+ oneof source {
+ // A remote or local source.
+ File file = 1;
+
+ // A a file with this content.
+ // The size of the content is limited to 1024 characters.
+ string content = 2;
+ }
+
+ // Required. The absolute path of the file within the VM.
+ string path = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Desired state of the file.
+ DesiredState state = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Consists of three octal digits which represent, in
+ // order, the permissions of the owner, group, and other users for the
+ // file (similarly to the numeric mode used in the linux chmod
+ // utility). Each digit represents a three bit number with the 4 bit
+ // corresponding to the read permissions, the 2 bit corresponds to the
+ // write bit, and the one bit corresponds to the execute permission.
+ // Default behavior is 755.
+ //
+ // Below are some examples of permissions and their associated values:
+ // read, write, and execute: 7
+ // read and execute: 5
+ // read and write: 6
+ // read only: 4
+ string permissions = 5;
+ }
+
+ // Required. The id of the resource with the following restrictions:
+ //
+ // * Must contain only lowercase letters, numbers, and hyphens.
+ // * Must start with a letter.
+ // * Must be between 1-63 characters.
+ // * Must end with a number or a letter.
+ // * Must be unique within the OS policy.
+ string id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Resource type.
+ oneof resource_type {
+ // Package resource
+ PackageResource pkg = 2;
+
+ // Package repository resource
+ RepositoryResource repository = 3;
+
+ // Exec resource
+ ExecResource exec = 4;
+
+ // File resource
+ FileResource file = 5;
+ }
+ }
+
+ // Resource groups provide a mechanism to group OS policy resources.
+ //
+ // Resource groups enable OS policy authors to create a single OS policy
+ // to be applied to VMs running different operating Systems.
+ //
+ // When the OS policy is applied to a target VM, the appropriate resource
+ // group within the OS policy is selected based on the `OSFilter` specified
+ // within the resource group.
+ message ResourceGroup {
+ // Deprecated. Use the `inventory_filters` field instead.
+ // Used to specify the OS filter for a resource group
+ OSFilter os_filter = 1 [deprecated = true];
+
+ // List of inventory filters for the resource group.
+ //
+ // The resources in this resource group are applied to the target VM if it
+ // satisfies at least one of the following inventory filters.
+ //
+ // For example, to apply this resource group to VMs running either `RHEL` or
+ // `CentOS` operating systems, specify 2 items for the list with following
+ // values:
+ // inventory_filters[0].os_short_name='rhel' and
+ // inventory_filters[1].os_short_name='centos'
+ //
+ // If the list is empty, this resource group will be applied to the target
+ // VM unconditionally.
+ repeated InventoryFilter inventory_filters = 3;
+
+ // Required. List of resources configured for this resource group.
+ // The resources are executed in the exact order specified here.
+ repeated Resource resources = 2 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Required. The id of the OS policy with the following restrictions:
+ //
+ // * Must contain only lowercase letters, numbers, and hyphens.
+ // * Must start with a letter.
+ // * Must be between 1-63 characters.
+ // * Must end with a number or a letter.
+ // * Must be unique within the assignment.
+ string id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Policy description.
+ // Length of the description is limited to 1024 characters.
+ string description = 2;
+
+ // Required. Policy mode
+ Mode mode = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. List of resource groups for the policy.
+ // For a particular VM, resource groups are evaluated in the order specified
+ // and the first resource group that is applicable is selected and the rest
+ // are ignored.
+ //
+ // If none of the resource groups are applicable for a VM, the VM is
+ // considered to be non-compliant w.r.t this policy. This behavior can be
+ // toggled by the flag `allow_no_resource_group_match`
+ repeated ResourceGroup resource_groups = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // This flag determines the OS policy compliance status when none of the
+ // resource groups within the policy are applicable for a VM. Set this value
+ // to `true` if the policy needs to be reported as compliant even if the
+ // policy has nothing to validate or enforce.
+ bool allow_no_resource_group_match = 5;
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignment_reports.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignment_reports.proto
new file mode 100644
index 00000000000..87905bbf5e8
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignment_reports.proto
@@ -0,0 +1,296 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1alpha;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "OSPolicyAssignmentReportsProto";
+option java_package = "com.google.cloud.osconfig.v1alpha";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1alpha";
+option ruby_package = "Google::Cloud::OsConfig::V1alpha";
+option (google.api.resource_definition) = {
+ type: "compute.googleapis.com/InstanceOSPolicyAssignment"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}"
+};
+
+// Get a report of the OS policy assignment for a VM instance.
+message GetOSPolicyAssignmentReportRequest {
+ // Required. API resource name for OS policy assignment report.
+ //
+ // Format:
+ // `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ //
+ // For `{project}`, either `project-number` or `project-id` can be provided.
+ // For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
+ // can be provided.
+ // For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignmentReport"
+ }
+ ];
+}
+
+// List the OS policy assignment reports for VM instances.
+message ListOSPolicyAssignmentReportsRequest {
+ // Required. The parent resource name.
+ //
+ // Format:
+ // `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ //
+ // For `{project}`, either `project-number` or `project-id` can be provided.
+ // For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
+ // provided. If '-' is provided, the response will include
+ // OSPolicyAssignmentReports for all instances in the project/location.
+ // For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ // is provided, the response will include OSPolicyAssignmentReports for all
+ // OSPolicyAssignments in the project/location.
+ // Either {instance} or {assignment} must be `-`.
+ //
+ // For example:
+ // `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ // returns all reports for the instance
+ // `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ // returns all the reports for the given assignment across all instances.
+ // `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
+ // returns all the reports for all assignments across all instances.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "compute.googleapis.com/InstanceOSPolicyAssignment"
+ }
+ ];
+
+ // The maximum number of results to return.
+ int32 page_size = 2;
+
+ // If provided, this field specifies the criteria that must be met by the
+ // `OSPolicyAssignmentReport` API resource that is included in the response.
+ string filter = 3;
+
+ // A pagination token returned from a previous call to the
+ // `ListOSPolicyAssignmentReports` method that indicates where this listing
+ // should continue from.
+ string page_token = 4;
+}
+
+// A response message for listing OS Policy assignment reports including the
+// page of results and page token.
+message ListOSPolicyAssignmentReportsResponse {
+ // List of OS policy assignment reports.
+ repeated OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+
+ // The pagination token to retrieve the next page of OS policy assignment
+ // report objects.
+ string next_page_token = 2;
+}
+
+// A report of the OS policy assignment status for a given instance.
+message OSPolicyAssignmentReport {
+ option (google.api.resource) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignmentReport"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report"
+ };
+
+ // Compliance data for an OS policy
+ message OSPolicyCompliance {
+ // Possible compliance states for an os policy.
+ enum ComplianceState {
+ // The policy is in an unknown compliance state.
+ //
+ // Refer to the field `compliance_state_reason` to learn the exact reason
+ // for the policy to be in this compliance state.
+ UNKNOWN = 0;
+
+ // Policy is compliant.
+ //
+ // The policy is compliant if all the underlying resources are also
+ // compliant.
+ COMPLIANT = 1;
+
+ // Policy is non-compliant.
+ //
+ // The policy is non-compliant if one or more underlying resources are
+ // non-compliant.
+ NON_COMPLIANT = 2;
+ }
+
+ // Compliance data for an OS policy resource.
+ message OSPolicyResourceCompliance {
+ // Step performed by the OS Config agent for configuring an
+ // `OSPolicy` resource to its desired state.
+ message OSPolicyResourceConfigStep {
+ // Supported configuration step types
+ enum Type {
+ // Default value. This value is unused.
+ TYPE_UNSPECIFIED = 0;
+
+ // Checks for resource conflicts such as schema errors.
+ VALIDATION = 1;
+
+ // Checks the current status of the desired state for a resource.
+ DESIRED_STATE_CHECK = 2;
+
+ // Enforces the desired state for a resource that is not in desired
+ // state.
+ DESIRED_STATE_ENFORCEMENT = 3;
+
+ // Re-checks the status of the desired state. This check is done
+ // for a resource after the enforcement of all OS policies.
+ //
+ // This step is used to determine the final desired state status for
+ // the resource. It accounts for any resources that might have drifted
+ // from their desired state due to side effects from executing other
+ // resources.
+ DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4;
+ }
+
+ // Configuration step type.
+ Type type = 1;
+
+ // An error message recorded during the execution of this step.
+ // Only populated if errors were encountered during this step execution.
+ string error_message = 2;
+ }
+
+ // Possible compliance states for a resource.
+ enum ComplianceState {
+ // The resource is in an unknown compliance state.
+ //
+ // To get more details about why the policy is in this state, review
+ // the output of the `compliance_state_reason` field.
+ UNKNOWN = 0;
+
+ // Resource is compliant.
+ COMPLIANT = 1;
+
+ // Resource is non-compliant.
+ NON_COMPLIANT = 2;
+ }
+
+ // ExecResource specific output.
+ message ExecResourceOutput {
+ // Output from enforcement phase output file (if run).
+ // Output size is limited to 100K bytes.
+ bytes enforcement_output = 2;
+ }
+
+ // The ID of the OS policy resource.
+ string os_policy_resource_id = 1;
+
+ // Ordered list of configuration completed by the agent for the OS policy
+ // resource.
+ repeated OSPolicyResourceConfigStep config_steps = 2;
+
+ // The compliance state of the resource.
+ ComplianceState compliance_state = 3;
+
+ // A reason for the resource to be in the given compliance state.
+ // This field is always populated when `compliance_state` is `UNKNOWN`.
+ //
+ // The following values are supported when `compliance_state == UNKNOWN`
+ //
+ // * `execution-errors`: Errors were encountered by the agent while
+ // executing the resource and the compliance state couldn't be
+ // determined.
+ // * `execution-skipped-by-agent`: Resource execution was skipped by the
+ // agent because errors were encountered while executing prior resources
+ // in the OS policy.
+ // * `os-policy-execution-attempt-failed`: The execution of the OS policy
+ // containing this resource failed and the compliance state couldn't be
+ // determined.
+ string compliance_state_reason = 4;
+
+ // Resource specific output.
+ oneof output {
+ // ExecResource specific output.
+ ExecResourceOutput exec_resource_output = 5;
+ }
+ }
+
+ // The OS policy id
+ string os_policy_id = 1;
+
+ // The compliance state of the OS policy.
+ ComplianceState compliance_state = 2;
+
+ // The reason for the OS policy to be in an unknown compliance state.
+ // This field is always populated when `compliance_state` is `UNKNOWN`.
+ //
+ // If populated, the field can contain one of the following values:
+ //
+ // * `vm-not-running`: The VM was not running.
+ // * `os-policies-not-supported-by-agent`: The version of the OS Config
+ // agent running on the VM does not support running OS policies.
+ // * `no-agent-detected`: The OS Config agent is not detected for the VM.
+ // * `resource-execution-errors`: The OS Config agent encountered errors
+ // while executing one or more resources in the policy. See
+ // `os_policy_resource_compliances` for details.
+ // * `task-timeout`: The task sent to the agent to apply the policy timed
+ // out.
+ // * `unexpected-agent-state`: The OS Config agent did not report the final
+ // status of the task that attempted to apply the policy. Instead, the agent
+ // unexpectedly started working on a different task. This mostly happens
+ // when the agent or VM unexpectedly restarts while applying OS policies.
+ // * `internal-service-errors`: Internal service errors were encountered
+ // while attempting to apply the policy.
+ string compliance_state_reason = 3;
+
+ // Compliance data for each resource within the policy that is applied to
+ // the VM.
+ repeated OSPolicyResourceCompliance os_policy_resource_compliances = 4;
+ }
+
+ // The `OSPolicyAssignmentReport` API resource name.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`
+ string name = 1;
+
+ // The Compute Engine VM instance name.
+ string instance = 2;
+
+ // Reference to the `OSPolicyAssignment` API resource that the `OSPolicy`
+ // belongs to.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
+ string os_policy_assignment = 3 [(google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ }];
+
+ // Compliance data for each `OSPolicy` that is applied to the VM.
+ repeated OSPolicyCompliance os_policy_compliances = 4;
+
+ // Timestamp for when the report was last generated.
+ google.protobuf.Timestamp update_time = 5;
+
+ // Unique identifier of the last attempted run to apply the OS policies
+ // associated with this assignment on the VM.
+ //
+ // This ID is logged by the OS Config agent while applying the OS
+ // policies associated with this assignment on the VM.
+ // NOTE: If the service is unable to successfully connect to the agent for
+ // this run, then this id will not be available in the agent logs.
+ string last_run_id = 6;
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignments.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignments.proto
new file mode 100644
index 00000000000..30106569fb8
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignments.proto
@@ -0,0 +1,383 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1alpha;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/osconfig/v1alpha/os_policy.proto";
+import "google/cloud/osconfig/v1alpha/osconfig_common.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "OsPolicyAssignmentsProto";
+option java_package = "com.google.cloud.osconfig.v1alpha";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1alpha";
+option ruby_package = "Google::Cloud::OsConfig::V1alpha";
+
+// OS policy assignment is an API resource that is used to
+// apply a set of OS policies to a dynamically targeted group of Compute Engine
+// VM instances.
+//
+// An OS policy is used to define the desired state configuration for a
+// Compute Engine VM instance through a set of configuration resources that
+// provide capabilities such as installing or removing software packages, or
+// executing a script.
+//
+// For more information, see [OS policy and OS policy
+// assignment](https://cloud.google.com/compute/docs/os-configuration-management/working-with-os-policies).
+message OSPolicyAssignment {
+ option (google.api.resource) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ pattern: "projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}"
+ };
+
+ // Message representing label set.
+ // * A label is a key value pair set for a VM.
+ // * A LabelSet is a set of labels.
+ // * Labels within a LabelSet are ANDed. In other words, a LabelSet is
+ // applicable for a VM only if it matches all the labels in the
+ // LabelSet.
+ // * Example: A LabelSet with 2 labels: `env=prod` and `type=webserver` will
+ // only be applicable for those VMs with both labels
+ // present.
+ message LabelSet {
+ // Labels are identified by key/value pairs in this map.
+ // A VM should contain all the key/value pairs specified in this
+ // map to be selected.
+ map labels = 1;
+ }
+
+ // Filters to select target VMs for an assignment.
+ //
+ // If more than one filter criteria is specified below, a VM will be selected
+ // if and only if it satisfies all of them.
+ message InstanceFilter {
+ // VM inventory details.
+ message Inventory {
+ // Required. The OS short name
+ string os_short_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The OS version
+ //
+ // Prefix matches are supported if asterisk(*) is provided as the
+ // last character. For example, to match all versions with a major
+ // version of `7`, specify the following value for this field `7.*`
+ //
+ // An empty string matches all OS versions.
+ string os_version = 2;
+ }
+
+ // Target all VMs in the project. If true, no other criteria is
+ // permitted.
+ bool all = 1;
+
+ // Deprecated. Use the `inventories` field instead.
+ // A VM is selected if it's OS short name matches with any of the
+ // values provided in this list.
+ repeated string os_short_names = 2 [deprecated = true];
+
+ // List of label sets used for VM inclusion.
+ //
+ // If the list has more than one `LabelSet`, the VM is included if any
+ // of the label sets are applicable for the VM.
+ repeated LabelSet inclusion_labels = 3;
+
+ // List of label sets used for VM exclusion.
+ //
+ // If the list has more than one label set, the VM is excluded if any
+ // of the label sets are applicable for the VM.
+ repeated LabelSet exclusion_labels = 4;
+
+ // List of inventories to select VMs.
+ //
+ // A VM is selected if its inventory data matches at least one of the
+ // following inventories.
+ repeated Inventory inventories = 5;
+ }
+
+ // Message to configure the rollout at the zonal level for the OS policy
+ // assignment.
+ message Rollout {
+ // Required. The maximum number (or percentage) of VMs per zone to disrupt at
+ // any given moment.
+ FixedOrPercent disruption_budget = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. This determines the minimum duration of time to wait after the
+ // configuration changes are applied through the current rollout. A
+ // VM continues to count towards the `disruption_budget` at least
+ // until this duration of time has passed after configuration changes are
+ // applied.
+ google.protobuf.Duration min_wait_duration = 2 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // OS policy assignment rollout state
+ enum RolloutState {
+ // Invalid value
+ ROLLOUT_STATE_UNSPECIFIED = 0;
+
+ // The rollout is in progress.
+ IN_PROGRESS = 1;
+
+ // The rollout is being cancelled.
+ CANCELLING = 2;
+
+ // The rollout is cancelled.
+ CANCELLED = 3;
+
+ // The rollout has completed successfully.
+ SUCCEEDED = 4;
+ }
+
+ // Resource name.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}`
+ //
+ // This field is ignored when you create an OS policy assignment.
+ string name = 1;
+
+ // OS policy assignment description.
+ // Length of the description is limited to 1024 characters.
+ string description = 2;
+
+ // Required. List of OS policies to be applied to the VMs.
+ repeated OSPolicy os_policies = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Filter to select VMs.
+ InstanceFilter instance_filter = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Rollout to deploy the OS policy assignment.
+ // A rollout is triggered in the following situations:
+ // 1) OSPolicyAssignment is created.
+ // 2) OSPolicyAssignment is updated and the update contains changes to one of
+ // the following fields:
+ // - instance_filter
+ // - os_policies
+ // 3) OSPolicyAssignment is deleted.
+ Rollout rollout = 5 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. The assignment revision ID
+ // A new revision is committed whenever a rollout is triggered for a OS policy
+ // assignment
+ string revision_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The timestamp that the revision was created.
+ google.protobuf.Timestamp revision_create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The etag for this OS policy assignment.
+ // If this is provided on update, it must match the server's etag.
+ string etag = 8;
+
+ // Output only. OS policy assignment rollout state
+ RolloutState rollout_state = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Indicates that this revision has been successfully rolled out in this zone
+ // and new VMs will be assigned OS policies from this revision.
+ //
+ // For a given OS policy assignment, there is only one revision with a value
+ // of `true` for this field.
+ bool baseline = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Indicates that this revision deletes the OS policy assignment.
+ bool deleted = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Indicates that reconciliation is in progress for the revision.
+ // This value is `true` when the `rollout_state` is one of:
+ // * IN_PROGRESS
+ // * CANCELLING
+ bool reconciling = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Server generated unique id for the OS policy assignment resource.
+ string uid = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// OS policy assignment operation metadata provided by OS policy assignment API
+// methods that return long running operations.
+message OSPolicyAssignmentOperationMetadata {
+ // The OS policy assignment API method.
+ enum APIMethod {
+ // Invalid value
+ API_METHOD_UNSPECIFIED = 0;
+
+ // Create OS policy assignment API method
+ CREATE = 1;
+
+ // Update OS policy assignment API method
+ UPDATE = 2;
+
+ // Delete OS policy assignment API method
+ DELETE = 3;
+ }
+
+ // State of the rollout
+ enum RolloutState {
+ // Invalid value
+ ROLLOUT_STATE_UNSPECIFIED = 0;
+
+ // The rollout is in progress.
+ IN_PROGRESS = 1;
+
+ // The rollout is being cancelled.
+ CANCELLING = 2;
+
+ // The rollout is cancelled.
+ CANCELLED = 3;
+
+ // The rollout has completed successfully.
+ SUCCEEDED = 4;
+ }
+
+ // Reference to the `OSPolicyAssignment` API resource.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
+ string os_policy_assignment = 1 [(google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ }];
+
+ // The OS policy assignment API method.
+ APIMethod api_method = 2;
+
+ // State of the rollout
+ RolloutState rollout_state = 3;
+
+ // Rollout start time
+ google.protobuf.Timestamp rollout_start_time = 4;
+
+ // Rollout update time
+ google.protobuf.Timestamp rollout_update_time = 5;
+}
+
+// A request message to create an OS policy assignment
+message CreateOSPolicyAssignmentRequest {
+ // Required. The parent resource name in the form:
+ // projects/{project}/locations/{location}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The OS policy assignment to be created.
+ OSPolicyAssignment os_policy_assignment = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The logical name of the OS policy assignment in the project
+ // with the following restrictions:
+ //
+ // * Must contain only lowercase letters, numbers, and hyphens.
+ // * Must start with a letter.
+ // * Must be between 1-63 characters.
+ // * Must end with a number or a letter.
+ // * Must be unique within the project.
+ string os_policy_assignment_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// A request message to update an OS policy assignment
+message UpdateOSPolicyAssignmentRequest {
+ // Required. The updated OS policy assignment.
+ OSPolicyAssignment os_policy_assignment = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Field mask that controls which fields of the assignment should be updated.
+ google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A request message to get an OS policy assignment
+message GetOSPolicyAssignmentRequest {
+ // Required. The resource name of OS policy assignment.
+ //
+ // Format:
+ // `projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ }
+ ];
+}
+
+// A request message to list OS policy assignments for a parent resource
+message ListOSPolicyAssignmentsRequest {
+ // Required. The parent resource name.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of assignments to return.
+ int32 page_size = 2;
+
+ // A pagination token returned from a previous call to
+ // `ListOSPolicyAssignments` that indicates where this listing should continue
+ // from.
+ string page_token = 3;
+}
+
+// A response message for listing all assignments under given parent.
+message ListOSPolicyAssignmentsResponse {
+ // The list of assignments
+ repeated OSPolicyAssignment os_policy_assignments = 1;
+
+ // The pagination token to retrieve the next page of OS policy assignments.
+ string next_page_token = 2;
+}
+
+// A request message to list revisions for a OS policy assignment
+message ListOSPolicyAssignmentRevisionsRequest {
+ // Required. The name of the OS policy assignment to list revisions for.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ }
+ ];
+
+ // The maximum number of revisions to return.
+ int32 page_size = 2;
+
+ // A pagination token returned from a previous call to
+ // `ListOSPolicyAssignmentRevisions` that indicates where this listing should
+ // continue from.
+ string page_token = 3;
+}
+
+// A response message for listing all revisions for a OS policy assignment.
+message ListOSPolicyAssignmentRevisionsResponse {
+ // The OS policy assignment revisions
+ repeated OSPolicyAssignment os_policy_assignments = 1;
+
+ // The pagination token to retrieve the next page of OS policy assignment
+ // revisions.
+ string next_page_token = 2;
+}
+
+// A request message for deleting a OS policy assignment.
+message DeleteOSPolicyAssignmentRequest {
+ // Required. The name of the OS policy assignment to be deleted
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/OSPolicyAssignment"
+ }
+ ];
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_common.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_common.proto
new file mode 100644
index 00000000000..1d2b58ac6cd
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_common.proto
@@ -0,0 +1,40 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1alpha;
+
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "Common";
+option java_package = "com.google.cloud.osconfig.v1alpha";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1alpha";
+option ruby_package = "Google::Cloud::OsConfig::V1alpha";
+
+// Message encapsulating a value that can be either absolute ("fixed") or
+// relative ("percent") to a value.
+message FixedOrPercent {
+ // Type of the value.
+ oneof mode {
+ // Specifies a fixed value.
+ int32 fixed = 1;
+
+ // Specifies the relative value defined as a percentage, which will be
+ // multiplied by a reference value.
+ int32 percent = 2;
+ }
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_zonal_service.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_zonal_service.proto
new file mode 100644
index 00000000000..bb73fbd0331
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_zonal_service.proto
@@ -0,0 +1,215 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1alpha;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/resource.proto";
+import "google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto";
+import "google/cloud/osconfig/v1alpha/inventory.proto";
+import "google/cloud/osconfig/v1alpha/os_policy_assignment_reports.proto";
+import "google/cloud/osconfig/v1alpha/os_policy_assignments.proto";
+import "google/cloud/osconfig/v1alpha/vulnerability.proto";
+import "google/longrunning/operations.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "OsConfigZonalServiceProto";
+option java_package = "com.google.cloud.osconfig.v1alpha";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1alpha";
+option ruby_package = "Google::Cloud::OsConfig::V1alpha";
+option (google.api.resource_definition) = {
+ type: "compute.googleapis.com/Instance"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}"
+};
+
+// Zonal OS Config API
+//
+// The OS Config service is the server-side component that allows users to
+// manage package installations and patch jobs for Compute Engine VM instances.
+service OsConfigZonalService {
+ option (google.api.default_host) = "osconfig.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Create an OS policy assignment.
+ //
+ // This method also creates the first revision of the OS policy assignment.
+ //
+ // This method returns a long running operation (LRO) that contains the
+ // rollout details. The rollout can be cancelled by cancelling the LRO.
+ //
+ // For more information, see [Method:
+ // projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).
+ rpc CreateOSPolicyAssignment(CreateOSPolicyAssignmentRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1alpha/{parent=projects/*/locations/*}/osPolicyAssignments"
+ body: "os_policy_assignment"
+ };
+ option (google.api.method_signature) = "parent,os_policy_assignment,os_policy_assignment_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "OSPolicyAssignment"
+ metadata_type: "OSPolicyAssignmentOperationMetadata"
+ };
+ }
+
+ // Update an existing OS policy assignment.
+ //
+ // This method creates a new revision of the OS policy assignment.
+ //
+ // This method returns a long running operation (LRO) that contains the
+ // rollout details. The rollout can be cancelled by cancelling the LRO.
+ //
+ // For more information, see [Method:
+ // projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).
+ rpc UpdateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1alpha/{os_policy_assignment.name=projects/*/locations/*/osPolicyAssignments/*}"
+ body: "os_policy_assignment"
+ };
+ option (google.api.method_signature) = "os_policy_assignment,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "OSPolicyAssignment"
+ metadata_type: "OSPolicyAssignmentOperationMetadata"
+ };
+ }
+
+ // Retrieve an existing OS policy assignment.
+ //
+ // This method always returns the latest revision. In order to retrieve a
+ // previous revision of the assignment, also provide the revision ID in the
+ // `name` parameter.
+ rpc GetOSPolicyAssignment(GetOSPolicyAssignmentRequest) returns (OSPolicyAssignment) {
+ option (google.api.http) = {
+ get: "/v1alpha/{name=projects/*/locations/*/osPolicyAssignments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List the OS policy assignments under the parent resource.
+ //
+ // For each OS policy assignment, the latest revision is returned.
+ rpc ListOSPolicyAssignments(ListOSPolicyAssignmentsRequest) returns (ListOSPolicyAssignmentsResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/locations/*}/osPolicyAssignments"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // List the OS policy assignment revisions for a given OS policy assignment.
+ rpc ListOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest) returns (ListOSPolicyAssignmentRevisionsResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{name=projects/*/locations/*/osPolicyAssignments/*}:listRevisions"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Delete the OS policy assignment.
+ //
+ // This method creates a new revision of the OS policy assignment.
+ //
+ // This method returns a long running operation (LRO) that contains the
+ // rollout details. The rollout can be cancelled by cancelling the LRO.
+ //
+ // If the LRO completes and is not cancelled, all revisions associated with
+ // the OS policy assignment are deleted.
+ //
+ // For more information, see [Method:
+ // projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).
+ rpc DeleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1alpha/{name=projects/*/locations/*/osPolicyAssignments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OSPolicyAssignmentOperationMetadata"
+ };
+ }
+
+ // Get OS policies compliance data for the specified Compute Engine VM
+ // instance.
+ rpc GetInstanceOSPoliciesCompliance(GetInstanceOSPoliciesComplianceRequest) returns (InstanceOSPoliciesCompliance) {
+ option deprecated = true;
+ option (google.api.http) = {
+ get: "/v1alpha/{name=projects/*/locations/*/instanceOSPoliciesCompliances/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List OS policies compliance data for all Compute Engine VM instances in the
+ // specified zone.
+ rpc ListInstanceOSPoliciesCompliances(ListInstanceOSPoliciesCompliancesRequest) returns (ListInstanceOSPoliciesCompliancesResponse) {
+ option deprecated = true;
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/locations/*}/instanceOSPoliciesCompliances"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Get the OS policy asssignment report for the specified Compute Engine VM
+ // instance.
+ rpc GetOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest) returns (OSPolicyAssignmentReport) {
+ option (google.api.http) = {
+ get: "/v1alpha/{name=projects/*/locations/*/instances/*/osPolicyAssignments/*/report}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List OS policy asssignment reports for all Compute Engine VM instances in
+ // the specified zone.
+ rpc ListOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest) returns (ListOSPolicyAssignmentReportsResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/locations/*/instances/*/osPolicyAssignments/*}/reports"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Get inventory data for the specified VM instance. If the VM has no
+ // associated inventory, the message `NOT_FOUND` is returned.
+ rpc GetInventory(GetInventoryRequest) returns (Inventory) {
+ option (google.api.http) = {
+ get: "/v1alpha/{name=projects/*/locations/*/instances/*/inventory}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List inventory data for all VM instances in the specified zone.
+ rpc ListInventories(ListInventoriesRequest) returns (ListInventoriesResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/locations/*/instances/*}/inventories"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the vulnerability report for the specified VM instance. Only VMs with
+ // inventory data have vulnerability reports associated with them.
+ rpc GetVulnerabilityReport(GetVulnerabilityReportRequest) returns (VulnerabilityReport) {
+ option (google.api.http) = {
+ get: "/v1alpha/{name=projects/*/locations/*/instances/*/vulnerabilityReport}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List vulnerability reports for all VM instances in the specified zone.
+ rpc ListVulnerabilityReports(ListVulnerabilityReportsRequest) returns (ListVulnerabilityReportsResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/locations/*/instances/*}/vulnerabilityReports"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/vulnerability.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/vulnerability.proto
new file mode 100644
index 00000000000..54080ba759d
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/vulnerability.proto
@@ -0,0 +1,365 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1alpha;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "VulnerabilityProto";
+option java_package = "com.google.cloud.osconfig.v1alpha";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1alpha";
+option ruby_package = "Google::Cloud::OsConfig::V1alpha";
+
+// This API resource represents the vulnerability report for a specified
+// Compute Engine virtual machine (VM) instance at a given point in time.
+//
+// For more information, see [Vulnerability
+// reports](https://cloud.google.com/compute/docs/instances/os-inventory-management#vulnerability-reports).
+message VulnerabilityReport {
+ option (google.api.resource) = {
+ type: "osconfig.googleapis.com/VulnerabilityReport"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport"
+ };
+
+ // A vulnerability affecting the VM instance.
+ message Vulnerability {
+ // Contains metadata information for the vulnerability. This information is
+ // collected from the upstream feed of the operating system.
+ message Details {
+ // A reference for this vulnerability.
+ message Reference {
+ // The url of the reference.
+ string url = 1;
+
+ // The source of the reference e.g. NVD.
+ string source = 2;
+ }
+
+ // The CVE of the vulnerability. CVE cannot be
+ // empty and the combination of should be unique
+ // across vulnerabilities for a VM.
+ string cve = 1;
+
+ // The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of
+ // 0 - 10 where 0 indicates low severity and 10 indicates high severity.
+ float cvss_v2_score = 2;
+
+ // The full description of the CVSSv3 for this vulnerability from NVD.
+ CVSSv3 cvss_v3 = 3;
+
+ // Assigned severity/impact ranking from the distro.
+ string severity = 4;
+
+ // The note or description describing the vulnerability from the distro.
+ string description = 5;
+
+ // Corresponds to the references attached to the `VulnerabilityDetails`.
+ repeated Reference references = 6;
+ }
+
+ // OS inventory item that is affected by a vulnerability or fixed as a
+ // result of a vulnerability.
+ message Item {
+ // Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ // This field displays the inventory items affected by this vulnerability.
+ // If the vulnerability report was not updated after the VM inventory
+ // update, these values might not display in VM inventory. For some
+ // operating systems, this field might be empty.
+ string installed_inventory_item_id = 1;
+
+ // Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ // If the vulnerability report was not updated after the VM inventory
+ // update, these values might not display in VM inventory. If there is no
+ // available fix, the field is empty. The `inventory_item` value specifies
+ // the latest `SoftwarePackage` available to the VM that fixes the
+ // vulnerability.
+ string available_inventory_item_id = 2;
+
+ // The recommended [CPE URI](https://cpe.mitre.org/specification/) update
+ // that contains a fix for this vulnerability.
+ string fixed_cpe_uri = 3;
+
+ // The upstream OS patch, packages or KB that fixes the vulnerability.
+ string upstream_fix = 4;
+ }
+
+ // Contains metadata as per the upstream feed of the operating system and
+ // NVD.
+ Details details = 1;
+
+ // Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ // This field displays the inventory items affected by this vulnerability.
+ // If the vulnerability report was not updated after the VM inventory
+ // update, these values might not display in VM inventory. For some distros,
+ // this field may be empty.
+ repeated string installed_inventory_item_ids = 2 [deprecated = true];
+
+ // Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ // If the vulnerability report was not updated after the VM inventory
+ // update, these values might not display in VM inventory. If there is no
+ // available fix, the field is empty. The `inventory_item` value specifies
+ // the latest `SoftwarePackage` available to the VM that fixes the
+ // vulnerability.
+ repeated string available_inventory_item_ids = 3 [deprecated = true];
+
+ // The timestamp for when the vulnerability was first detected.
+ google.protobuf.Timestamp create_time = 4;
+
+ // The timestamp for when the vulnerability was last modified.
+ google.protobuf.Timestamp update_time = 5;
+
+ // List of items affected by the vulnerability.
+ repeated Item items = 6;
+ }
+
+ // Output only. The `vulnerabilityReport` API resource name.
+ //
+ // Format:
+ // `projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. List of vulnerabilities affecting the VM.
+ repeated Vulnerability vulnerabilities = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The timestamp for when the last vulnerability report was generated for the
+ // VM.
+ google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// A request message for getting the vulnerability report for the specified VM.
+message GetVulnerabilityReportRequest {
+ // Required. API resource name for vulnerability resource.
+ //
+ // Format:
+ // `projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport`
+ //
+ // For `{project}`, either `project-number` or `project-id` can be provided.
+ // For `{instance}`, either Compute Engine `instance-id` or `instance-name`
+ // can be provided.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "osconfig.googleapis.com/VulnerabilityReport"
+ }
+ ];
+}
+
+// A request message for listing vulnerability reports for all VM instances in
+// the specified location.
+message ListVulnerabilityReportsRequest {
+ // Required. The parent resource name.
+ //
+ // Format: `projects/{project}/locations/{location}/instances/-`
+ //
+ // For `{project}`, either `project-number` or `project-id` can be provided.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "compute.googleapis.com/Instance"
+ }
+ ];
+
+ // The maximum number of results to return.
+ int32 page_size = 2;
+
+ // A pagination token returned from a previous call to
+ // `ListVulnerabilityReports` that indicates where this listing
+ // should continue from.
+ string page_token = 3;
+
+ // If provided, this field specifies the criteria that must be met by a
+ // `vulnerabilityReport` API resource to be included in the response.
+ string filter = 4;
+}
+
+// A response message for listing vulnerability reports for all VM instances in
+// the specified location.
+message ListVulnerabilityReportsResponse {
+ // List of vulnerabilityReport objects.
+ repeated VulnerabilityReport vulnerability_reports = 1;
+
+ // The pagination token to retrieve the next page of vulnerabilityReports
+ // object.
+ string next_page_token = 2;
+}
+
+// Common Vulnerability Scoring System version 3.
+// For details, see https://www.first.org/cvss/specification-document
+message CVSSv3 {
+ // This metric reflects the context by which vulnerability exploitation is
+ // possible.
+ enum AttackVector {
+ // Invalid value.
+ ATTACK_VECTOR_UNSPECIFIED = 0;
+
+ // The vulnerable component is bound to the network stack and the set of
+ // possible attackers extends beyond the other options listed below, up to
+ // and including the entire Internet.
+ ATTACK_VECTOR_NETWORK = 1;
+
+ // The vulnerable component is bound to the network stack, but the attack is
+ // limited at the protocol level to a logically adjacent topology.
+ ATTACK_VECTOR_ADJACENT = 2;
+
+ // The vulnerable component is not bound to the network stack and the
+ // attacker's path is via read/write/execute capabilities.
+ ATTACK_VECTOR_LOCAL = 3;
+
+ // The attack requires the attacker to physically touch or manipulate the
+ // vulnerable component.
+ ATTACK_VECTOR_PHYSICAL = 4;
+ }
+
+ // This metric describes the conditions beyond the attacker's control that
+ // must exist in order to exploit the vulnerability.
+ enum AttackComplexity {
+ // Invalid value.
+ ATTACK_COMPLEXITY_UNSPECIFIED = 0;
+
+ // Specialized access conditions or extenuating circumstances do not exist.
+ // An attacker can expect repeatable success when attacking the vulnerable
+ // component.
+ ATTACK_COMPLEXITY_LOW = 1;
+
+ // A successful attack depends on conditions beyond the attacker's control.
+ // That is, a successful attack cannot be accomplished at will, but requires
+ // the attacker to invest in some measurable amount of effort in preparation
+ // or execution against the vulnerable component before a successful attack
+ // can be expected.
+ ATTACK_COMPLEXITY_HIGH = 2;
+ }
+
+ // This metric describes the level of privileges an attacker must possess
+ // before successfully exploiting the vulnerability.
+ enum PrivilegesRequired {
+ // Invalid value.
+ PRIVILEGES_REQUIRED_UNSPECIFIED = 0;
+
+ // The attacker is unauthorized prior to attack, and therefore does not
+ // require any access to settings or files of the vulnerable system to
+ // carry out an attack.
+ PRIVILEGES_REQUIRED_NONE = 1;
+
+ // The attacker requires privileges that provide basic user capabilities
+ // that could normally affect only settings and files owned by a user.
+ // Alternatively, an attacker with Low privileges has the ability to access
+ // only non-sensitive resources.
+ PRIVILEGES_REQUIRED_LOW = 2;
+
+ // The attacker requires privileges that provide significant (e.g.,
+ // administrative) control over the vulnerable component allowing access to
+ // component-wide settings and files.
+ PRIVILEGES_REQUIRED_HIGH = 3;
+ }
+
+ // This metric captures the requirement for a human user, other than the
+ // attacker, to participate in the successful compromise of the vulnerable
+ // component.
+ enum UserInteraction {
+ // Invalid value.
+ USER_INTERACTION_UNSPECIFIED = 0;
+
+ // The vulnerable system can be exploited without interaction from any user.
+ USER_INTERACTION_NONE = 1;
+
+ // Successful exploitation of this vulnerability requires a user to take
+ // some action before the vulnerability can be exploited.
+ USER_INTERACTION_REQUIRED = 2;
+ }
+
+ // The Scope metric captures whether a vulnerability in one vulnerable
+ // component impacts resources in components beyond its security scope.
+ enum Scope {
+ // Invalid value.
+ SCOPE_UNSPECIFIED = 0;
+
+ // An exploited vulnerability can only affect resources managed by the same
+ // security authority.
+ SCOPE_UNCHANGED = 1;
+
+ // An exploited vulnerability can affect resources beyond the security scope
+ // managed by the security authority of the vulnerable component.
+ SCOPE_CHANGED = 2;
+ }
+
+ // The Impact metrics capture the effects of a successfully exploited
+ // vulnerability on the component that suffers the worst outcome that is most
+ // directly and predictably associated with the attack.
+ enum Impact {
+ // Invalid value.
+ IMPACT_UNSPECIFIED = 0;
+
+ // High impact.
+ IMPACT_HIGH = 1;
+
+ // Low impact.
+ IMPACT_LOW = 2;
+
+ // No impact.
+ IMPACT_NONE = 3;
+ }
+
+ // The base score is a function of the base metric scores.
+ // https://www.first.org/cvss/specification-document#Base-Metrics
+ float base_score = 1;
+
+ // The Exploitability sub-score equation is derived from the Base
+ // Exploitability metrics.
+ // https://www.first.org/cvss/specification-document#2-1-Exploitability-Metrics
+ float exploitability_score = 2;
+
+ // The Impact sub-score equation is derived from the Base Impact metrics.
+ float impact_score = 3;
+
+ // This metric reflects the context by which vulnerability exploitation is
+ // possible.
+ AttackVector attack_vector = 5;
+
+ // This metric describes the conditions beyond the attacker's control that
+ // must exist in order to exploit the vulnerability.
+ AttackComplexity attack_complexity = 6;
+
+ // This metric describes the level of privileges an attacker must possess
+ // before successfully exploiting the vulnerability.
+ PrivilegesRequired privileges_required = 7;
+
+ // This metric captures the requirement for a human user, other than the
+ // attacker, to participate in the successful compromise of the vulnerable
+ // component.
+ UserInteraction user_interaction = 8;
+
+ // The Scope metric captures whether a vulnerability in one vulnerable
+ // component impacts resources in components beyond its security scope.
+ Scope scope = 9;
+
+ // This metric measures the impact to the confidentiality of the information
+ // resources managed by a software component due to a successfully exploited
+ // vulnerability.
+ Impact confidentiality_impact = 10;
+
+ // This metric measures the impact to integrity of a successfully exploited
+ // vulnerability.
+ Impact integrity_impact = 11;
+
+ // This metric measures the impact to the availability of the impacted
+ // component resulting from a successfully exploited vulnerability.
+ Impact availability_impact = 12;
+}
diff --git a/packages/google-cloud-osconfig/protos/protos.d.ts b/packages/google-cloud-osconfig/protos/protos.d.ts
new file mode 100644
index 00000000000..bad4c5cc71d
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/protos.d.ts
@@ -0,0 +1,28173 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace osconfig. */
+ namespace osconfig {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of an Inventory. */
+ interface IInventory {
+
+ /** Inventory name */
+ name?: (string|null);
+
+ /** Inventory osInfo */
+ osInfo?: (google.cloud.osconfig.v1.Inventory.IOsInfo|null);
+
+ /** Inventory items */
+ items?: ({ [k: string]: google.cloud.osconfig.v1.Inventory.IItem }|null);
+
+ /** Inventory updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an Inventory. */
+ class Inventory implements IInventory {
+
+ /**
+ * Constructs a new Inventory.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IInventory);
+
+ /** Inventory name. */
+ public name: string;
+
+ /** Inventory osInfo. */
+ public osInfo?: (google.cloud.osconfig.v1.Inventory.IOsInfo|null);
+
+ /** Inventory items. */
+ public items: { [k: string]: google.cloud.osconfig.v1.Inventory.IItem };
+
+ /** Inventory updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new Inventory instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Inventory instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IInventory): google.cloud.osconfig.v1.Inventory;
+
+ /**
+ * Encodes the specified Inventory message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.verify|verify} messages.
+ * @param message Inventory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IInventory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Inventory message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.verify|verify} messages.
+ * @param message Inventory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IInventory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Inventory message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Inventory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.Inventory;
+
+ /**
+ * Decodes an Inventory message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Inventory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.Inventory;
+
+ /**
+ * Verifies an Inventory message.
+ * @param message Plain 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 Inventory message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Inventory
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.Inventory;
+
+ /**
+ * Creates a plain object from an Inventory message. Also converts values to other types if specified.
+ * @param message Inventory
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.Inventory, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Inventory to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Inventory
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Inventory {
+
+ /** Properties of an OsInfo. */
+ interface IOsInfo {
+
+ /** OsInfo hostname */
+ hostname?: (string|null);
+
+ /** OsInfo longName */
+ longName?: (string|null);
+
+ /** OsInfo shortName */
+ shortName?: (string|null);
+
+ /** OsInfo version */
+ version?: (string|null);
+
+ /** OsInfo architecture */
+ architecture?: (string|null);
+
+ /** OsInfo kernelVersion */
+ kernelVersion?: (string|null);
+
+ /** OsInfo kernelRelease */
+ kernelRelease?: (string|null);
+
+ /** OsInfo osconfigAgentVersion */
+ osconfigAgentVersion?: (string|null);
+ }
+
+ /** Represents an OsInfo. */
+ class OsInfo implements IOsInfo {
+
+ /**
+ * Constructs a new OsInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.Inventory.IOsInfo);
+
+ /** OsInfo hostname. */
+ public hostname: string;
+
+ /** OsInfo longName. */
+ public longName: string;
+
+ /** OsInfo shortName. */
+ public shortName: string;
+
+ /** OsInfo version. */
+ public version: string;
+
+ /** OsInfo architecture. */
+ public architecture: string;
+
+ /** OsInfo kernelVersion. */
+ public kernelVersion: string;
+
+ /** OsInfo kernelRelease. */
+ public kernelRelease: string;
+
+ /** OsInfo osconfigAgentVersion. */
+ public osconfigAgentVersion: string;
+
+ /**
+ * Creates a new OsInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OsInfo instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.Inventory.IOsInfo): google.cloud.osconfig.v1.Inventory.OsInfo;
+
+ /**
+ * Encodes the specified OsInfo message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.OsInfo.verify|verify} messages.
+ * @param message OsInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.Inventory.IOsInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OsInfo message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.OsInfo.verify|verify} messages.
+ * @param message OsInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.Inventory.IOsInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OsInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OsInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.Inventory.OsInfo;
+
+ /**
+ * Decodes an OsInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OsInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.Inventory.OsInfo;
+
+ /**
+ * Verifies an OsInfo message.
+ * @param message Plain 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 OsInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OsInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.Inventory.OsInfo;
+
+ /**
+ * Creates a plain object from an OsInfo message. Also converts values to other types if specified.
+ * @param message OsInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.Inventory.OsInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OsInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OsInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Item. */
+ interface IItem {
+
+ /** Item id */
+ id?: (string|null);
+
+ /** Item originType */
+ originType?: (google.cloud.osconfig.v1.Inventory.Item.OriginType|keyof typeof google.cloud.osconfig.v1.Inventory.Item.OriginType|null);
+
+ /** Item createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Item updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Item type */
+ type?: (google.cloud.osconfig.v1.Inventory.Item.Type|keyof typeof google.cloud.osconfig.v1.Inventory.Item.Type|null);
+
+ /** Item installedPackage */
+ installedPackage?: (google.cloud.osconfig.v1.Inventory.ISoftwarePackage|null);
+
+ /** Item availablePackage */
+ availablePackage?: (google.cloud.osconfig.v1.Inventory.ISoftwarePackage|null);
+ }
+
+ /** Represents an Item. */
+ class Item implements IItem {
+
+ /**
+ * Constructs a new Item.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.Inventory.IItem);
+
+ /** Item id. */
+ public id: string;
+
+ /** Item originType. */
+ public originType: (google.cloud.osconfig.v1.Inventory.Item.OriginType|keyof typeof google.cloud.osconfig.v1.Inventory.Item.OriginType);
+
+ /** Item createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Item updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Item type. */
+ public type: (google.cloud.osconfig.v1.Inventory.Item.Type|keyof typeof google.cloud.osconfig.v1.Inventory.Item.Type);
+
+ /** Item installedPackage. */
+ public installedPackage?: (google.cloud.osconfig.v1.Inventory.ISoftwarePackage|null);
+
+ /** Item availablePackage. */
+ public availablePackage?: (google.cloud.osconfig.v1.Inventory.ISoftwarePackage|null);
+
+ /** Item details. */
+ public details?: ("installedPackage"|"availablePackage");
+
+ /**
+ * Creates a new Item instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Item instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.Inventory.IItem): google.cloud.osconfig.v1.Inventory.Item;
+
+ /**
+ * Encodes the specified Item message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.Item.verify|verify} messages.
+ * @param message Item message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.Inventory.IItem, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Item message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.Item.verify|verify} messages.
+ * @param message Item message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.Inventory.IItem, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Item message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Item
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.Inventory.Item;
+
+ /**
+ * Decodes an Item message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Item
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.Inventory.Item;
+
+ /**
+ * Verifies an Item message.
+ * @param message Plain 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 Item message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Item
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.Inventory.Item;
+
+ /**
+ * Creates a plain object from an Item message. Also converts values to other types if specified.
+ * @param message Item
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.Inventory.Item, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Item to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Item
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Item {
+
+ /** OriginType enum. */
+ enum OriginType {
+ ORIGIN_TYPE_UNSPECIFIED = 0,
+ INVENTORY_REPORT = 1
+ }
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ INSTALLED_PACKAGE = 1,
+ AVAILABLE_PACKAGE = 2
+ }
+ }
+
+ /** Properties of a SoftwarePackage. */
+ interface ISoftwarePackage {
+
+ /** SoftwarePackage yumPackage */
+ yumPackage?: (google.cloud.osconfig.v1.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage aptPackage */
+ aptPackage?: (google.cloud.osconfig.v1.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage zypperPackage */
+ zypperPackage?: (google.cloud.osconfig.v1.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage googetPackage */
+ googetPackage?: (google.cloud.osconfig.v1.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage zypperPatch */
+ zypperPatch?: (google.cloud.osconfig.v1.Inventory.IZypperPatch|null);
+
+ /** SoftwarePackage wuaPackage */
+ wuaPackage?: (google.cloud.osconfig.v1.Inventory.IWindowsUpdatePackage|null);
+
+ /** SoftwarePackage qfePackage */
+ qfePackage?: (google.cloud.osconfig.v1.Inventory.IWindowsQuickFixEngineeringPackage|null);
+
+ /** SoftwarePackage cosPackage */
+ cosPackage?: (google.cloud.osconfig.v1.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage windowsApplication */
+ windowsApplication?: (google.cloud.osconfig.v1.Inventory.IWindowsApplication|null);
+ }
+
+ /** Represents a SoftwarePackage. */
+ class SoftwarePackage implements ISoftwarePackage {
+
+ /**
+ * Constructs a new SoftwarePackage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.Inventory.ISoftwarePackage);
+
+ /** SoftwarePackage yumPackage. */
+ public yumPackage?: (google.cloud.osconfig.v1.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage aptPackage. */
+ public aptPackage?: (google.cloud.osconfig.v1.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage zypperPackage. */
+ public zypperPackage?: (google.cloud.osconfig.v1.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage googetPackage. */
+ public googetPackage?: (google.cloud.osconfig.v1.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage zypperPatch. */
+ public zypperPatch?: (google.cloud.osconfig.v1.Inventory.IZypperPatch|null);
+
+ /** SoftwarePackage wuaPackage. */
+ public wuaPackage?: (google.cloud.osconfig.v1.Inventory.IWindowsUpdatePackage|null);
+
+ /** SoftwarePackage qfePackage. */
+ public qfePackage?: (google.cloud.osconfig.v1.Inventory.IWindowsQuickFixEngineeringPackage|null);
+
+ /** SoftwarePackage cosPackage. */
+ public cosPackage?: (google.cloud.osconfig.v1.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage windowsApplication. */
+ public windowsApplication?: (google.cloud.osconfig.v1.Inventory.IWindowsApplication|null);
+
+ /** SoftwarePackage details. */
+ public details?: ("yumPackage"|"aptPackage"|"zypperPackage"|"googetPackage"|"zypperPatch"|"wuaPackage"|"qfePackage"|"cosPackage"|"windowsApplication");
+
+ /**
+ * Creates a new SoftwarePackage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SoftwarePackage instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.Inventory.ISoftwarePackage): google.cloud.osconfig.v1.Inventory.SoftwarePackage;
+
+ /**
+ * Encodes the specified SoftwarePackage message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.SoftwarePackage.verify|verify} messages.
+ * @param message SoftwarePackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.Inventory.ISoftwarePackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SoftwarePackage message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.SoftwarePackage.verify|verify} messages.
+ * @param message SoftwarePackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.Inventory.ISoftwarePackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SoftwarePackage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SoftwarePackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.Inventory.SoftwarePackage;
+
+ /**
+ * Decodes a SoftwarePackage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SoftwarePackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.Inventory.SoftwarePackage;
+
+ /**
+ * Verifies a SoftwarePackage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SoftwarePackage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SoftwarePackage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.Inventory.SoftwarePackage;
+
+ /**
+ * Creates a plain object from a SoftwarePackage message. Also converts values to other types if specified.
+ * @param message SoftwarePackage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.Inventory.SoftwarePackage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SoftwarePackage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SoftwarePackage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VersionedPackage. */
+ interface IVersionedPackage {
+
+ /** VersionedPackage packageName */
+ packageName?: (string|null);
+
+ /** VersionedPackage architecture */
+ architecture?: (string|null);
+
+ /** VersionedPackage version */
+ version?: (string|null);
+ }
+
+ /** Represents a VersionedPackage. */
+ class VersionedPackage implements IVersionedPackage {
+
+ /**
+ * Constructs a new VersionedPackage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.Inventory.IVersionedPackage);
+
+ /** VersionedPackage packageName. */
+ public packageName: string;
+
+ /** VersionedPackage architecture. */
+ public architecture: string;
+
+ /** VersionedPackage version. */
+ public version: string;
+
+ /**
+ * Creates a new VersionedPackage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VersionedPackage instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.Inventory.IVersionedPackage): google.cloud.osconfig.v1.Inventory.VersionedPackage;
+
+ /**
+ * Encodes the specified VersionedPackage message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.VersionedPackage.verify|verify} messages.
+ * @param message VersionedPackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.Inventory.IVersionedPackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VersionedPackage message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.VersionedPackage.verify|verify} messages.
+ * @param message VersionedPackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.Inventory.IVersionedPackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VersionedPackage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VersionedPackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.Inventory.VersionedPackage;
+
+ /**
+ * Decodes a VersionedPackage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VersionedPackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.Inventory.VersionedPackage;
+
+ /**
+ * Verifies a VersionedPackage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VersionedPackage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VersionedPackage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.Inventory.VersionedPackage;
+
+ /**
+ * Creates a plain object from a VersionedPackage message. Also converts values to other types if specified.
+ * @param message VersionedPackage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.Inventory.VersionedPackage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VersionedPackage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VersionedPackage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ZypperPatch. */
+ interface IZypperPatch {
+
+ /** ZypperPatch patchName */
+ patchName?: (string|null);
+
+ /** ZypperPatch category */
+ category?: (string|null);
+
+ /** ZypperPatch severity */
+ severity?: (string|null);
+
+ /** ZypperPatch summary */
+ summary?: (string|null);
+ }
+
+ /** Represents a ZypperPatch. */
+ class ZypperPatch implements IZypperPatch {
+
+ /**
+ * Constructs a new ZypperPatch.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.Inventory.IZypperPatch);
+
+ /** ZypperPatch patchName. */
+ public patchName: string;
+
+ /** ZypperPatch category. */
+ public category: string;
+
+ /** ZypperPatch severity. */
+ public severity: string;
+
+ /** ZypperPatch summary. */
+ public summary: string;
+
+ /**
+ * Creates a new ZypperPatch instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ZypperPatch instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.Inventory.IZypperPatch): google.cloud.osconfig.v1.Inventory.ZypperPatch;
+
+ /**
+ * Encodes the specified ZypperPatch message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.ZypperPatch.verify|verify} messages.
+ * @param message ZypperPatch message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.Inventory.IZypperPatch, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ZypperPatch message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.ZypperPatch.verify|verify} messages.
+ * @param message ZypperPatch message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.Inventory.IZypperPatch, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ZypperPatch message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ZypperPatch
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.Inventory.ZypperPatch;
+
+ /**
+ * Decodes a ZypperPatch message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ZypperPatch
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.Inventory.ZypperPatch;
+
+ /**
+ * Verifies a ZypperPatch message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ZypperPatch message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ZypperPatch
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.Inventory.ZypperPatch;
+
+ /**
+ * Creates a plain object from a ZypperPatch message. Also converts values to other types if specified.
+ * @param message ZypperPatch
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.Inventory.ZypperPatch, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ZypperPatch to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ZypperPatch
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WindowsUpdatePackage. */
+ interface IWindowsUpdatePackage {
+
+ /** WindowsUpdatePackage title */
+ title?: (string|null);
+
+ /** WindowsUpdatePackage description */
+ description?: (string|null);
+
+ /** WindowsUpdatePackage categories */
+ categories?: (google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory[]|null);
+
+ /** WindowsUpdatePackage kbArticleIds */
+ kbArticleIds?: (string[]|null);
+
+ /** WindowsUpdatePackage supportUrl */
+ supportUrl?: (string|null);
+
+ /** WindowsUpdatePackage moreInfoUrls */
+ moreInfoUrls?: (string[]|null);
+
+ /** WindowsUpdatePackage updateId */
+ updateId?: (string|null);
+
+ /** WindowsUpdatePackage revisionNumber */
+ revisionNumber?: (number|null);
+
+ /** WindowsUpdatePackage lastDeploymentChangeTime */
+ lastDeploymentChangeTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a WindowsUpdatePackage. */
+ class WindowsUpdatePackage implements IWindowsUpdatePackage {
+
+ /**
+ * Constructs a new WindowsUpdatePackage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.Inventory.IWindowsUpdatePackage);
+
+ /** WindowsUpdatePackage title. */
+ public title: string;
+
+ /** WindowsUpdatePackage description. */
+ public description: string;
+
+ /** WindowsUpdatePackage categories. */
+ public categories: google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory[];
+
+ /** WindowsUpdatePackage kbArticleIds. */
+ public kbArticleIds: string[];
+
+ /** WindowsUpdatePackage supportUrl. */
+ public supportUrl: string;
+
+ /** WindowsUpdatePackage moreInfoUrls. */
+ public moreInfoUrls: string[];
+
+ /** WindowsUpdatePackage updateId. */
+ public updateId: string;
+
+ /** WindowsUpdatePackage revisionNumber. */
+ public revisionNumber: number;
+
+ /** WindowsUpdatePackage lastDeploymentChangeTime. */
+ public lastDeploymentChangeTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new WindowsUpdatePackage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WindowsUpdatePackage instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.Inventory.IWindowsUpdatePackage): google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage;
+
+ /**
+ * Encodes the specified WindowsUpdatePackage message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.verify|verify} messages.
+ * @param message WindowsUpdatePackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.Inventory.IWindowsUpdatePackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WindowsUpdatePackage message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.verify|verify} messages.
+ * @param message WindowsUpdatePackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.Inventory.IWindowsUpdatePackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WindowsUpdatePackage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WindowsUpdatePackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage;
+
+ /**
+ * Decodes a WindowsUpdatePackage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WindowsUpdatePackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage;
+
+ /**
+ * Verifies a WindowsUpdatePackage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WindowsUpdatePackage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WindowsUpdatePackage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage;
+
+ /**
+ * Creates a plain object from a WindowsUpdatePackage message. Also converts values to other types if specified.
+ * @param message WindowsUpdatePackage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WindowsUpdatePackage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WindowsUpdatePackage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace WindowsUpdatePackage {
+
+ /** Properties of a WindowsUpdateCategory. */
+ interface IWindowsUpdateCategory {
+
+ /** WindowsUpdateCategory id */
+ id?: (string|null);
+
+ /** WindowsUpdateCategory name */
+ name?: (string|null);
+ }
+
+ /** Represents a WindowsUpdateCategory. */
+ class WindowsUpdateCategory implements IWindowsUpdateCategory {
+
+ /**
+ * Constructs a new WindowsUpdateCategory.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory);
+
+ /** WindowsUpdateCategory id. */
+ public id: string;
+
+ /** WindowsUpdateCategory name. */
+ public name: string;
+
+ /**
+ * Creates a new WindowsUpdateCategory instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WindowsUpdateCategory instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory): google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory;
+
+ /**
+ * Encodes the specified WindowsUpdateCategory message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.verify|verify} messages.
+ * @param message WindowsUpdateCategory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WindowsUpdateCategory message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.verify|verify} messages.
+ * @param message WindowsUpdateCategory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WindowsUpdateCategory message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WindowsUpdateCategory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory;
+
+ /**
+ * Decodes a WindowsUpdateCategory message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WindowsUpdateCategory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory;
+
+ /**
+ * Verifies a WindowsUpdateCategory message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WindowsUpdateCategory message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WindowsUpdateCategory
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory;
+
+ /**
+ * Creates a plain object from a WindowsUpdateCategory message. Also converts values to other types if specified.
+ * @param message WindowsUpdateCategory
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WindowsUpdateCategory to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WindowsUpdateCategory
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a WindowsQuickFixEngineeringPackage. */
+ interface IWindowsQuickFixEngineeringPackage {
+
+ /** WindowsQuickFixEngineeringPackage caption */
+ caption?: (string|null);
+
+ /** WindowsQuickFixEngineeringPackage description */
+ description?: (string|null);
+
+ /** WindowsQuickFixEngineeringPackage hotFixId */
+ hotFixId?: (string|null);
+
+ /** WindowsQuickFixEngineeringPackage installTime */
+ installTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a WindowsQuickFixEngineeringPackage. */
+ class WindowsQuickFixEngineeringPackage implements IWindowsQuickFixEngineeringPackage {
+
+ /**
+ * Constructs a new WindowsQuickFixEngineeringPackage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.Inventory.IWindowsQuickFixEngineeringPackage);
+
+ /** WindowsQuickFixEngineeringPackage caption. */
+ public caption: string;
+
+ /** WindowsQuickFixEngineeringPackage description. */
+ public description: string;
+
+ /** WindowsQuickFixEngineeringPackage hotFixId. */
+ public hotFixId: string;
+
+ /** WindowsQuickFixEngineeringPackage installTime. */
+ public installTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new WindowsQuickFixEngineeringPackage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WindowsQuickFixEngineeringPackage instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.Inventory.IWindowsQuickFixEngineeringPackage): google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage;
+
+ /**
+ * Encodes the specified WindowsQuickFixEngineeringPackage message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.verify|verify} messages.
+ * @param message WindowsQuickFixEngineeringPackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.Inventory.IWindowsQuickFixEngineeringPackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WindowsQuickFixEngineeringPackage message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.verify|verify} messages.
+ * @param message WindowsQuickFixEngineeringPackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.Inventory.IWindowsQuickFixEngineeringPackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WindowsQuickFixEngineeringPackage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WindowsQuickFixEngineeringPackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage;
+
+ /**
+ * Decodes a WindowsQuickFixEngineeringPackage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WindowsQuickFixEngineeringPackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage;
+
+ /**
+ * Verifies a WindowsQuickFixEngineeringPackage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WindowsQuickFixEngineeringPackage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WindowsQuickFixEngineeringPackage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage;
+
+ /**
+ * Creates a plain object from a WindowsQuickFixEngineeringPackage message. Also converts values to other types if specified.
+ * @param message WindowsQuickFixEngineeringPackage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WindowsQuickFixEngineeringPackage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WindowsQuickFixEngineeringPackage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WindowsApplication. */
+ interface IWindowsApplication {
+
+ /** WindowsApplication displayName */
+ displayName?: (string|null);
+
+ /** WindowsApplication displayVersion */
+ displayVersion?: (string|null);
+
+ /** WindowsApplication publisher */
+ publisher?: (string|null);
+
+ /** WindowsApplication installDate */
+ installDate?: (google.type.IDate|null);
+
+ /** WindowsApplication helpLink */
+ helpLink?: (string|null);
+ }
+
+ /** Represents a WindowsApplication. */
+ class WindowsApplication implements IWindowsApplication {
+
+ /**
+ * Constructs a new WindowsApplication.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.Inventory.IWindowsApplication);
+
+ /** WindowsApplication displayName. */
+ public displayName: string;
+
+ /** WindowsApplication displayVersion. */
+ public displayVersion: string;
+
+ /** WindowsApplication publisher. */
+ public publisher: string;
+
+ /** WindowsApplication installDate. */
+ public installDate?: (google.type.IDate|null);
+
+ /** WindowsApplication helpLink. */
+ public helpLink: string;
+
+ /**
+ * Creates a new WindowsApplication instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WindowsApplication instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.Inventory.IWindowsApplication): google.cloud.osconfig.v1.Inventory.WindowsApplication;
+
+ /**
+ * Encodes the specified WindowsApplication message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsApplication.verify|verify} messages.
+ * @param message WindowsApplication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.Inventory.IWindowsApplication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WindowsApplication message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsApplication.verify|verify} messages.
+ * @param message WindowsApplication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.Inventory.IWindowsApplication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WindowsApplication message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WindowsApplication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.Inventory.WindowsApplication;
+
+ /**
+ * Decodes a WindowsApplication message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WindowsApplication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.Inventory.WindowsApplication;
+
+ /**
+ * Verifies a WindowsApplication message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WindowsApplication message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WindowsApplication
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.Inventory.WindowsApplication;
+
+ /**
+ * Creates a plain object from a WindowsApplication message. Also converts values to other types if specified.
+ * @param message WindowsApplication
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.Inventory.WindowsApplication, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WindowsApplication to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WindowsApplication
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GetInventoryRequest. */
+ interface IGetInventoryRequest {
+
+ /** GetInventoryRequest name */
+ name?: (string|null);
+
+ /** GetInventoryRequest view */
+ view?: (google.cloud.osconfig.v1.InventoryView|keyof typeof google.cloud.osconfig.v1.InventoryView|null);
+ }
+
+ /** Represents a GetInventoryRequest. */
+ class GetInventoryRequest implements IGetInventoryRequest {
+
+ /**
+ * Constructs a new GetInventoryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IGetInventoryRequest);
+
+ /** GetInventoryRequest name. */
+ public name: string;
+
+ /** GetInventoryRequest view. */
+ public view: (google.cloud.osconfig.v1.InventoryView|keyof typeof google.cloud.osconfig.v1.InventoryView);
+
+ /**
+ * Creates a new GetInventoryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetInventoryRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IGetInventoryRequest): google.cloud.osconfig.v1.GetInventoryRequest;
+
+ /**
+ * Encodes the specified GetInventoryRequest message. Does not implicitly {@link google.cloud.osconfig.v1.GetInventoryRequest.verify|verify} messages.
+ * @param message GetInventoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IGetInventoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetInventoryRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.GetInventoryRequest.verify|verify} messages.
+ * @param message GetInventoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IGetInventoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetInventoryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetInventoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.GetInventoryRequest;
+
+ /**
+ * Decodes a GetInventoryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetInventoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.GetInventoryRequest;
+
+ /**
+ * Verifies a GetInventoryRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetInventoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetInventoryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.GetInventoryRequest;
+
+ /**
+ * Creates a plain object from a GetInventoryRequest message. Also converts values to other types if specified.
+ * @param message GetInventoryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.GetInventoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetInventoryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetInventoryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListInventoriesRequest. */
+ interface IListInventoriesRequest {
+
+ /** ListInventoriesRequest parent */
+ parent?: (string|null);
+
+ /** ListInventoriesRequest view */
+ view?: (google.cloud.osconfig.v1.InventoryView|keyof typeof google.cloud.osconfig.v1.InventoryView|null);
+
+ /** ListInventoriesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListInventoriesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListInventoriesRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListInventoriesRequest. */
+ class ListInventoriesRequest implements IListInventoriesRequest {
+
+ /**
+ * Constructs a new ListInventoriesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListInventoriesRequest);
+
+ /** ListInventoriesRequest parent. */
+ public parent: string;
+
+ /** ListInventoriesRequest view. */
+ public view: (google.cloud.osconfig.v1.InventoryView|keyof typeof google.cloud.osconfig.v1.InventoryView);
+
+ /** ListInventoriesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListInventoriesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListInventoriesRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListInventoriesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListInventoriesRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListInventoriesRequest): google.cloud.osconfig.v1.ListInventoriesRequest;
+
+ /**
+ * Encodes the specified ListInventoriesRequest message. Does not implicitly {@link google.cloud.osconfig.v1.ListInventoriesRequest.verify|verify} messages.
+ * @param message ListInventoriesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListInventoriesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListInventoriesRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListInventoriesRequest.verify|verify} messages.
+ * @param message ListInventoriesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListInventoriesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListInventoriesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListInventoriesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListInventoriesRequest;
+
+ /**
+ * Decodes a ListInventoriesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListInventoriesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListInventoriesRequest;
+
+ /**
+ * Verifies a ListInventoriesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListInventoriesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListInventoriesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListInventoriesRequest;
+
+ /**
+ * Creates a plain object from a ListInventoriesRequest message. Also converts values to other types if specified.
+ * @param message ListInventoriesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListInventoriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListInventoriesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListInventoriesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListInventoriesResponse. */
+ interface IListInventoriesResponse {
+
+ /** ListInventoriesResponse inventories */
+ inventories?: (google.cloud.osconfig.v1.IInventory[]|null);
+
+ /** ListInventoriesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListInventoriesResponse. */
+ class ListInventoriesResponse implements IListInventoriesResponse {
+
+ /**
+ * Constructs a new ListInventoriesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListInventoriesResponse);
+
+ /** ListInventoriesResponse inventories. */
+ public inventories: google.cloud.osconfig.v1.IInventory[];
+
+ /** ListInventoriesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListInventoriesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListInventoriesResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListInventoriesResponse): google.cloud.osconfig.v1.ListInventoriesResponse;
+
+ /**
+ * Encodes the specified ListInventoriesResponse message. Does not implicitly {@link google.cloud.osconfig.v1.ListInventoriesResponse.verify|verify} messages.
+ * @param message ListInventoriesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListInventoriesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListInventoriesResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListInventoriesResponse.verify|verify} messages.
+ * @param message ListInventoriesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListInventoriesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListInventoriesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListInventoriesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListInventoriesResponse;
+
+ /**
+ * Decodes a ListInventoriesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListInventoriesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListInventoriesResponse;
+
+ /**
+ * Verifies a ListInventoriesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListInventoriesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListInventoriesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListInventoriesResponse;
+
+ /**
+ * Creates a plain object from a ListInventoriesResponse message. Also converts values to other types if specified.
+ * @param message ListInventoriesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListInventoriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListInventoriesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListInventoriesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** InventoryView enum. */
+ enum InventoryView {
+ INVENTORY_VIEW_UNSPECIFIED = 0,
+ BASIC = 1,
+ FULL = 2
+ }
+
+ /** Properties of a OSPolicy. */
+ interface IOSPolicy {
+
+ /** OSPolicy id */
+ id?: (string|null);
+
+ /** OSPolicy description */
+ description?: (string|null);
+
+ /** OSPolicy mode */
+ mode?: (google.cloud.osconfig.v1.OSPolicy.Mode|keyof typeof google.cloud.osconfig.v1.OSPolicy.Mode|null);
+
+ /** OSPolicy resourceGroups */
+ resourceGroups?: (google.cloud.osconfig.v1.OSPolicy.IResourceGroup[]|null);
+
+ /** OSPolicy allowNoResourceGroupMatch */
+ allowNoResourceGroupMatch?: (boolean|null);
+ }
+
+ /** Represents a OSPolicy. */
+ class OSPolicy implements IOSPolicy {
+
+ /**
+ * Constructs a new OSPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IOSPolicy);
+
+ /** OSPolicy id. */
+ public id: string;
+
+ /** OSPolicy description. */
+ public description: string;
+
+ /** OSPolicy mode. */
+ public mode: (google.cloud.osconfig.v1.OSPolicy.Mode|keyof typeof google.cloud.osconfig.v1.OSPolicy.Mode);
+
+ /** OSPolicy resourceGroups. */
+ public resourceGroups: google.cloud.osconfig.v1.OSPolicy.IResourceGroup[];
+
+ /** OSPolicy allowNoResourceGroupMatch. */
+ public allowNoResourceGroupMatch: boolean;
+
+ /**
+ * Creates a new OSPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicy instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IOSPolicy): google.cloud.osconfig.v1.OSPolicy;
+
+ /**
+ * Encodes the specified OSPolicy message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.verify|verify} messages.
+ * @param message OSPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IOSPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicy message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.verify|verify} messages.
+ * @param message OSPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IOSPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy;
+
+ /**
+ * Decodes a OSPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy;
+
+ /**
+ * Verifies a OSPolicy message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy;
+
+ /**
+ * Creates a plain object from a OSPolicy message. Also converts values to other types if specified.
+ * @param message OSPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicy {
+
+ /** Mode enum. */
+ enum Mode {
+ MODE_UNSPECIFIED = 0,
+ VALIDATION = 1,
+ ENFORCEMENT = 2
+ }
+
+ /** Properties of an InventoryFilter. */
+ interface IInventoryFilter {
+
+ /** InventoryFilter osShortName */
+ osShortName?: (string|null);
+
+ /** InventoryFilter osVersion */
+ osVersion?: (string|null);
+ }
+
+ /** Represents an InventoryFilter. */
+ class InventoryFilter implements IInventoryFilter {
+
+ /**
+ * Constructs a new InventoryFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.IInventoryFilter);
+
+ /** InventoryFilter osShortName. */
+ public osShortName: string;
+
+ /** InventoryFilter osVersion. */
+ public osVersion: string;
+
+ /**
+ * Creates a new InventoryFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InventoryFilter instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.IInventoryFilter): google.cloud.osconfig.v1.OSPolicy.InventoryFilter;
+
+ /**
+ * Encodes the specified InventoryFilter message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.InventoryFilter.verify|verify} messages.
+ * @param message InventoryFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.IInventoryFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InventoryFilter message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.InventoryFilter.verify|verify} messages.
+ * @param message InventoryFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.IInventoryFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InventoryFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InventoryFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.InventoryFilter;
+
+ /**
+ * Decodes an InventoryFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InventoryFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.InventoryFilter;
+
+ /**
+ * Verifies an InventoryFilter message.
+ * @param message Plain 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 InventoryFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InventoryFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.InventoryFilter;
+
+ /**
+ * Creates a plain object from an InventoryFilter message. Also converts values to other types if specified.
+ * @param message InventoryFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.InventoryFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InventoryFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InventoryFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Resource. */
+ interface IResource {
+
+ /** Resource id */
+ id?: (string|null);
+
+ /** Resource pkg */
+ pkg?: (google.cloud.osconfig.v1.OSPolicy.Resource.IPackageResource|null);
+
+ /** Resource repository */
+ repository?: (google.cloud.osconfig.v1.OSPolicy.Resource.IRepositoryResource|null);
+
+ /** Resource exec */
+ exec?: (google.cloud.osconfig.v1.OSPolicy.Resource.IExecResource|null);
+
+ /** Resource file */
+ file?: (google.cloud.osconfig.v1.OSPolicy.Resource.IFileResource|null);
+ }
+
+ /** Represents a Resource. */
+ class Resource implements IResource {
+
+ /**
+ * Constructs a new Resource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.IResource);
+
+ /** Resource id. */
+ public id: string;
+
+ /** Resource pkg. */
+ public pkg?: (google.cloud.osconfig.v1.OSPolicy.Resource.IPackageResource|null);
+
+ /** Resource repository. */
+ public repository?: (google.cloud.osconfig.v1.OSPolicy.Resource.IRepositoryResource|null);
+
+ /** Resource exec. */
+ public exec?: (google.cloud.osconfig.v1.OSPolicy.Resource.IExecResource|null);
+
+ /** Resource file. */
+ public file?: (google.cloud.osconfig.v1.OSPolicy.Resource.IFileResource|null);
+
+ /** Resource resourceType. */
+ public resourceType?: ("pkg"|"repository"|"exec"|"file");
+
+ /**
+ * Creates a new Resource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Resource instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.IResource): google.cloud.osconfig.v1.OSPolicy.Resource;
+
+ /**
+ * Encodes the specified Resource message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.verify|verify} messages.
+ * @param message Resource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.IResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Resource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.verify|verify} messages.
+ * @param message Resource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.IResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Resource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Resource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource;
+
+ /**
+ * Decodes a Resource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Resource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource;
+
+ /**
+ * Verifies a Resource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Resource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Resource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource;
+
+ /**
+ * Creates a plain object from a Resource message. Also converts values to other types if specified.
+ * @param message Resource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Resource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Resource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Resource {
+
+ /** Properties of a File. */
+ interface IFile {
+
+ /** File remote */
+ remote?: (google.cloud.osconfig.v1.OSPolicy.Resource.File.IRemote|null);
+
+ /** File gcs */
+ gcs?: (google.cloud.osconfig.v1.OSPolicy.Resource.File.IGcs|null);
+
+ /** File localPath */
+ localPath?: (string|null);
+
+ /** File allowInsecure */
+ allowInsecure?: (boolean|null);
+ }
+
+ /** Represents a File. */
+ class File implements IFile {
+
+ /**
+ * Constructs a new File.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.IFile);
+
+ /** File remote. */
+ public remote?: (google.cloud.osconfig.v1.OSPolicy.Resource.File.IRemote|null);
+
+ /** File gcs. */
+ public gcs?: (google.cloud.osconfig.v1.OSPolicy.Resource.File.IGcs|null);
+
+ /** File localPath. */
+ public localPath?: (string|null);
+
+ /** File allowInsecure. */
+ public allowInsecure: boolean;
+
+ /** File type. */
+ public type?: ("remote"|"gcs"|"localPath");
+
+ /**
+ * Creates a new File instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns File instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.IFile): google.cloud.osconfig.v1.OSPolicy.Resource.File;
+
+ /**
+ * Encodes the specified File message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.File.verify|verify} messages.
+ * @param message File message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.IFile, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified File message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.File.verify|verify} messages.
+ * @param message File message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.IFile, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a File message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns File
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.File;
+
+ /**
+ * Decodes a File message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns File
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.File;
+
+ /**
+ * Verifies a File message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a File message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns File
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.File;
+
+ /**
+ * Creates a plain object from a File message. Also converts values to other types if specified.
+ * @param message File
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.File, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this File to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for File
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace File {
+
+ /** Properties of a Remote. */
+ interface IRemote {
+
+ /** Remote uri */
+ uri?: (string|null);
+
+ /** Remote sha256Checksum */
+ sha256Checksum?: (string|null);
+ }
+
+ /** Represents a Remote. */
+ class Remote implements IRemote {
+
+ /**
+ * Constructs a new Remote.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.File.IRemote);
+
+ /** Remote uri. */
+ public uri: string;
+
+ /** Remote sha256Checksum. */
+ public sha256Checksum: string;
+
+ /**
+ * Creates a new Remote instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Remote instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.File.IRemote): google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote;
+
+ /**
+ * Encodes the specified Remote message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote.verify|verify} messages.
+ * @param message Remote message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.File.IRemote, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Remote message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote.verify|verify} messages.
+ * @param message Remote message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.File.IRemote, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Remote message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Remote
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote;
+
+ /**
+ * Decodes a Remote message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Remote
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote;
+
+ /**
+ * Verifies a Remote message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Remote message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Remote
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote;
+
+ /**
+ * Creates a plain object from a Remote message. Also converts values to other types if specified.
+ * @param message Remote
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Remote to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Remote
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Gcs. */
+ interface IGcs {
+
+ /** Gcs bucket */
+ bucket?: (string|null);
+
+ /** Gcs object */
+ object?: (string|null);
+
+ /** Gcs generation */
+ generation?: (number|Long|string|null);
+ }
+
+ /** Represents a Gcs. */
+ class Gcs implements IGcs {
+
+ /**
+ * Constructs a new Gcs.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.File.IGcs);
+
+ /** Gcs bucket. */
+ public bucket: string;
+
+ /** Gcs object. */
+ public object: string;
+
+ /** Gcs generation. */
+ public generation: (number|Long|string);
+
+ /**
+ * Creates a new Gcs instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Gcs instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.File.IGcs): google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs;
+
+ /**
+ * Encodes the specified Gcs message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs.verify|verify} messages.
+ * @param message Gcs message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.File.IGcs, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Gcs message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs.verify|verify} messages.
+ * @param message Gcs message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.File.IGcs, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Gcs message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Gcs
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs;
+
+ /**
+ * Decodes a Gcs message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Gcs
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs;
+
+ /**
+ * Verifies a Gcs message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Gcs message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Gcs
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs;
+
+ /**
+ * Creates a plain object from a Gcs message. Also converts values to other types if specified.
+ * @param message Gcs
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Gcs to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Gcs
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a PackageResource. */
+ interface IPackageResource {
+
+ /** PackageResource desiredState */
+ desiredState?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState|keyof typeof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState|null);
+
+ /** PackageResource apt */
+ apt?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IAPT|null);
+
+ /** PackageResource deb */
+ deb?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IDeb|null);
+
+ /** PackageResource yum */
+ yum?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IYUM|null);
+
+ /** PackageResource zypper */
+ zypper?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IZypper|null);
+
+ /** PackageResource rpm */
+ rpm?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IRPM|null);
+
+ /** PackageResource googet */
+ googet?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IGooGet|null);
+
+ /** PackageResource msi */
+ msi?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IMSI|null);
+ }
+
+ /** Represents a PackageResource. */
+ class PackageResource implements IPackageResource {
+
+ /**
+ * Constructs a new PackageResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.IPackageResource);
+
+ /** PackageResource desiredState. */
+ public desiredState: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState|keyof typeof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState);
+
+ /** PackageResource apt. */
+ public apt?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IAPT|null);
+
+ /** PackageResource deb. */
+ public deb?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IDeb|null);
+
+ /** PackageResource yum. */
+ public yum?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IYUM|null);
+
+ /** PackageResource zypper. */
+ public zypper?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IZypper|null);
+
+ /** PackageResource rpm. */
+ public rpm?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IRPM|null);
+
+ /** PackageResource googet. */
+ public googet?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IGooGet|null);
+
+ /** PackageResource msi. */
+ public msi?: (google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IMSI|null);
+
+ /** PackageResource systemPackage. */
+ public systemPackage?: ("apt"|"deb"|"yum"|"zypper"|"rpm"|"googet"|"msi");
+
+ /**
+ * Creates a new PackageResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PackageResource instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.IPackageResource): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource;
+
+ /**
+ * Encodes the specified PackageResource message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.verify|verify} messages.
+ * @param message PackageResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.IPackageResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PackageResource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.verify|verify} messages.
+ * @param message PackageResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.IPackageResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PackageResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PackageResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource;
+
+ /**
+ * Decodes a PackageResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PackageResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource;
+
+ /**
+ * Verifies a PackageResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PackageResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PackageResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource;
+
+ /**
+ * Creates a plain object from a PackageResource message. Also converts values to other types if specified.
+ * @param message PackageResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PackageResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PackageResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PackageResource {
+
+ /** DesiredState enum. */
+ enum DesiredState {
+ DESIRED_STATE_UNSPECIFIED = 0,
+ INSTALLED = 1,
+ REMOVED = 2
+ }
+
+ /** Properties of a Deb. */
+ interface IDeb {
+
+ /** Deb source */
+ source?: (google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null);
+
+ /** Deb pullDeps */
+ pullDeps?: (boolean|null);
+ }
+
+ /** Represents a Deb. */
+ class Deb implements IDeb {
+
+ /**
+ * Constructs a new Deb.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IDeb);
+
+ /** Deb source. */
+ public source?: (google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null);
+
+ /** Deb pullDeps. */
+ public pullDeps: boolean;
+
+ /**
+ * Creates a new Deb instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Deb instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IDeb): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb;
+
+ /**
+ * Encodes the specified Deb message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb.verify|verify} messages.
+ * @param message Deb message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IDeb, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Deb message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb.verify|verify} messages.
+ * @param message Deb message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IDeb, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Deb message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Deb
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb;
+
+ /**
+ * Decodes a Deb message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Deb
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb;
+
+ /**
+ * Verifies a Deb message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Deb message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Deb
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb;
+
+ /**
+ * Creates a plain object from a Deb message. Also converts values to other types if specified.
+ * @param message Deb
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Deb to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Deb
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a APT. */
+ interface IAPT {
+
+ /** APT name */
+ name?: (string|null);
+ }
+
+ /** Represents a APT. */
+ class APT implements IAPT {
+
+ /**
+ * Constructs a new APT.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IAPT);
+
+ /** APT name. */
+ public name: string;
+
+ /**
+ * Creates a new APT instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns APT instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IAPT): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT;
+
+ /**
+ * Encodes the specified APT message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT.verify|verify} messages.
+ * @param message APT message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IAPT, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified APT message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT.verify|verify} messages.
+ * @param message APT message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IAPT, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a APT message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns APT
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT;
+
+ /**
+ * Decodes a APT message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns APT
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT;
+
+ /**
+ * Verifies a APT message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a APT message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns APT
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT;
+
+ /**
+ * Creates a plain object from a APT message. Also converts values to other types if specified.
+ * @param message APT
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this APT to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for APT
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RPM. */
+ interface IRPM {
+
+ /** RPM source */
+ source?: (google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null);
+
+ /** RPM pullDeps */
+ pullDeps?: (boolean|null);
+ }
+
+ /** Represents a RPM. */
+ class RPM implements IRPM {
+
+ /**
+ * Constructs a new RPM.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IRPM);
+
+ /** RPM source. */
+ public source?: (google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null);
+
+ /** RPM pullDeps. */
+ public pullDeps: boolean;
+
+ /**
+ * Creates a new RPM instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RPM instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IRPM): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM;
+
+ /**
+ * Encodes the specified RPM message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM.verify|verify} messages.
+ * @param message RPM message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IRPM, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RPM message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM.verify|verify} messages.
+ * @param message RPM message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IRPM, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RPM message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RPM
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM;
+
+ /**
+ * Decodes a RPM message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RPM
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM;
+
+ /**
+ * Verifies a RPM message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RPM message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RPM
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM;
+
+ /**
+ * Creates a plain object from a RPM message. Also converts values to other types if specified.
+ * @param message RPM
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RPM to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RPM
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a YUM. */
+ interface IYUM {
+
+ /** YUM name */
+ name?: (string|null);
+ }
+
+ /** Represents a YUM. */
+ class YUM implements IYUM {
+
+ /**
+ * Constructs a new YUM.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IYUM);
+
+ /** YUM name. */
+ public name: string;
+
+ /**
+ * Creates a new YUM instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns YUM instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IYUM): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM;
+
+ /**
+ * Encodes the specified YUM message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM.verify|verify} messages.
+ * @param message YUM message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IYUM, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified YUM message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM.verify|verify} messages.
+ * @param message YUM message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IYUM, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a YUM message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns YUM
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM;
+
+ /**
+ * Decodes a YUM message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns YUM
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM;
+
+ /**
+ * Verifies a YUM message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a YUM message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns YUM
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM;
+
+ /**
+ * Creates a plain object from a YUM message. Also converts values to other types if specified.
+ * @param message YUM
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this YUM to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for YUM
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Zypper. */
+ interface IZypper {
+
+ /** Zypper name */
+ name?: (string|null);
+ }
+
+ /** Represents a Zypper. */
+ class Zypper implements IZypper {
+
+ /**
+ * Constructs a new Zypper.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IZypper);
+
+ /** Zypper name. */
+ public name: string;
+
+ /**
+ * Creates a new Zypper instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Zypper instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IZypper): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper;
+
+ /**
+ * Encodes the specified Zypper message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper.verify|verify} messages.
+ * @param message Zypper message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IZypper, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Zypper message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper.verify|verify} messages.
+ * @param message Zypper message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IZypper, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Zypper message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Zypper
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper;
+
+ /**
+ * Decodes a Zypper message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Zypper
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper;
+
+ /**
+ * Verifies a Zypper message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Zypper message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Zypper
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper;
+
+ /**
+ * Creates a plain object from a Zypper message. Also converts values to other types if specified.
+ * @param message Zypper
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Zypper to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Zypper
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GooGet. */
+ interface IGooGet {
+
+ /** GooGet name */
+ name?: (string|null);
+ }
+
+ /** Represents a GooGet. */
+ class GooGet implements IGooGet {
+
+ /**
+ * Constructs a new GooGet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IGooGet);
+
+ /** GooGet name. */
+ public name: string;
+
+ /**
+ * Creates a new GooGet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GooGet instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IGooGet): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet;
+
+ /**
+ * Encodes the specified GooGet message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet.verify|verify} messages.
+ * @param message GooGet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IGooGet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GooGet message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet.verify|verify} messages.
+ * @param message GooGet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IGooGet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GooGet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GooGet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet;
+
+ /**
+ * Decodes a GooGet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GooGet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet;
+
+ /**
+ * Verifies a GooGet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GooGet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GooGet
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet;
+
+ /**
+ * Creates a plain object from a GooGet message. Also converts values to other types if specified.
+ * @param message GooGet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GooGet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GooGet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MSI. */
+ interface IMSI {
+
+ /** MSI source */
+ source?: (google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null);
+
+ /** MSI properties */
+ properties?: (string[]|null);
+ }
+
+ /** Represents a MSI. */
+ class MSI implements IMSI {
+
+ /**
+ * Constructs a new MSI.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IMSI);
+
+ /** MSI source. */
+ public source?: (google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null);
+
+ /** MSI properties. */
+ public properties: string[];
+
+ /**
+ * Creates a new MSI instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MSI instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IMSI): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI;
+
+ /**
+ * Encodes the specified MSI message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI.verify|verify} messages.
+ * @param message MSI message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IMSI, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MSI message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI.verify|verify} messages.
+ * @param message MSI message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IMSI, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MSI message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MSI
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI;
+
+ /**
+ * Decodes a MSI message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MSI
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI;
+
+ /**
+ * Verifies a MSI message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MSI message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MSI
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI;
+
+ /**
+ * Creates a plain object from a MSI message. Also converts values to other types if specified.
+ * @param message MSI
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MSI to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MSI
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a RepositoryResource. */
+ interface IRepositoryResource {
+
+ /** RepositoryResource apt */
+ apt?: (google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IAptRepository|null);
+
+ /** RepositoryResource yum */
+ yum?: (google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IYumRepository|null);
+
+ /** RepositoryResource zypper */
+ zypper?: (google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IZypperRepository|null);
+
+ /** RepositoryResource goo */
+ goo?: (google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IGooRepository|null);
+ }
+
+ /** Represents a RepositoryResource. */
+ class RepositoryResource implements IRepositoryResource {
+
+ /**
+ * Constructs a new RepositoryResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.IRepositoryResource);
+
+ /** RepositoryResource apt. */
+ public apt?: (google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IAptRepository|null);
+
+ /** RepositoryResource yum. */
+ public yum?: (google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IYumRepository|null);
+
+ /** RepositoryResource zypper. */
+ public zypper?: (google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IZypperRepository|null);
+
+ /** RepositoryResource goo. */
+ public goo?: (google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IGooRepository|null);
+
+ /** RepositoryResource repository. */
+ public repository?: ("apt"|"yum"|"zypper"|"goo");
+
+ /**
+ * Creates a new RepositoryResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RepositoryResource instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.IRepositoryResource): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource;
+
+ /**
+ * Encodes the specified RepositoryResource message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.verify|verify} messages.
+ * @param message RepositoryResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.IRepositoryResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RepositoryResource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.verify|verify} messages.
+ * @param message RepositoryResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.IRepositoryResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RepositoryResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RepositoryResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource;
+
+ /**
+ * Decodes a RepositoryResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RepositoryResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource;
+
+ /**
+ * Verifies a RepositoryResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RepositoryResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RepositoryResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource;
+
+ /**
+ * Creates a plain object from a RepositoryResource message. Also converts values to other types if specified.
+ * @param message RepositoryResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RepositoryResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RepositoryResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace RepositoryResource {
+
+ /** Properties of an AptRepository. */
+ interface IAptRepository {
+
+ /** AptRepository archiveType */
+ archiveType?: (google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType|keyof typeof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType|null);
+
+ /** AptRepository uri */
+ uri?: (string|null);
+
+ /** AptRepository distribution */
+ distribution?: (string|null);
+
+ /** AptRepository components */
+ components?: (string[]|null);
+
+ /** AptRepository gpgKey */
+ gpgKey?: (string|null);
+ }
+
+ /** Represents an AptRepository. */
+ class AptRepository implements IAptRepository {
+
+ /**
+ * Constructs a new AptRepository.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IAptRepository);
+
+ /** AptRepository archiveType. */
+ public archiveType: (google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType|keyof typeof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType);
+
+ /** AptRepository uri. */
+ public uri: string;
+
+ /** AptRepository distribution. */
+ public distribution: string;
+
+ /** AptRepository components. */
+ public components: string[];
+
+ /** AptRepository gpgKey. */
+ public gpgKey: string;
+
+ /**
+ * Creates a new AptRepository instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AptRepository instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IAptRepository): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository;
+
+ /**
+ * Encodes the specified AptRepository message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.verify|verify} messages.
+ * @param message AptRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IAptRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AptRepository message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.verify|verify} messages.
+ * @param message AptRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IAptRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AptRepository message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AptRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository;
+
+ /**
+ * Decodes an AptRepository message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AptRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository;
+
+ /**
+ * Verifies an AptRepository message.
+ * @param message Plain 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 AptRepository message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AptRepository
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository;
+
+ /**
+ * Creates a plain object from an AptRepository message. Also converts values to other types if specified.
+ * @param message AptRepository
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AptRepository to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AptRepository
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AptRepository {
+
+ /** ArchiveType enum. */
+ enum ArchiveType {
+ ARCHIVE_TYPE_UNSPECIFIED = 0,
+ DEB = 1,
+ DEB_SRC = 2
+ }
+ }
+
+ /** Properties of a YumRepository. */
+ interface IYumRepository {
+
+ /** YumRepository id */
+ id?: (string|null);
+
+ /** YumRepository displayName */
+ displayName?: (string|null);
+
+ /** YumRepository baseUrl */
+ baseUrl?: (string|null);
+
+ /** YumRepository gpgKeys */
+ gpgKeys?: (string[]|null);
+ }
+
+ /** Represents a YumRepository. */
+ class YumRepository implements IYumRepository {
+
+ /**
+ * Constructs a new YumRepository.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IYumRepository);
+
+ /** YumRepository id. */
+ public id: string;
+
+ /** YumRepository displayName. */
+ public displayName: string;
+
+ /** YumRepository baseUrl. */
+ public baseUrl: string;
+
+ /** YumRepository gpgKeys. */
+ public gpgKeys: string[];
+
+ /**
+ * Creates a new YumRepository instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns YumRepository instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IYumRepository): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository;
+
+ /**
+ * Encodes the specified YumRepository message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository.verify|verify} messages.
+ * @param message YumRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IYumRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified YumRepository message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository.verify|verify} messages.
+ * @param message YumRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IYumRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a YumRepository message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns YumRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository;
+
+ /**
+ * Decodes a YumRepository message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns YumRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository;
+
+ /**
+ * Verifies a YumRepository message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a YumRepository message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns YumRepository
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository;
+
+ /**
+ * Creates a plain object from a YumRepository message. Also converts values to other types if specified.
+ * @param message YumRepository
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this YumRepository to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for YumRepository
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ZypperRepository. */
+ interface IZypperRepository {
+
+ /** ZypperRepository id */
+ id?: (string|null);
+
+ /** ZypperRepository displayName */
+ displayName?: (string|null);
+
+ /** ZypperRepository baseUrl */
+ baseUrl?: (string|null);
+
+ /** ZypperRepository gpgKeys */
+ gpgKeys?: (string[]|null);
+ }
+
+ /** Represents a ZypperRepository. */
+ class ZypperRepository implements IZypperRepository {
+
+ /**
+ * Constructs a new ZypperRepository.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IZypperRepository);
+
+ /** ZypperRepository id. */
+ public id: string;
+
+ /** ZypperRepository displayName. */
+ public displayName: string;
+
+ /** ZypperRepository baseUrl. */
+ public baseUrl: string;
+
+ /** ZypperRepository gpgKeys. */
+ public gpgKeys: string[];
+
+ /**
+ * Creates a new ZypperRepository instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ZypperRepository instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IZypperRepository): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository;
+
+ /**
+ * Encodes the specified ZypperRepository message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository.verify|verify} messages.
+ * @param message ZypperRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IZypperRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ZypperRepository message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository.verify|verify} messages.
+ * @param message ZypperRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IZypperRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ZypperRepository message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ZypperRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository;
+
+ /**
+ * Decodes a ZypperRepository message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ZypperRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository;
+
+ /**
+ * Verifies a ZypperRepository message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ZypperRepository message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ZypperRepository
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository;
+
+ /**
+ * Creates a plain object from a ZypperRepository message. Also converts values to other types if specified.
+ * @param message ZypperRepository
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ZypperRepository to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ZypperRepository
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GooRepository. */
+ interface IGooRepository {
+
+ /** GooRepository name */
+ name?: (string|null);
+
+ /** GooRepository url */
+ url?: (string|null);
+ }
+
+ /** Represents a GooRepository. */
+ class GooRepository implements IGooRepository {
+
+ /**
+ * Constructs a new GooRepository.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IGooRepository);
+
+ /** GooRepository name. */
+ public name: string;
+
+ /** GooRepository url. */
+ public url: string;
+
+ /**
+ * Creates a new GooRepository instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GooRepository instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IGooRepository): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository;
+
+ /**
+ * Encodes the specified GooRepository message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository.verify|verify} messages.
+ * @param message GooRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IGooRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GooRepository message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository.verify|verify} messages.
+ * @param message GooRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IGooRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GooRepository message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GooRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository;
+
+ /**
+ * Decodes a GooRepository message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GooRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository;
+
+ /**
+ * Verifies a GooRepository message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GooRepository message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GooRepository
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository;
+
+ /**
+ * Creates a plain object from a GooRepository message. Also converts values to other types if specified.
+ * @param message GooRepository
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GooRepository to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GooRepository
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExecResource. */
+ interface IExecResource {
+
+ /** ExecResource validate */
+ validate?: (google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec|null);
+
+ /** ExecResource enforce */
+ enforce?: (google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec|null);
+ }
+
+ /** Represents an ExecResource. */
+ class ExecResource implements IExecResource {
+
+ /**
+ * Constructs a new ExecResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.IExecResource);
+
+ /** ExecResource validate. */
+ public validate?: (google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec|null);
+
+ /** ExecResource enforce. */
+ public enforce?: (google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec|null);
+
+ /**
+ * Creates a new ExecResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExecResource instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.IExecResource): google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource;
+
+ /**
+ * Encodes the specified ExecResource message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.verify|verify} messages.
+ * @param message ExecResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.IExecResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExecResource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.verify|verify} messages.
+ * @param message ExecResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.IExecResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExecResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExecResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource;
+
+ /**
+ * Decodes an ExecResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExecResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource;
+
+ /**
+ * Verifies an ExecResource message.
+ * @param message Plain 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 ExecResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExecResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource;
+
+ /**
+ * Creates a plain object from an ExecResource message. Also converts values to other types if specified.
+ * @param message ExecResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExecResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExecResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExecResource {
+
+ /** Properties of an Exec. */
+ interface IExec {
+
+ /** Exec file */
+ file?: (google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null);
+
+ /** Exec script */
+ script?: (string|null);
+
+ /** Exec args */
+ args?: (string[]|null);
+
+ /** Exec interpreter */
+ interpreter?: (google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter|keyof typeof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter|null);
+
+ /** Exec outputFilePath */
+ outputFilePath?: (string|null);
+ }
+
+ /** Represents an Exec. */
+ class Exec implements IExec {
+
+ /**
+ * Constructs a new Exec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec);
+
+ /** Exec file. */
+ public file?: (google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null);
+
+ /** Exec script. */
+ public script?: (string|null);
+
+ /** Exec args. */
+ public args: string[];
+
+ /** Exec interpreter. */
+ public interpreter: (google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter|keyof typeof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter);
+
+ /** Exec outputFilePath. */
+ public outputFilePath: string;
+
+ /** Exec source. */
+ public source?: ("file"|"script");
+
+ /**
+ * Creates a new Exec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Exec instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec): google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec;
+
+ /**
+ * Encodes the specified Exec message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.verify|verify} messages.
+ * @param message Exec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Exec message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.verify|verify} messages.
+ * @param message Exec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Exec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Exec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec;
+
+ /**
+ * Decodes an Exec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Exec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec;
+
+ /**
+ * Verifies an Exec message.
+ * @param message Plain 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 Exec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Exec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec;
+
+ /**
+ * Creates a plain object from an Exec message. Also converts values to other types if specified.
+ * @param message Exec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Exec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Exec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Exec {
+
+ /** Interpreter enum. */
+ enum Interpreter {
+ INTERPRETER_UNSPECIFIED = 0,
+ NONE = 1,
+ SHELL = 2,
+ POWERSHELL = 3
+ }
+ }
+ }
+
+ /** Properties of a FileResource. */
+ interface IFileResource {
+
+ /** FileResource file */
+ file?: (google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null);
+
+ /** FileResource content */
+ content?: (string|null);
+
+ /** FileResource path */
+ path?: (string|null);
+
+ /** FileResource state */
+ state?: (google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState|keyof typeof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState|null);
+
+ /** FileResource permissions */
+ permissions?: (string|null);
+ }
+
+ /** Represents a FileResource. */
+ class FileResource implements IFileResource {
+
+ /**
+ * Constructs a new FileResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.IFileResource);
+
+ /** FileResource file. */
+ public file?: (google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null);
+
+ /** FileResource content. */
+ public content?: (string|null);
+
+ /** FileResource path. */
+ public path: string;
+
+ /** FileResource state. */
+ public state: (google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState|keyof typeof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState);
+
+ /** FileResource permissions. */
+ public permissions: string;
+
+ /** FileResource source. */
+ public source?: ("file"|"content");
+
+ /**
+ * Creates a new FileResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileResource instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.Resource.IFileResource): google.cloud.osconfig.v1.OSPolicy.Resource.FileResource;
+
+ /**
+ * Encodes the specified FileResource message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.verify|verify} messages.
+ * @param message FileResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.Resource.IFileResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileResource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.verify|verify} messages.
+ * @param message FileResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.Resource.IFileResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.Resource.FileResource;
+
+ /**
+ * Decodes a FileResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.Resource.FileResource;
+
+ /**
+ * Verifies a FileResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.Resource.FileResource;
+
+ /**
+ * Creates a plain object from a FileResource message. Also converts values to other types if specified.
+ * @param message FileResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.Resource.FileResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileResource {
+
+ /** DesiredState enum. */
+ enum DesiredState {
+ DESIRED_STATE_UNSPECIFIED = 0,
+ PRESENT = 1,
+ ABSENT = 2,
+ CONTENTS_MATCH = 3
+ }
+ }
+ }
+
+ /** Properties of a ResourceGroup. */
+ interface IResourceGroup {
+
+ /** ResourceGroup inventoryFilters */
+ inventoryFilters?: (google.cloud.osconfig.v1.OSPolicy.IInventoryFilter[]|null);
+
+ /** ResourceGroup resources */
+ resources?: (google.cloud.osconfig.v1.OSPolicy.IResource[]|null);
+ }
+
+ /** Represents a ResourceGroup. */
+ class ResourceGroup implements IResourceGroup {
+
+ /**
+ * Constructs a new ResourceGroup.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicy.IResourceGroup);
+
+ /** ResourceGroup inventoryFilters. */
+ public inventoryFilters: google.cloud.osconfig.v1.OSPolicy.IInventoryFilter[];
+
+ /** ResourceGroup resources. */
+ public resources: google.cloud.osconfig.v1.OSPolicy.IResource[];
+
+ /**
+ * Creates a new ResourceGroup instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceGroup instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicy.IResourceGroup): google.cloud.osconfig.v1.OSPolicy.ResourceGroup;
+
+ /**
+ * Encodes the specified ResourceGroup message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.ResourceGroup.verify|verify} messages.
+ * @param message ResourceGroup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicy.IResourceGroup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceGroup message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.ResourceGroup.verify|verify} messages.
+ * @param message ResourceGroup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicy.IResourceGroup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceGroup message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicy.ResourceGroup;
+
+ /**
+ * Decodes a ResourceGroup message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicy.ResourceGroup;
+
+ /**
+ * Verifies a ResourceGroup message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceGroup message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceGroup
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicy.ResourceGroup;
+
+ /**
+ * Creates a plain object from a ResourceGroup message. Also converts values to other types if specified.
+ * @param message ResourceGroup
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicy.ResourceGroup, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceGroup to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceGroup
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GetOSPolicyAssignmentReportRequest. */
+ interface IGetOSPolicyAssignmentReportRequest {
+
+ /** GetOSPolicyAssignmentReportRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOSPolicyAssignmentReportRequest. */
+ class GetOSPolicyAssignmentReportRequest implements IGetOSPolicyAssignmentReportRequest {
+
+ /**
+ * Constructs a new GetOSPolicyAssignmentReportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IGetOSPolicyAssignmentReportRequest);
+
+ /** GetOSPolicyAssignmentReportRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOSPolicyAssignmentReportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOSPolicyAssignmentReportRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IGetOSPolicyAssignmentReportRequest): google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest;
+
+ /**
+ * Encodes the specified GetOSPolicyAssignmentReportRequest message. Does not implicitly {@link google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest.verify|verify} messages.
+ * @param message GetOSPolicyAssignmentReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IGetOSPolicyAssignmentReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOSPolicyAssignmentReportRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest.verify|verify} messages.
+ * @param message GetOSPolicyAssignmentReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IGetOSPolicyAssignmentReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOSPolicyAssignmentReportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOSPolicyAssignmentReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest;
+
+ /**
+ * Decodes a GetOSPolicyAssignmentReportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOSPolicyAssignmentReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest;
+
+ /**
+ * Verifies a GetOSPolicyAssignmentReportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOSPolicyAssignmentReportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOSPolicyAssignmentReportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest;
+
+ /**
+ * Creates a plain object from a GetOSPolicyAssignmentReportRequest message. Also converts values to other types if specified.
+ * @param message GetOSPolicyAssignmentReportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOSPolicyAssignmentReportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOSPolicyAssignmentReportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOSPolicyAssignmentReportsRequest. */
+ interface IListOSPolicyAssignmentReportsRequest {
+
+ /** ListOSPolicyAssignmentReportsRequest parent */
+ parent?: (string|null);
+
+ /** ListOSPolicyAssignmentReportsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOSPolicyAssignmentReportsRequest filter */
+ filter?: (string|null);
+
+ /** ListOSPolicyAssignmentReportsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOSPolicyAssignmentReportsRequest. */
+ class ListOSPolicyAssignmentReportsRequest implements IListOSPolicyAssignmentReportsRequest {
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentReportsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsRequest);
+
+ /** ListOSPolicyAssignmentReportsRequest parent. */
+ public parent: string;
+
+ /** ListOSPolicyAssignmentReportsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOSPolicyAssignmentReportsRequest filter. */
+ public filter: string;
+
+ /** ListOSPolicyAssignmentReportsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOSPolicyAssignmentReportsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOSPolicyAssignmentReportsRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsRequest): google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentReportsRequest message. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentReportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentReportsRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentReportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentReportsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOSPolicyAssignmentReportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentReportsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOSPolicyAssignmentReportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest;
+
+ /**
+ * Verifies a ListOSPolicyAssignmentReportsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOSPolicyAssignmentReportsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOSPolicyAssignmentReportsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest;
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentReportsRequest message. Also converts values to other types if specified.
+ * @param message ListOSPolicyAssignmentReportsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOSPolicyAssignmentReportsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentReportsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOSPolicyAssignmentReportsResponse. */
+ interface IListOSPolicyAssignmentReportsResponse {
+
+ /** ListOSPolicyAssignmentReportsResponse osPolicyAssignmentReports */
+ osPolicyAssignmentReports?: (google.cloud.osconfig.v1.IOSPolicyAssignmentReport[]|null);
+
+ /** ListOSPolicyAssignmentReportsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOSPolicyAssignmentReportsResponse. */
+ class ListOSPolicyAssignmentReportsResponse implements IListOSPolicyAssignmentReportsResponse {
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentReportsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsResponse);
+
+ /** ListOSPolicyAssignmentReportsResponse osPolicyAssignmentReports. */
+ public osPolicyAssignmentReports: google.cloud.osconfig.v1.IOSPolicyAssignmentReport[];
+
+ /** ListOSPolicyAssignmentReportsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOSPolicyAssignmentReportsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOSPolicyAssignmentReportsResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsResponse): google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentReportsResponse message. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentReportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentReportsResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentReportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentReportsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOSPolicyAssignmentReportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentReportsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOSPolicyAssignmentReportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse;
+
+ /**
+ * Verifies a ListOSPolicyAssignmentReportsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOSPolicyAssignmentReportsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOSPolicyAssignmentReportsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse;
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentReportsResponse message. Also converts values to other types if specified.
+ * @param message ListOSPolicyAssignmentReportsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOSPolicyAssignmentReportsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentReportsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a OSPolicyAssignmentReport. */
+ interface IOSPolicyAssignmentReport {
+
+ /** OSPolicyAssignmentReport name */
+ name?: (string|null);
+
+ /** OSPolicyAssignmentReport instance */
+ instance?: (string|null);
+
+ /** OSPolicyAssignmentReport osPolicyAssignment */
+ osPolicyAssignment?: (string|null);
+
+ /** OSPolicyAssignmentReport osPolicyCompliances */
+ osPolicyCompliances?: (google.cloud.osconfig.v1.OSPolicyAssignmentReport.IOSPolicyCompliance[]|null);
+
+ /** OSPolicyAssignmentReport updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OSPolicyAssignmentReport lastRunId */
+ lastRunId?: (string|null);
+ }
+
+ /** Represents a OSPolicyAssignmentReport. */
+ class OSPolicyAssignmentReport implements IOSPolicyAssignmentReport {
+
+ /**
+ * Constructs a new OSPolicyAssignmentReport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IOSPolicyAssignmentReport);
+
+ /** OSPolicyAssignmentReport name. */
+ public name: string;
+
+ /** OSPolicyAssignmentReport instance. */
+ public instance: string;
+
+ /** OSPolicyAssignmentReport osPolicyAssignment. */
+ public osPolicyAssignment: string;
+
+ /** OSPolicyAssignmentReport osPolicyCompliances. */
+ public osPolicyCompliances: google.cloud.osconfig.v1.OSPolicyAssignmentReport.IOSPolicyCompliance[];
+
+ /** OSPolicyAssignmentReport updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OSPolicyAssignmentReport lastRunId. */
+ public lastRunId: string;
+
+ /**
+ * Creates a new OSPolicyAssignmentReport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyAssignmentReport instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IOSPolicyAssignmentReport): google.cloud.osconfig.v1.OSPolicyAssignmentReport;
+
+ /**
+ * Encodes the specified OSPolicyAssignmentReport message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.verify|verify} messages.
+ * @param message OSPolicyAssignmentReport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IOSPolicyAssignmentReport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyAssignmentReport message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.verify|verify} messages.
+ * @param message OSPolicyAssignmentReport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IOSPolicyAssignmentReport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyAssignmentReport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyAssignmentReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicyAssignmentReport;
+
+ /**
+ * Decodes a OSPolicyAssignmentReport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyAssignmentReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicyAssignmentReport;
+
+ /**
+ * Verifies a OSPolicyAssignmentReport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyAssignmentReport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyAssignmentReport
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicyAssignmentReport;
+
+ /**
+ * Creates a plain object from a OSPolicyAssignmentReport message. Also converts values to other types if specified.
+ * @param message OSPolicyAssignmentReport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyAssignmentReport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyAssignmentReport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyAssignmentReport {
+
+ /** Properties of a OSPolicyCompliance. */
+ interface IOSPolicyCompliance {
+
+ /** OSPolicyCompliance osPolicyId */
+ osPolicyId?: (string|null);
+
+ /** OSPolicyCompliance complianceState */
+ complianceState?: (google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState|keyof typeof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState|null);
+
+ /** OSPolicyCompliance complianceStateReason */
+ complianceStateReason?: (string|null);
+
+ /** OSPolicyCompliance osPolicyResourceCompliances */
+ osPolicyResourceCompliances?: (google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance[]|null);
+ }
+
+ /** Represents a OSPolicyCompliance. */
+ class OSPolicyCompliance implements IOSPolicyCompliance {
+
+ /**
+ * Constructs a new OSPolicyCompliance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicyAssignmentReport.IOSPolicyCompliance);
+
+ /** OSPolicyCompliance osPolicyId. */
+ public osPolicyId: string;
+
+ /** OSPolicyCompliance complianceState. */
+ public complianceState: (google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState|keyof typeof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState);
+
+ /** OSPolicyCompliance complianceStateReason. */
+ public complianceStateReason: string;
+
+ /** OSPolicyCompliance osPolicyResourceCompliances. */
+ public osPolicyResourceCompliances: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance[];
+
+ /**
+ * Creates a new OSPolicyCompliance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyCompliance instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicyAssignmentReport.IOSPolicyCompliance): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance;
+
+ /**
+ * Encodes the specified OSPolicyCompliance message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.verify|verify} messages.
+ * @param message OSPolicyCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport.IOSPolicyCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyCompliance message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.verify|verify} messages.
+ * @param message OSPolicyCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport.IOSPolicyCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyCompliance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance;
+
+ /**
+ * Decodes a OSPolicyCompliance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance;
+
+ /**
+ * Verifies a OSPolicyCompliance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyCompliance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyCompliance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance;
+
+ /**
+ * Creates a plain object from a OSPolicyCompliance message. Also converts values to other types if specified.
+ * @param message OSPolicyCompliance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyCompliance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyCompliance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyCompliance {
+
+ /** ComplianceState enum. */
+ enum ComplianceState {
+ UNKNOWN = 0,
+ COMPLIANT = 1,
+ NON_COMPLIANT = 2
+ }
+
+ /** Properties of a OSPolicyResourceCompliance. */
+ interface IOSPolicyResourceCompliance {
+
+ /** OSPolicyResourceCompliance osPolicyResourceId */
+ osPolicyResourceId?: (string|null);
+
+ /** OSPolicyResourceCompliance configSteps */
+ configSteps?: (google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep[]|null);
+
+ /** OSPolicyResourceCompliance complianceState */
+ complianceState?: (google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState|keyof typeof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState|null);
+
+ /** OSPolicyResourceCompliance complianceStateReason */
+ complianceStateReason?: (string|null);
+
+ /** OSPolicyResourceCompliance execResourceOutput */
+ execResourceOutput?: (google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput|null);
+ }
+
+ /** Represents a OSPolicyResourceCompliance. */
+ class OSPolicyResourceCompliance implements IOSPolicyResourceCompliance {
+
+ /**
+ * Constructs a new OSPolicyResourceCompliance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance);
+
+ /** OSPolicyResourceCompliance osPolicyResourceId. */
+ public osPolicyResourceId: string;
+
+ /** OSPolicyResourceCompliance configSteps. */
+ public configSteps: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep[];
+
+ /** OSPolicyResourceCompliance complianceState. */
+ public complianceState: (google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState|keyof typeof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState);
+
+ /** OSPolicyResourceCompliance complianceStateReason. */
+ public complianceStateReason: string;
+
+ /** OSPolicyResourceCompliance execResourceOutput. */
+ public execResourceOutput?: (google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput|null);
+
+ /** OSPolicyResourceCompliance output. */
+ public output?: "execResourceOutput";
+
+ /**
+ * Creates a new OSPolicyResourceCompliance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyResourceCompliance instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance;
+
+ /**
+ * Encodes the specified OSPolicyResourceCompliance message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.verify|verify} messages.
+ * @param message OSPolicyResourceCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyResourceCompliance message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.verify|verify} messages.
+ * @param message OSPolicyResourceCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyResourceCompliance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyResourceCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance;
+
+ /**
+ * Decodes a OSPolicyResourceCompliance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyResourceCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance;
+
+ /**
+ * Verifies a OSPolicyResourceCompliance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyResourceCompliance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyResourceCompliance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance;
+
+ /**
+ * Creates a plain object from a OSPolicyResourceCompliance message. Also converts values to other types if specified.
+ * @param message OSPolicyResourceCompliance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyResourceCompliance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyResourceCompliance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyResourceCompliance {
+
+ /** Properties of a OSPolicyResourceConfigStep. */
+ interface IOSPolicyResourceConfigStep {
+
+ /** OSPolicyResourceConfigStep type */
+ type?: (google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type|keyof typeof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type|null);
+
+ /** OSPolicyResourceConfigStep errorMessage */
+ errorMessage?: (string|null);
+ }
+
+ /** Represents a OSPolicyResourceConfigStep. */
+ class OSPolicyResourceConfigStep implements IOSPolicyResourceConfigStep {
+
+ /**
+ * Constructs a new OSPolicyResourceConfigStep.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep);
+
+ /** OSPolicyResourceConfigStep type. */
+ public type: (google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type|keyof typeof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type);
+
+ /** OSPolicyResourceConfigStep errorMessage. */
+ public errorMessage: string;
+
+ /**
+ * Creates a new OSPolicyResourceConfigStep instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyResourceConfigStep instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep;
+
+ /**
+ * Encodes the specified OSPolicyResourceConfigStep message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.verify|verify} messages.
+ * @param message OSPolicyResourceConfigStep message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyResourceConfigStep message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.verify|verify} messages.
+ * @param message OSPolicyResourceConfigStep message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyResourceConfigStep message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyResourceConfigStep
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep;
+
+ /**
+ * Decodes a OSPolicyResourceConfigStep message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyResourceConfigStep
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep;
+
+ /**
+ * Verifies a OSPolicyResourceConfigStep message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyResourceConfigStep message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyResourceConfigStep
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep;
+
+ /**
+ * Creates a plain object from a OSPolicyResourceConfigStep message. Also converts values to other types if specified.
+ * @param message OSPolicyResourceConfigStep
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyResourceConfigStep to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyResourceConfigStep
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyResourceConfigStep {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ VALIDATION = 1,
+ DESIRED_STATE_CHECK = 2,
+ DESIRED_STATE_ENFORCEMENT = 3,
+ DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4
+ }
+ }
+
+ /** ComplianceState enum. */
+ enum ComplianceState {
+ UNKNOWN = 0,
+ COMPLIANT = 1,
+ NON_COMPLIANT = 2
+ }
+
+ /** Properties of an ExecResourceOutput. */
+ interface IExecResourceOutput {
+
+ /** ExecResourceOutput enforcementOutput */
+ enforcementOutput?: (Uint8Array|string|null);
+ }
+
+ /** Represents an ExecResourceOutput. */
+ class ExecResourceOutput implements IExecResourceOutput {
+
+ /**
+ * Constructs a new ExecResourceOutput.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput);
+
+ /** ExecResourceOutput enforcementOutput. */
+ public enforcementOutput: (Uint8Array|string);
+
+ /**
+ * Creates a new ExecResourceOutput instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExecResourceOutput instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput;
+
+ /**
+ * Encodes the specified ExecResourceOutput message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput.verify|verify} messages.
+ * @param message ExecResourceOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExecResourceOutput message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput.verify|verify} messages.
+ * @param message ExecResourceOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExecResourceOutput message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExecResourceOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput;
+
+ /**
+ * Decodes an ExecResourceOutput message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExecResourceOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput;
+
+ /**
+ * Verifies an ExecResourceOutput message.
+ * @param message Plain 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 ExecResourceOutput message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExecResourceOutput
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput;
+
+ /**
+ * Creates a plain object from an ExecResourceOutput message. Also converts values to other types if specified.
+ * @param message ExecResourceOutput
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExecResourceOutput to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExecResourceOutput
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+
+ /** Properties of a OSPolicyAssignment. */
+ interface IOSPolicyAssignment {
+
+ /** OSPolicyAssignment name */
+ name?: (string|null);
+
+ /** OSPolicyAssignment description */
+ description?: (string|null);
+
+ /** OSPolicyAssignment osPolicies */
+ osPolicies?: (google.cloud.osconfig.v1.IOSPolicy[]|null);
+
+ /** OSPolicyAssignment instanceFilter */
+ instanceFilter?: (google.cloud.osconfig.v1.OSPolicyAssignment.IInstanceFilter|null);
+
+ /** OSPolicyAssignment rollout */
+ rollout?: (google.cloud.osconfig.v1.OSPolicyAssignment.IRollout|null);
+
+ /** OSPolicyAssignment revisionId */
+ revisionId?: (string|null);
+
+ /** OSPolicyAssignment revisionCreateTime */
+ revisionCreateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OSPolicyAssignment etag */
+ etag?: (string|null);
+
+ /** OSPolicyAssignment rolloutState */
+ rolloutState?: (google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState|keyof typeof google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState|null);
+
+ /** OSPolicyAssignment baseline */
+ baseline?: (boolean|null);
+
+ /** OSPolicyAssignment deleted */
+ deleted?: (boolean|null);
+
+ /** OSPolicyAssignment reconciling */
+ reconciling?: (boolean|null);
+
+ /** OSPolicyAssignment uid */
+ uid?: (string|null);
+ }
+
+ /** Represents a OSPolicyAssignment. */
+ class OSPolicyAssignment implements IOSPolicyAssignment {
+
+ /**
+ * Constructs a new OSPolicyAssignment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IOSPolicyAssignment);
+
+ /** OSPolicyAssignment name. */
+ public name: string;
+
+ /** OSPolicyAssignment description. */
+ public description: string;
+
+ /** OSPolicyAssignment osPolicies. */
+ public osPolicies: google.cloud.osconfig.v1.IOSPolicy[];
+
+ /** OSPolicyAssignment instanceFilter. */
+ public instanceFilter?: (google.cloud.osconfig.v1.OSPolicyAssignment.IInstanceFilter|null);
+
+ /** OSPolicyAssignment rollout. */
+ public rollout?: (google.cloud.osconfig.v1.OSPolicyAssignment.IRollout|null);
+
+ /** OSPolicyAssignment revisionId. */
+ public revisionId: string;
+
+ /** OSPolicyAssignment revisionCreateTime. */
+ public revisionCreateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OSPolicyAssignment etag. */
+ public etag: string;
+
+ /** OSPolicyAssignment rolloutState. */
+ public rolloutState: (google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState|keyof typeof google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState);
+
+ /** OSPolicyAssignment baseline. */
+ public baseline: boolean;
+
+ /** OSPolicyAssignment deleted. */
+ public deleted: boolean;
+
+ /** OSPolicyAssignment reconciling. */
+ public reconciling: boolean;
+
+ /** OSPolicyAssignment uid. */
+ public uid: string;
+
+ /**
+ * Creates a new OSPolicyAssignment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyAssignment instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IOSPolicyAssignment): google.cloud.osconfig.v1.OSPolicyAssignment;
+
+ /**
+ * Encodes the specified OSPolicyAssignment message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignment.verify|verify} messages.
+ * @param message OSPolicyAssignment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IOSPolicyAssignment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyAssignment message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignment.verify|verify} messages.
+ * @param message OSPolicyAssignment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IOSPolicyAssignment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyAssignment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyAssignment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicyAssignment;
+
+ /**
+ * Decodes a OSPolicyAssignment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyAssignment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicyAssignment;
+
+ /**
+ * Verifies a OSPolicyAssignment message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyAssignment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyAssignment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicyAssignment;
+
+ /**
+ * Creates a plain object from a OSPolicyAssignment message. Also converts values to other types if specified.
+ * @param message OSPolicyAssignment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicyAssignment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyAssignment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyAssignment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyAssignment {
+
+ /** Properties of a LabelSet. */
+ interface ILabelSet {
+
+ /** LabelSet labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a LabelSet. */
+ class LabelSet implements ILabelSet {
+
+ /**
+ * Constructs a new LabelSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicyAssignment.ILabelSet);
+
+ /** LabelSet labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new LabelSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelSet instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicyAssignment.ILabelSet): google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet;
+
+ /**
+ * Encodes the specified LabelSet message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet.verify|verify} messages.
+ * @param message LabelSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicyAssignment.ILabelSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelSet message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet.verify|verify} messages.
+ * @param message LabelSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicyAssignment.ILabelSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet;
+
+ /**
+ * Decodes a LabelSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet;
+
+ /**
+ * Verifies a LabelSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet;
+
+ /**
+ * Creates a plain object from a LabelSet message. Also converts values to other types if specified.
+ * @param message LabelSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an InstanceFilter. */
+ interface IInstanceFilter {
+
+ /** InstanceFilter all */
+ all?: (boolean|null);
+
+ /** InstanceFilter inclusionLabels */
+ inclusionLabels?: (google.cloud.osconfig.v1.OSPolicyAssignment.ILabelSet[]|null);
+
+ /** InstanceFilter exclusionLabels */
+ exclusionLabels?: (google.cloud.osconfig.v1.OSPolicyAssignment.ILabelSet[]|null);
+
+ /** InstanceFilter inventories */
+ inventories?: (google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.IInventory[]|null);
+ }
+
+ /** Represents an InstanceFilter. */
+ class InstanceFilter implements IInstanceFilter {
+
+ /**
+ * Constructs a new InstanceFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicyAssignment.IInstanceFilter);
+
+ /** InstanceFilter all. */
+ public all: boolean;
+
+ /** InstanceFilter inclusionLabels. */
+ public inclusionLabels: google.cloud.osconfig.v1.OSPolicyAssignment.ILabelSet[];
+
+ /** InstanceFilter exclusionLabels. */
+ public exclusionLabels: google.cloud.osconfig.v1.OSPolicyAssignment.ILabelSet[];
+
+ /** InstanceFilter inventories. */
+ public inventories: google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.IInventory[];
+
+ /**
+ * Creates a new InstanceFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InstanceFilter instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicyAssignment.IInstanceFilter): google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter;
+
+ /**
+ * Encodes the specified InstanceFilter message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.verify|verify} messages.
+ * @param message InstanceFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicyAssignment.IInstanceFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InstanceFilter message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.verify|verify} messages.
+ * @param message InstanceFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicyAssignment.IInstanceFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InstanceFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InstanceFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter;
+
+ /**
+ * Decodes an InstanceFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InstanceFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter;
+
+ /**
+ * Verifies an InstanceFilter message.
+ * @param message Plain 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 InstanceFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InstanceFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter;
+
+ /**
+ * Creates a plain object from an InstanceFilter message. Also converts values to other types if specified.
+ * @param message InstanceFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InstanceFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InstanceFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace InstanceFilter {
+
+ /** Properties of an Inventory. */
+ interface IInventory {
+
+ /** Inventory osShortName */
+ osShortName?: (string|null);
+
+ /** Inventory osVersion */
+ osVersion?: (string|null);
+ }
+
+ /** Represents an Inventory. */
+ class Inventory implements IInventory {
+
+ /**
+ * Constructs a new Inventory.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.IInventory);
+
+ /** Inventory osShortName. */
+ public osShortName: string;
+
+ /** Inventory osVersion. */
+ public osVersion: string;
+
+ /**
+ * Creates a new Inventory instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Inventory instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.IInventory): google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory;
+
+ /**
+ * Encodes the specified Inventory message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory.verify|verify} messages.
+ * @param message Inventory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.IInventory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Inventory message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory.verify|verify} messages.
+ * @param message Inventory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.IInventory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Inventory message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Inventory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory;
+
+ /**
+ * Decodes an Inventory message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Inventory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory;
+
+ /**
+ * Verifies an Inventory message.
+ * @param message Plain 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 Inventory message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Inventory
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory;
+
+ /**
+ * Creates a plain object from an Inventory message. Also converts values to other types if specified.
+ * @param message Inventory
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Inventory to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Inventory
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Rollout. */
+ interface IRollout {
+
+ /** Rollout disruptionBudget */
+ disruptionBudget?: (google.cloud.osconfig.v1.IFixedOrPercent|null);
+
+ /** Rollout minWaitDuration */
+ minWaitDuration?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a Rollout. */
+ class Rollout implements IRollout {
+
+ /**
+ * Constructs a new Rollout.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.OSPolicyAssignment.IRollout);
+
+ /** Rollout disruptionBudget. */
+ public disruptionBudget?: (google.cloud.osconfig.v1.IFixedOrPercent|null);
+
+ /** Rollout minWaitDuration. */
+ public minWaitDuration?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new Rollout instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Rollout instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.OSPolicyAssignment.IRollout): google.cloud.osconfig.v1.OSPolicyAssignment.Rollout;
+
+ /**
+ * Encodes the specified Rollout message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignment.Rollout.verify|verify} messages.
+ * @param message Rollout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.OSPolicyAssignment.IRollout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Rollout message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignment.Rollout.verify|verify} messages.
+ * @param message Rollout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.OSPolicyAssignment.IRollout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Rollout message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Rollout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicyAssignment.Rollout;
+
+ /**
+ * Decodes a Rollout message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Rollout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicyAssignment.Rollout;
+
+ /**
+ * Verifies a Rollout message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Rollout message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Rollout
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicyAssignment.Rollout;
+
+ /**
+ * Creates a plain object from a Rollout message. Also converts values to other types if specified.
+ * @param message Rollout
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicyAssignment.Rollout, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Rollout to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Rollout
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** RolloutState enum. */
+ enum RolloutState {
+ ROLLOUT_STATE_UNSPECIFIED = 0,
+ IN_PROGRESS = 1,
+ CANCELLING = 2,
+ CANCELLED = 3,
+ SUCCEEDED = 4
+ }
+ }
+
+ /** Properties of a OSPolicyAssignmentOperationMetadata. */
+ interface IOSPolicyAssignmentOperationMetadata {
+
+ /** OSPolicyAssignmentOperationMetadata osPolicyAssignment */
+ osPolicyAssignment?: (string|null);
+
+ /** OSPolicyAssignmentOperationMetadata apiMethod */
+ apiMethod?: (google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod|keyof typeof google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod|null);
+
+ /** OSPolicyAssignmentOperationMetadata rolloutState */
+ rolloutState?: (google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState|keyof typeof google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState|null);
+
+ /** OSPolicyAssignmentOperationMetadata rolloutStartTime */
+ rolloutStartTime?: (google.protobuf.ITimestamp|null);
+
+ /** OSPolicyAssignmentOperationMetadata rolloutUpdateTime */
+ rolloutUpdateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a OSPolicyAssignmentOperationMetadata. */
+ class OSPolicyAssignmentOperationMetadata implements IOSPolicyAssignmentOperationMetadata {
+
+ /**
+ * Constructs a new OSPolicyAssignmentOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IOSPolicyAssignmentOperationMetadata);
+
+ /** OSPolicyAssignmentOperationMetadata osPolicyAssignment. */
+ public osPolicyAssignment: string;
+
+ /** OSPolicyAssignmentOperationMetadata apiMethod. */
+ public apiMethod: (google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod|keyof typeof google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod);
+
+ /** OSPolicyAssignmentOperationMetadata rolloutState. */
+ public rolloutState: (google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState|keyof typeof google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState);
+
+ /** OSPolicyAssignmentOperationMetadata rolloutStartTime. */
+ public rolloutStartTime?: (google.protobuf.ITimestamp|null);
+
+ /** OSPolicyAssignmentOperationMetadata rolloutUpdateTime. */
+ public rolloutUpdateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new OSPolicyAssignmentOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyAssignmentOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IOSPolicyAssignmentOperationMetadata): google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata;
+
+ /**
+ * Encodes the specified OSPolicyAssignmentOperationMetadata message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.verify|verify} messages.
+ * @param message OSPolicyAssignmentOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IOSPolicyAssignmentOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyAssignmentOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.verify|verify} messages.
+ * @param message OSPolicyAssignmentOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IOSPolicyAssignmentOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyAssignmentOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyAssignmentOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata;
+
+ /**
+ * Decodes a OSPolicyAssignmentOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyAssignmentOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata;
+
+ /**
+ * Verifies a OSPolicyAssignmentOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyAssignmentOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyAssignmentOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata;
+
+ /**
+ * Creates a plain object from a OSPolicyAssignmentOperationMetadata message. Also converts values to other types if specified.
+ * @param message OSPolicyAssignmentOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyAssignmentOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyAssignmentOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyAssignmentOperationMetadata {
+
+ /** APIMethod enum. */
+ enum APIMethod {
+ API_METHOD_UNSPECIFIED = 0,
+ CREATE = 1,
+ UPDATE = 2,
+ DELETE = 3
+ }
+
+ /** RolloutState enum. */
+ enum RolloutState {
+ ROLLOUT_STATE_UNSPECIFIED = 0,
+ IN_PROGRESS = 1,
+ CANCELLING = 2,
+ CANCELLED = 3,
+ SUCCEEDED = 4
+ }
+ }
+
+ /** Properties of a CreateOSPolicyAssignmentRequest. */
+ interface ICreateOSPolicyAssignmentRequest {
+
+ /** CreateOSPolicyAssignmentRequest parent */
+ parent?: (string|null);
+
+ /** CreateOSPolicyAssignmentRequest osPolicyAssignment */
+ osPolicyAssignment?: (google.cloud.osconfig.v1.IOSPolicyAssignment|null);
+
+ /** CreateOSPolicyAssignmentRequest osPolicyAssignmentId */
+ osPolicyAssignmentId?: (string|null);
+ }
+
+ /** Represents a CreateOSPolicyAssignmentRequest. */
+ class CreateOSPolicyAssignmentRequest implements ICreateOSPolicyAssignmentRequest {
+
+ /**
+ * Constructs a new CreateOSPolicyAssignmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.ICreateOSPolicyAssignmentRequest);
+
+ /** CreateOSPolicyAssignmentRequest parent. */
+ public parent: string;
+
+ /** CreateOSPolicyAssignmentRequest osPolicyAssignment. */
+ public osPolicyAssignment?: (google.cloud.osconfig.v1.IOSPolicyAssignment|null);
+
+ /** CreateOSPolicyAssignmentRequest osPolicyAssignmentId. */
+ public osPolicyAssignmentId: string;
+
+ /**
+ * Creates a new CreateOSPolicyAssignmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateOSPolicyAssignmentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.ICreateOSPolicyAssignmentRequest): google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest;
+
+ /**
+ * Encodes the specified CreateOSPolicyAssignmentRequest message. Does not implicitly {@link google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message CreateOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.ICreateOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateOSPolicyAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message CreateOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.ICreateOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateOSPolicyAssignmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest;
+
+ /**
+ * Decodes a CreateOSPolicyAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest;
+
+ /**
+ * Verifies a CreateOSPolicyAssignmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateOSPolicyAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateOSPolicyAssignmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest;
+
+ /**
+ * Creates a plain object from a CreateOSPolicyAssignmentRequest message. Also converts values to other types if specified.
+ * @param message CreateOSPolicyAssignmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateOSPolicyAssignmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateOSPolicyAssignmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateOSPolicyAssignmentRequest. */
+ interface IUpdateOSPolicyAssignmentRequest {
+
+ /** UpdateOSPolicyAssignmentRequest osPolicyAssignment */
+ osPolicyAssignment?: (google.cloud.osconfig.v1.IOSPolicyAssignment|null);
+
+ /** UpdateOSPolicyAssignmentRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateOSPolicyAssignmentRequest. */
+ class UpdateOSPolicyAssignmentRequest implements IUpdateOSPolicyAssignmentRequest {
+
+ /**
+ * Constructs a new UpdateOSPolicyAssignmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IUpdateOSPolicyAssignmentRequest);
+
+ /** UpdateOSPolicyAssignmentRequest osPolicyAssignment. */
+ public osPolicyAssignment?: (google.cloud.osconfig.v1.IOSPolicyAssignment|null);
+
+ /** UpdateOSPolicyAssignmentRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateOSPolicyAssignmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateOSPolicyAssignmentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IUpdateOSPolicyAssignmentRequest): google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest;
+
+ /**
+ * Encodes the specified UpdateOSPolicyAssignmentRequest message. Does not implicitly {@link google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message UpdateOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IUpdateOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateOSPolicyAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message UpdateOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IUpdateOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateOSPolicyAssignmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest;
+
+ /**
+ * Decodes an UpdateOSPolicyAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest;
+
+ /**
+ * Verifies an UpdateOSPolicyAssignmentRequest message.
+ * @param message Plain 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 UpdateOSPolicyAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateOSPolicyAssignmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest;
+
+ /**
+ * Creates a plain object from an UpdateOSPolicyAssignmentRequest message. Also converts values to other types if specified.
+ * @param message UpdateOSPolicyAssignmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateOSPolicyAssignmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateOSPolicyAssignmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOSPolicyAssignmentRequest. */
+ interface IGetOSPolicyAssignmentRequest {
+
+ /** GetOSPolicyAssignmentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOSPolicyAssignmentRequest. */
+ class GetOSPolicyAssignmentRequest implements IGetOSPolicyAssignmentRequest {
+
+ /**
+ * Constructs a new GetOSPolicyAssignmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IGetOSPolicyAssignmentRequest);
+
+ /** GetOSPolicyAssignmentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOSPolicyAssignmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOSPolicyAssignmentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IGetOSPolicyAssignmentRequest): google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest;
+
+ /**
+ * Encodes the specified GetOSPolicyAssignmentRequest message. Does not implicitly {@link google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message GetOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IGetOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOSPolicyAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message GetOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IGetOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOSPolicyAssignmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest;
+
+ /**
+ * Decodes a GetOSPolicyAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest;
+
+ /**
+ * Verifies a GetOSPolicyAssignmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOSPolicyAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOSPolicyAssignmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest;
+
+ /**
+ * Creates a plain object from a GetOSPolicyAssignmentRequest message. Also converts values to other types if specified.
+ * @param message GetOSPolicyAssignmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOSPolicyAssignmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOSPolicyAssignmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOSPolicyAssignmentsRequest. */
+ interface IListOSPolicyAssignmentsRequest {
+
+ /** ListOSPolicyAssignmentsRequest parent */
+ parent?: (string|null);
+
+ /** ListOSPolicyAssignmentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOSPolicyAssignmentsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOSPolicyAssignmentsRequest. */
+ class ListOSPolicyAssignmentsRequest implements IListOSPolicyAssignmentsRequest {
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListOSPolicyAssignmentsRequest);
+
+ /** ListOSPolicyAssignmentsRequest parent. */
+ public parent: string;
+
+ /** ListOSPolicyAssignmentsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOSPolicyAssignmentsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOSPolicyAssignmentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOSPolicyAssignmentsRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListOSPolicyAssignmentsRequest): google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentsRequest message. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListOSPolicyAssignmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentsRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListOSPolicyAssignmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOSPolicyAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOSPolicyAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest;
+
+ /**
+ * Verifies a ListOSPolicyAssignmentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOSPolicyAssignmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOSPolicyAssignmentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest;
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentsRequest message. Also converts values to other types if specified.
+ * @param message ListOSPolicyAssignmentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOSPolicyAssignmentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOSPolicyAssignmentsResponse. */
+ interface IListOSPolicyAssignmentsResponse {
+
+ /** ListOSPolicyAssignmentsResponse osPolicyAssignments */
+ osPolicyAssignments?: (google.cloud.osconfig.v1.IOSPolicyAssignment[]|null);
+
+ /** ListOSPolicyAssignmentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOSPolicyAssignmentsResponse. */
+ class ListOSPolicyAssignmentsResponse implements IListOSPolicyAssignmentsResponse {
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListOSPolicyAssignmentsResponse);
+
+ /** ListOSPolicyAssignmentsResponse osPolicyAssignments. */
+ public osPolicyAssignments: google.cloud.osconfig.v1.IOSPolicyAssignment[];
+
+ /** ListOSPolicyAssignmentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOSPolicyAssignmentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOSPolicyAssignmentsResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListOSPolicyAssignmentsResponse): google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentsResponse message. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListOSPolicyAssignmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentsResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListOSPolicyAssignmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOSPolicyAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOSPolicyAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse;
+
+ /**
+ * Verifies a ListOSPolicyAssignmentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOSPolicyAssignmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOSPolicyAssignmentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse;
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentsResponse message. Also converts values to other types if specified.
+ * @param message ListOSPolicyAssignmentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOSPolicyAssignmentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOSPolicyAssignmentRevisionsRequest. */
+ interface IListOSPolicyAssignmentRevisionsRequest {
+
+ /** ListOSPolicyAssignmentRevisionsRequest name */
+ name?: (string|null);
+
+ /** ListOSPolicyAssignmentRevisionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOSPolicyAssignmentRevisionsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOSPolicyAssignmentRevisionsRequest. */
+ class ListOSPolicyAssignmentRevisionsRequest implements IListOSPolicyAssignmentRevisionsRequest {
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentRevisionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListOSPolicyAssignmentRevisionsRequest);
+
+ /** ListOSPolicyAssignmentRevisionsRequest name. */
+ public name: string;
+
+ /** ListOSPolicyAssignmentRevisionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOSPolicyAssignmentRevisionsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOSPolicyAssignmentRevisionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOSPolicyAssignmentRevisionsRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListOSPolicyAssignmentRevisionsRequest): google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentRevisionsRequest message. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentRevisionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListOSPolicyAssignmentRevisionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentRevisionsRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentRevisionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListOSPolicyAssignmentRevisionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentRevisionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOSPolicyAssignmentRevisionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentRevisionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOSPolicyAssignmentRevisionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest;
+
+ /**
+ * Verifies a ListOSPolicyAssignmentRevisionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOSPolicyAssignmentRevisionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOSPolicyAssignmentRevisionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest;
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentRevisionsRequest message. Also converts values to other types if specified.
+ * @param message ListOSPolicyAssignmentRevisionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOSPolicyAssignmentRevisionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentRevisionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOSPolicyAssignmentRevisionsResponse. */
+ interface IListOSPolicyAssignmentRevisionsResponse {
+
+ /** ListOSPolicyAssignmentRevisionsResponse osPolicyAssignments */
+ osPolicyAssignments?: (google.cloud.osconfig.v1.IOSPolicyAssignment[]|null);
+
+ /** ListOSPolicyAssignmentRevisionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOSPolicyAssignmentRevisionsResponse. */
+ class ListOSPolicyAssignmentRevisionsResponse implements IListOSPolicyAssignmentRevisionsResponse {
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentRevisionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListOSPolicyAssignmentRevisionsResponse);
+
+ /** ListOSPolicyAssignmentRevisionsResponse osPolicyAssignments. */
+ public osPolicyAssignments: google.cloud.osconfig.v1.IOSPolicyAssignment[];
+
+ /** ListOSPolicyAssignmentRevisionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOSPolicyAssignmentRevisionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOSPolicyAssignmentRevisionsResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListOSPolicyAssignmentRevisionsResponse): google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentRevisionsResponse message. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentRevisionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListOSPolicyAssignmentRevisionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentRevisionsResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentRevisionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListOSPolicyAssignmentRevisionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentRevisionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOSPolicyAssignmentRevisionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentRevisionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOSPolicyAssignmentRevisionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse;
+
+ /**
+ * Verifies a ListOSPolicyAssignmentRevisionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOSPolicyAssignmentRevisionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOSPolicyAssignmentRevisionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse;
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentRevisionsResponse message. Also converts values to other types if specified.
+ * @param message ListOSPolicyAssignmentRevisionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOSPolicyAssignmentRevisionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentRevisionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOSPolicyAssignmentRequest. */
+ interface IDeleteOSPolicyAssignmentRequest {
+
+ /** DeleteOSPolicyAssignmentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOSPolicyAssignmentRequest. */
+ class DeleteOSPolicyAssignmentRequest implements IDeleteOSPolicyAssignmentRequest {
+
+ /**
+ * Constructs a new DeleteOSPolicyAssignmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IDeleteOSPolicyAssignmentRequest);
+
+ /** DeleteOSPolicyAssignmentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOSPolicyAssignmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOSPolicyAssignmentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IDeleteOSPolicyAssignmentRequest): google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest;
+
+ /**
+ * Encodes the specified DeleteOSPolicyAssignmentRequest message. Does not implicitly {@link google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message DeleteOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IDeleteOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOSPolicyAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message DeleteOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IDeleteOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOSPolicyAssignmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest;
+
+ /**
+ * Decodes a DeleteOSPolicyAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest;
+
+ /**
+ * Verifies a DeleteOSPolicyAssignmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteOSPolicyAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOSPolicyAssignmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest;
+
+ /**
+ * Creates a plain object from a DeleteOSPolicyAssignmentRequest message. Also converts values to other types if specified.
+ * @param message DeleteOSPolicyAssignmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOSPolicyAssignmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOSPolicyAssignmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FixedOrPercent. */
+ interface IFixedOrPercent {
+
+ /** FixedOrPercent fixed */
+ fixed?: (number|null);
+
+ /** FixedOrPercent percent */
+ percent?: (number|null);
+ }
+
+ /** Represents a FixedOrPercent. */
+ class FixedOrPercent implements IFixedOrPercent {
+
+ /**
+ * Constructs a new FixedOrPercent.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IFixedOrPercent);
+
+ /** FixedOrPercent fixed. */
+ public fixed?: (number|null);
+
+ /** FixedOrPercent percent. */
+ public percent?: (number|null);
+
+ /** FixedOrPercent mode. */
+ public mode?: ("fixed"|"percent");
+
+ /**
+ * Creates a new FixedOrPercent instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FixedOrPercent instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IFixedOrPercent): google.cloud.osconfig.v1.FixedOrPercent;
+
+ /**
+ * Encodes the specified FixedOrPercent message. Does not implicitly {@link google.cloud.osconfig.v1.FixedOrPercent.verify|verify} messages.
+ * @param message FixedOrPercent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IFixedOrPercent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FixedOrPercent message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.FixedOrPercent.verify|verify} messages.
+ * @param message FixedOrPercent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IFixedOrPercent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FixedOrPercent message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FixedOrPercent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.FixedOrPercent;
+
+ /**
+ * Decodes a FixedOrPercent message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FixedOrPercent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.FixedOrPercent;
+
+ /**
+ * Verifies a FixedOrPercent message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FixedOrPercent message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FixedOrPercent
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.FixedOrPercent;
+
+ /**
+ * Creates a plain object from a FixedOrPercent message. Also converts values to other types if specified.
+ * @param message FixedOrPercent
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.FixedOrPercent, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FixedOrPercent to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FixedOrPercent
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents an OsConfigService */
+ class OsConfigService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new OsConfigService 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 OsConfigService 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): OsConfigService;
+
+ /**
+ * Calls ExecutePatchJob.
+ * @param request ExecutePatchJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PatchJob
+ */
+ public executePatchJob(request: google.cloud.osconfig.v1.IExecutePatchJobRequest, callback: google.cloud.osconfig.v1.OsConfigService.ExecutePatchJobCallback): void;
+
+ /**
+ * Calls ExecutePatchJob.
+ * @param request ExecutePatchJobRequest message or plain object
+ * @returns Promise
+ */
+ public executePatchJob(request: google.cloud.osconfig.v1.IExecutePatchJobRequest): Promise;
+
+ /**
+ * Calls GetPatchJob.
+ * @param request GetPatchJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PatchJob
+ */
+ public getPatchJob(request: google.cloud.osconfig.v1.IGetPatchJobRequest, callback: google.cloud.osconfig.v1.OsConfigService.GetPatchJobCallback): void;
+
+ /**
+ * Calls GetPatchJob.
+ * @param request GetPatchJobRequest message or plain object
+ * @returns Promise
+ */
+ public getPatchJob(request: google.cloud.osconfig.v1.IGetPatchJobRequest): Promise;
+
+ /**
+ * Calls CancelPatchJob.
+ * @param request CancelPatchJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PatchJob
+ */
+ public cancelPatchJob(request: google.cloud.osconfig.v1.ICancelPatchJobRequest, callback: google.cloud.osconfig.v1.OsConfigService.CancelPatchJobCallback): void;
+
+ /**
+ * Calls CancelPatchJob.
+ * @param request CancelPatchJobRequest message or plain object
+ * @returns Promise
+ */
+ public cancelPatchJob(request: google.cloud.osconfig.v1.ICancelPatchJobRequest): Promise;
+
+ /**
+ * Calls ListPatchJobs.
+ * @param request ListPatchJobsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListPatchJobsResponse
+ */
+ public listPatchJobs(request: google.cloud.osconfig.v1.IListPatchJobsRequest, callback: google.cloud.osconfig.v1.OsConfigService.ListPatchJobsCallback): void;
+
+ /**
+ * Calls ListPatchJobs.
+ * @param request ListPatchJobsRequest message or plain object
+ * @returns Promise
+ */
+ public listPatchJobs(request: google.cloud.osconfig.v1.IListPatchJobsRequest): Promise;
+
+ /**
+ * Calls ListPatchJobInstanceDetails.
+ * @param request ListPatchJobInstanceDetailsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListPatchJobInstanceDetailsResponse
+ */
+ public listPatchJobInstanceDetails(request: google.cloud.osconfig.v1.IListPatchJobInstanceDetailsRequest, callback: google.cloud.osconfig.v1.OsConfigService.ListPatchJobInstanceDetailsCallback): void;
+
+ /**
+ * Calls ListPatchJobInstanceDetails.
+ * @param request ListPatchJobInstanceDetailsRequest message or plain object
+ * @returns Promise
+ */
+ public listPatchJobInstanceDetails(request: google.cloud.osconfig.v1.IListPatchJobInstanceDetailsRequest): Promise;
+
+ /**
+ * Calls CreatePatchDeployment.
+ * @param request CreatePatchDeploymentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PatchDeployment
+ */
+ public createPatchDeployment(request: google.cloud.osconfig.v1.ICreatePatchDeploymentRequest, callback: google.cloud.osconfig.v1.OsConfigService.CreatePatchDeploymentCallback): void;
+
+ /**
+ * Calls CreatePatchDeployment.
+ * @param request CreatePatchDeploymentRequest message or plain object
+ * @returns Promise
+ */
+ public createPatchDeployment(request: google.cloud.osconfig.v1.ICreatePatchDeploymentRequest): Promise;
+
+ /**
+ * Calls GetPatchDeployment.
+ * @param request GetPatchDeploymentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PatchDeployment
+ */
+ public getPatchDeployment(request: google.cloud.osconfig.v1.IGetPatchDeploymentRequest, callback: google.cloud.osconfig.v1.OsConfigService.GetPatchDeploymentCallback): void;
+
+ /**
+ * Calls GetPatchDeployment.
+ * @param request GetPatchDeploymentRequest message or plain object
+ * @returns Promise
+ */
+ public getPatchDeployment(request: google.cloud.osconfig.v1.IGetPatchDeploymentRequest): Promise;
+
+ /**
+ * Calls ListPatchDeployments.
+ * @param request ListPatchDeploymentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListPatchDeploymentsResponse
+ */
+ public listPatchDeployments(request: google.cloud.osconfig.v1.IListPatchDeploymentsRequest, callback: google.cloud.osconfig.v1.OsConfigService.ListPatchDeploymentsCallback): void;
+
+ /**
+ * Calls ListPatchDeployments.
+ * @param request ListPatchDeploymentsRequest message or plain object
+ * @returns Promise
+ */
+ public listPatchDeployments(request: google.cloud.osconfig.v1.IListPatchDeploymentsRequest): Promise;
+
+ /**
+ * Calls DeletePatchDeployment.
+ * @param request DeletePatchDeploymentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deletePatchDeployment(request: google.cloud.osconfig.v1.IDeletePatchDeploymentRequest, callback: google.cloud.osconfig.v1.OsConfigService.DeletePatchDeploymentCallback): void;
+
+ /**
+ * Calls DeletePatchDeployment.
+ * @param request DeletePatchDeploymentRequest message or plain object
+ * @returns Promise
+ */
+ public deletePatchDeployment(request: google.cloud.osconfig.v1.IDeletePatchDeploymentRequest): Promise;
+
+ /**
+ * Calls UpdatePatchDeployment.
+ * @param request UpdatePatchDeploymentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PatchDeployment
+ */
+ public updatePatchDeployment(request: google.cloud.osconfig.v1.IUpdatePatchDeploymentRequest, callback: google.cloud.osconfig.v1.OsConfigService.UpdatePatchDeploymentCallback): void;
+
+ /**
+ * Calls UpdatePatchDeployment.
+ * @param request UpdatePatchDeploymentRequest message or plain object
+ * @returns Promise
+ */
+ public updatePatchDeployment(request: google.cloud.osconfig.v1.IUpdatePatchDeploymentRequest): Promise;
+
+ /**
+ * Calls PausePatchDeployment.
+ * @param request PausePatchDeploymentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PatchDeployment
+ */
+ public pausePatchDeployment(request: google.cloud.osconfig.v1.IPausePatchDeploymentRequest, callback: google.cloud.osconfig.v1.OsConfigService.PausePatchDeploymentCallback): void;
+
+ /**
+ * Calls PausePatchDeployment.
+ * @param request PausePatchDeploymentRequest message or plain object
+ * @returns Promise
+ */
+ public pausePatchDeployment(request: google.cloud.osconfig.v1.IPausePatchDeploymentRequest): Promise;
+
+ /**
+ * Calls ResumePatchDeployment.
+ * @param request ResumePatchDeploymentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PatchDeployment
+ */
+ public resumePatchDeployment(request: google.cloud.osconfig.v1.IResumePatchDeploymentRequest, callback: google.cloud.osconfig.v1.OsConfigService.ResumePatchDeploymentCallback): void;
+
+ /**
+ * Calls ResumePatchDeployment.
+ * @param request ResumePatchDeploymentRequest message or plain object
+ * @returns Promise
+ */
+ public resumePatchDeployment(request: google.cloud.osconfig.v1.IResumePatchDeploymentRequest): Promise;
+ }
+
+ namespace OsConfigService {
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigService|executePatchJob}.
+ * @param error Error, if any
+ * @param [response] PatchJob
+ */
+ type ExecutePatchJobCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.PatchJob) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigService|getPatchJob}.
+ * @param error Error, if any
+ * @param [response] PatchJob
+ */
+ type GetPatchJobCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.PatchJob) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigService|cancelPatchJob}.
+ * @param error Error, if any
+ * @param [response] PatchJob
+ */
+ type CancelPatchJobCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.PatchJob) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigService|listPatchJobs}.
+ * @param error Error, if any
+ * @param [response] ListPatchJobsResponse
+ */
+ type ListPatchJobsCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.ListPatchJobsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigService|listPatchJobInstanceDetails}.
+ * @param error Error, if any
+ * @param [response] ListPatchJobInstanceDetailsResponse
+ */
+ type ListPatchJobInstanceDetailsCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigService|createPatchDeployment}.
+ * @param error Error, if any
+ * @param [response] PatchDeployment
+ */
+ type CreatePatchDeploymentCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.PatchDeployment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigService|getPatchDeployment}.
+ * @param error Error, if any
+ * @param [response] PatchDeployment
+ */
+ type GetPatchDeploymentCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.PatchDeployment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigService|listPatchDeployments}.
+ * @param error Error, if any
+ * @param [response] ListPatchDeploymentsResponse
+ */
+ type ListPatchDeploymentsCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.ListPatchDeploymentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigService|deletePatchDeployment}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeletePatchDeploymentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigService|updatePatchDeployment}.
+ * @param error Error, if any
+ * @param [response] PatchDeployment
+ */
+ type UpdatePatchDeploymentCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.PatchDeployment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigService|pausePatchDeployment}.
+ * @param error Error, if any
+ * @param [response] PatchDeployment
+ */
+ type PausePatchDeploymentCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.PatchDeployment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigService|resumePatchDeployment}.
+ * @param error Error, if any
+ * @param [response] PatchDeployment
+ */
+ type ResumePatchDeploymentCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.PatchDeployment) => void;
+ }
+
+ /** Properties of a PatchDeployment. */
+ interface IPatchDeployment {
+
+ /** PatchDeployment name */
+ name?: (string|null);
+
+ /** PatchDeployment description */
+ description?: (string|null);
+
+ /** PatchDeployment instanceFilter */
+ instanceFilter?: (google.cloud.osconfig.v1.IPatchInstanceFilter|null);
+
+ /** PatchDeployment patchConfig */
+ patchConfig?: (google.cloud.osconfig.v1.IPatchConfig|null);
+
+ /** PatchDeployment duration */
+ duration?: (google.protobuf.IDuration|null);
+
+ /** PatchDeployment oneTimeSchedule */
+ oneTimeSchedule?: (google.cloud.osconfig.v1.IOneTimeSchedule|null);
+
+ /** PatchDeployment recurringSchedule */
+ recurringSchedule?: (google.cloud.osconfig.v1.IRecurringSchedule|null);
+
+ /** PatchDeployment createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** PatchDeployment updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** PatchDeployment lastExecuteTime */
+ lastExecuteTime?: (google.protobuf.ITimestamp|null);
+
+ /** PatchDeployment rollout */
+ rollout?: (google.cloud.osconfig.v1.IPatchRollout|null);
+
+ /** PatchDeployment state */
+ state?: (google.cloud.osconfig.v1.PatchDeployment.State|keyof typeof google.cloud.osconfig.v1.PatchDeployment.State|null);
+ }
+
+ /** Represents a PatchDeployment. */
+ class PatchDeployment implements IPatchDeployment {
+
+ /**
+ * Constructs a new PatchDeployment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IPatchDeployment);
+
+ /** PatchDeployment name. */
+ public name: string;
+
+ /** PatchDeployment description. */
+ public description: string;
+
+ /** PatchDeployment instanceFilter. */
+ public instanceFilter?: (google.cloud.osconfig.v1.IPatchInstanceFilter|null);
+
+ /** PatchDeployment patchConfig. */
+ public patchConfig?: (google.cloud.osconfig.v1.IPatchConfig|null);
+
+ /** PatchDeployment duration. */
+ public duration?: (google.protobuf.IDuration|null);
+
+ /** PatchDeployment oneTimeSchedule. */
+ public oneTimeSchedule?: (google.cloud.osconfig.v1.IOneTimeSchedule|null);
+
+ /** PatchDeployment recurringSchedule. */
+ public recurringSchedule?: (google.cloud.osconfig.v1.IRecurringSchedule|null);
+
+ /** PatchDeployment createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** PatchDeployment updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** PatchDeployment lastExecuteTime. */
+ public lastExecuteTime?: (google.protobuf.ITimestamp|null);
+
+ /** PatchDeployment rollout. */
+ public rollout?: (google.cloud.osconfig.v1.IPatchRollout|null);
+
+ /** PatchDeployment state. */
+ public state: (google.cloud.osconfig.v1.PatchDeployment.State|keyof typeof google.cloud.osconfig.v1.PatchDeployment.State);
+
+ /** PatchDeployment schedule. */
+ public schedule?: ("oneTimeSchedule"|"recurringSchedule");
+
+ /**
+ * Creates a new PatchDeployment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PatchDeployment instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IPatchDeployment): google.cloud.osconfig.v1.PatchDeployment;
+
+ /**
+ * Encodes the specified PatchDeployment message. Does not implicitly {@link google.cloud.osconfig.v1.PatchDeployment.verify|verify} messages.
+ * @param message PatchDeployment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IPatchDeployment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PatchDeployment message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.PatchDeployment.verify|verify} messages.
+ * @param message PatchDeployment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IPatchDeployment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PatchDeployment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PatchDeployment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.PatchDeployment;
+
+ /**
+ * Decodes a PatchDeployment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PatchDeployment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.PatchDeployment;
+
+ /**
+ * Verifies a PatchDeployment message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PatchDeployment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PatchDeployment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.PatchDeployment;
+
+ /**
+ * Creates a plain object from a PatchDeployment message. Also converts values to other types if specified.
+ * @param message PatchDeployment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.PatchDeployment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PatchDeployment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PatchDeployment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PatchDeployment {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ PAUSED = 2
+ }
+ }
+
+ /** Properties of an OneTimeSchedule. */
+ interface IOneTimeSchedule {
+
+ /** OneTimeSchedule executeTime */
+ executeTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an OneTimeSchedule. */
+ class OneTimeSchedule implements IOneTimeSchedule {
+
+ /**
+ * Constructs a new OneTimeSchedule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IOneTimeSchedule);
+
+ /** OneTimeSchedule executeTime. */
+ public executeTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new OneTimeSchedule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneTimeSchedule instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IOneTimeSchedule): google.cloud.osconfig.v1.OneTimeSchedule;
+
+ /**
+ * Encodes the specified OneTimeSchedule message. Does not implicitly {@link google.cloud.osconfig.v1.OneTimeSchedule.verify|verify} messages.
+ * @param message OneTimeSchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IOneTimeSchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneTimeSchedule message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OneTimeSchedule.verify|verify} messages.
+ * @param message OneTimeSchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IOneTimeSchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneTimeSchedule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneTimeSchedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.OneTimeSchedule;
+
+ /**
+ * Decodes an OneTimeSchedule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneTimeSchedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.OneTimeSchedule;
+
+ /**
+ * Verifies an OneTimeSchedule message.
+ * @param message Plain 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 OneTimeSchedule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneTimeSchedule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.OneTimeSchedule;
+
+ /**
+ * Creates a plain object from an OneTimeSchedule message. Also converts values to other types if specified.
+ * @param message OneTimeSchedule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.OneTimeSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneTimeSchedule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneTimeSchedule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RecurringSchedule. */
+ interface IRecurringSchedule {
+
+ /** RecurringSchedule timeZone */
+ timeZone?: (google.type.ITimeZone|null);
+
+ /** RecurringSchedule startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** RecurringSchedule endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** RecurringSchedule timeOfDay */
+ timeOfDay?: (google.type.ITimeOfDay|null);
+
+ /** RecurringSchedule frequency */
+ frequency?: (google.cloud.osconfig.v1.RecurringSchedule.Frequency|keyof typeof google.cloud.osconfig.v1.RecurringSchedule.Frequency|null);
+
+ /** RecurringSchedule weekly */
+ weekly?: (google.cloud.osconfig.v1.IWeeklySchedule|null);
+
+ /** RecurringSchedule monthly */
+ monthly?: (google.cloud.osconfig.v1.IMonthlySchedule|null);
+
+ /** RecurringSchedule lastExecuteTime */
+ lastExecuteTime?: (google.protobuf.ITimestamp|null);
+
+ /** RecurringSchedule nextExecuteTime */
+ nextExecuteTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a RecurringSchedule. */
+ class RecurringSchedule implements IRecurringSchedule {
+
+ /**
+ * Constructs a new RecurringSchedule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IRecurringSchedule);
+
+ /** RecurringSchedule timeZone. */
+ public timeZone?: (google.type.ITimeZone|null);
+
+ /** RecurringSchedule startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** RecurringSchedule endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** RecurringSchedule timeOfDay. */
+ public timeOfDay?: (google.type.ITimeOfDay|null);
+
+ /** RecurringSchedule frequency. */
+ public frequency: (google.cloud.osconfig.v1.RecurringSchedule.Frequency|keyof typeof google.cloud.osconfig.v1.RecurringSchedule.Frequency);
+
+ /** RecurringSchedule weekly. */
+ public weekly?: (google.cloud.osconfig.v1.IWeeklySchedule|null);
+
+ /** RecurringSchedule monthly. */
+ public monthly?: (google.cloud.osconfig.v1.IMonthlySchedule|null);
+
+ /** RecurringSchedule lastExecuteTime. */
+ public lastExecuteTime?: (google.protobuf.ITimestamp|null);
+
+ /** RecurringSchedule nextExecuteTime. */
+ public nextExecuteTime?: (google.protobuf.ITimestamp|null);
+
+ /** RecurringSchedule scheduleConfig. */
+ public scheduleConfig?: ("weekly"|"monthly");
+
+ /**
+ * Creates a new RecurringSchedule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RecurringSchedule instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IRecurringSchedule): google.cloud.osconfig.v1.RecurringSchedule;
+
+ /**
+ * Encodes the specified RecurringSchedule message. Does not implicitly {@link google.cloud.osconfig.v1.RecurringSchedule.verify|verify} messages.
+ * @param message RecurringSchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IRecurringSchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RecurringSchedule message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.RecurringSchedule.verify|verify} messages.
+ * @param message RecurringSchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IRecurringSchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RecurringSchedule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RecurringSchedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.RecurringSchedule;
+
+ /**
+ * Decodes a RecurringSchedule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RecurringSchedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.RecurringSchedule;
+
+ /**
+ * Verifies a RecurringSchedule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RecurringSchedule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RecurringSchedule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.RecurringSchedule;
+
+ /**
+ * Creates a plain object from a RecurringSchedule message. Also converts values to other types if specified.
+ * @param message RecurringSchedule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.RecurringSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RecurringSchedule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RecurringSchedule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace RecurringSchedule {
+
+ /** Frequency enum. */
+ enum Frequency {
+ FREQUENCY_UNSPECIFIED = 0,
+ WEEKLY = 1,
+ MONTHLY = 2,
+ DAILY = 3
+ }
+ }
+
+ /** Properties of a WeeklySchedule. */
+ interface IWeeklySchedule {
+
+ /** WeeklySchedule dayOfWeek */
+ dayOfWeek?: (google.type.DayOfWeek|keyof typeof google.type.DayOfWeek|null);
+ }
+
+ /** Represents a WeeklySchedule. */
+ class WeeklySchedule implements IWeeklySchedule {
+
+ /**
+ * Constructs a new WeeklySchedule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IWeeklySchedule);
+
+ /** WeeklySchedule dayOfWeek. */
+ public dayOfWeek: (google.type.DayOfWeek|keyof typeof google.type.DayOfWeek);
+
+ /**
+ * Creates a new WeeklySchedule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WeeklySchedule instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IWeeklySchedule): google.cloud.osconfig.v1.WeeklySchedule;
+
+ /**
+ * Encodes the specified WeeklySchedule message. Does not implicitly {@link google.cloud.osconfig.v1.WeeklySchedule.verify|verify} messages.
+ * @param message WeeklySchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IWeeklySchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WeeklySchedule message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.WeeklySchedule.verify|verify} messages.
+ * @param message WeeklySchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IWeeklySchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WeeklySchedule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WeeklySchedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.WeeklySchedule;
+
+ /**
+ * Decodes a WeeklySchedule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WeeklySchedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.WeeklySchedule;
+
+ /**
+ * Verifies a WeeklySchedule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WeeklySchedule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WeeklySchedule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.WeeklySchedule;
+
+ /**
+ * Creates a plain object from a WeeklySchedule message. Also converts values to other types if specified.
+ * @param message WeeklySchedule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.WeeklySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WeeklySchedule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WeeklySchedule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MonthlySchedule. */
+ interface IMonthlySchedule {
+
+ /** MonthlySchedule weekDayOfMonth */
+ weekDayOfMonth?: (google.cloud.osconfig.v1.IWeekDayOfMonth|null);
+
+ /** MonthlySchedule monthDay */
+ monthDay?: (number|null);
+ }
+
+ /** Represents a MonthlySchedule. */
+ class MonthlySchedule implements IMonthlySchedule {
+
+ /**
+ * Constructs a new MonthlySchedule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IMonthlySchedule);
+
+ /** MonthlySchedule weekDayOfMonth. */
+ public weekDayOfMonth?: (google.cloud.osconfig.v1.IWeekDayOfMonth|null);
+
+ /** MonthlySchedule monthDay. */
+ public monthDay?: (number|null);
+
+ /** MonthlySchedule dayOfMonth. */
+ public dayOfMonth?: ("weekDayOfMonth"|"monthDay");
+
+ /**
+ * Creates a new MonthlySchedule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MonthlySchedule instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IMonthlySchedule): google.cloud.osconfig.v1.MonthlySchedule;
+
+ /**
+ * Encodes the specified MonthlySchedule message. Does not implicitly {@link google.cloud.osconfig.v1.MonthlySchedule.verify|verify} messages.
+ * @param message MonthlySchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IMonthlySchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MonthlySchedule message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.MonthlySchedule.verify|verify} messages.
+ * @param message MonthlySchedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IMonthlySchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MonthlySchedule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MonthlySchedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.MonthlySchedule;
+
+ /**
+ * Decodes a MonthlySchedule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MonthlySchedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.MonthlySchedule;
+
+ /**
+ * Verifies a MonthlySchedule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MonthlySchedule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MonthlySchedule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.MonthlySchedule;
+
+ /**
+ * Creates a plain object from a MonthlySchedule message. Also converts values to other types if specified.
+ * @param message MonthlySchedule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.MonthlySchedule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MonthlySchedule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MonthlySchedule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WeekDayOfMonth. */
+ interface IWeekDayOfMonth {
+
+ /** WeekDayOfMonth weekOrdinal */
+ weekOrdinal?: (number|null);
+
+ /** WeekDayOfMonth dayOfWeek */
+ dayOfWeek?: (google.type.DayOfWeek|keyof typeof google.type.DayOfWeek|null);
+
+ /** WeekDayOfMonth dayOffset */
+ dayOffset?: (number|null);
+ }
+
+ /** Represents a WeekDayOfMonth. */
+ class WeekDayOfMonth implements IWeekDayOfMonth {
+
+ /**
+ * Constructs a new WeekDayOfMonth.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IWeekDayOfMonth);
+
+ /** WeekDayOfMonth weekOrdinal. */
+ public weekOrdinal: number;
+
+ /** WeekDayOfMonth dayOfWeek. */
+ public dayOfWeek: (google.type.DayOfWeek|keyof typeof google.type.DayOfWeek);
+
+ /** WeekDayOfMonth dayOffset. */
+ public dayOffset: number;
+
+ /**
+ * Creates a new WeekDayOfMonth instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WeekDayOfMonth instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IWeekDayOfMonth): google.cloud.osconfig.v1.WeekDayOfMonth;
+
+ /**
+ * Encodes the specified WeekDayOfMonth message. Does not implicitly {@link google.cloud.osconfig.v1.WeekDayOfMonth.verify|verify} messages.
+ * @param message WeekDayOfMonth message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IWeekDayOfMonth, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WeekDayOfMonth message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.WeekDayOfMonth.verify|verify} messages.
+ * @param message WeekDayOfMonth message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IWeekDayOfMonth, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WeekDayOfMonth message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WeekDayOfMonth
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.WeekDayOfMonth;
+
+ /**
+ * Decodes a WeekDayOfMonth message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WeekDayOfMonth
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.WeekDayOfMonth;
+
+ /**
+ * Verifies a WeekDayOfMonth message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WeekDayOfMonth message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WeekDayOfMonth
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.WeekDayOfMonth;
+
+ /**
+ * Creates a plain object from a WeekDayOfMonth message. Also converts values to other types if specified.
+ * @param message WeekDayOfMonth
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.WeekDayOfMonth, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WeekDayOfMonth to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WeekDayOfMonth
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreatePatchDeploymentRequest. */
+ interface ICreatePatchDeploymentRequest {
+
+ /** CreatePatchDeploymentRequest parent */
+ parent?: (string|null);
+
+ /** CreatePatchDeploymentRequest patchDeploymentId */
+ patchDeploymentId?: (string|null);
+
+ /** CreatePatchDeploymentRequest patchDeployment */
+ patchDeployment?: (google.cloud.osconfig.v1.IPatchDeployment|null);
+ }
+
+ /** Represents a CreatePatchDeploymentRequest. */
+ class CreatePatchDeploymentRequest implements ICreatePatchDeploymentRequest {
+
+ /**
+ * Constructs a new CreatePatchDeploymentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.ICreatePatchDeploymentRequest);
+
+ /** CreatePatchDeploymentRequest parent. */
+ public parent: string;
+
+ /** CreatePatchDeploymentRequest patchDeploymentId. */
+ public patchDeploymentId: string;
+
+ /** CreatePatchDeploymentRequest patchDeployment. */
+ public patchDeployment?: (google.cloud.osconfig.v1.IPatchDeployment|null);
+
+ /**
+ * Creates a new CreatePatchDeploymentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreatePatchDeploymentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.ICreatePatchDeploymentRequest): google.cloud.osconfig.v1.CreatePatchDeploymentRequest;
+
+ /**
+ * Encodes the specified CreatePatchDeploymentRequest message. Does not implicitly {@link google.cloud.osconfig.v1.CreatePatchDeploymentRequest.verify|verify} messages.
+ * @param message CreatePatchDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.ICreatePatchDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreatePatchDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.CreatePatchDeploymentRequest.verify|verify} messages.
+ * @param message CreatePatchDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.ICreatePatchDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreatePatchDeploymentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreatePatchDeploymentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.CreatePatchDeploymentRequest;
+
+ /**
+ * Decodes a CreatePatchDeploymentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreatePatchDeploymentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.CreatePatchDeploymentRequest;
+
+ /**
+ * Verifies a CreatePatchDeploymentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreatePatchDeploymentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreatePatchDeploymentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.CreatePatchDeploymentRequest;
+
+ /**
+ * Creates a plain object from a CreatePatchDeploymentRequest message. Also converts values to other types if specified.
+ * @param message CreatePatchDeploymentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.CreatePatchDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreatePatchDeploymentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreatePatchDeploymentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetPatchDeploymentRequest. */
+ interface IGetPatchDeploymentRequest {
+
+ /** GetPatchDeploymentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetPatchDeploymentRequest. */
+ class GetPatchDeploymentRequest implements IGetPatchDeploymentRequest {
+
+ /**
+ * Constructs a new GetPatchDeploymentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IGetPatchDeploymentRequest);
+
+ /** GetPatchDeploymentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetPatchDeploymentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetPatchDeploymentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IGetPatchDeploymentRequest): google.cloud.osconfig.v1.GetPatchDeploymentRequest;
+
+ /**
+ * Encodes the specified GetPatchDeploymentRequest message. Does not implicitly {@link google.cloud.osconfig.v1.GetPatchDeploymentRequest.verify|verify} messages.
+ * @param message GetPatchDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IGetPatchDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetPatchDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.GetPatchDeploymentRequest.verify|verify} messages.
+ * @param message GetPatchDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IGetPatchDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetPatchDeploymentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetPatchDeploymentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.GetPatchDeploymentRequest;
+
+ /**
+ * Decodes a GetPatchDeploymentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetPatchDeploymentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.GetPatchDeploymentRequest;
+
+ /**
+ * Verifies a GetPatchDeploymentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetPatchDeploymentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetPatchDeploymentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.GetPatchDeploymentRequest;
+
+ /**
+ * Creates a plain object from a GetPatchDeploymentRequest message. Also converts values to other types if specified.
+ * @param message GetPatchDeploymentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.GetPatchDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetPatchDeploymentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetPatchDeploymentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListPatchDeploymentsRequest. */
+ interface IListPatchDeploymentsRequest {
+
+ /** ListPatchDeploymentsRequest parent */
+ parent?: (string|null);
+
+ /** ListPatchDeploymentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListPatchDeploymentsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListPatchDeploymentsRequest. */
+ class ListPatchDeploymentsRequest implements IListPatchDeploymentsRequest {
+
+ /**
+ * Constructs a new ListPatchDeploymentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListPatchDeploymentsRequest);
+
+ /** ListPatchDeploymentsRequest parent. */
+ public parent: string;
+
+ /** ListPatchDeploymentsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListPatchDeploymentsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListPatchDeploymentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListPatchDeploymentsRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListPatchDeploymentsRequest): google.cloud.osconfig.v1.ListPatchDeploymentsRequest;
+
+ /**
+ * Encodes the specified ListPatchDeploymentsRequest message. Does not implicitly {@link google.cloud.osconfig.v1.ListPatchDeploymentsRequest.verify|verify} messages.
+ * @param message ListPatchDeploymentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListPatchDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListPatchDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListPatchDeploymentsRequest.verify|verify} messages.
+ * @param message ListPatchDeploymentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListPatchDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListPatchDeploymentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListPatchDeploymentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListPatchDeploymentsRequest;
+
+ /**
+ * Decodes a ListPatchDeploymentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListPatchDeploymentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListPatchDeploymentsRequest;
+
+ /**
+ * Verifies a ListPatchDeploymentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListPatchDeploymentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListPatchDeploymentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListPatchDeploymentsRequest;
+
+ /**
+ * Creates a plain object from a ListPatchDeploymentsRequest message. Also converts values to other types if specified.
+ * @param message ListPatchDeploymentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListPatchDeploymentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListPatchDeploymentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListPatchDeploymentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListPatchDeploymentsResponse. */
+ interface IListPatchDeploymentsResponse {
+
+ /** ListPatchDeploymentsResponse patchDeployments */
+ patchDeployments?: (google.cloud.osconfig.v1.IPatchDeployment[]|null);
+
+ /** ListPatchDeploymentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListPatchDeploymentsResponse. */
+ class ListPatchDeploymentsResponse implements IListPatchDeploymentsResponse {
+
+ /**
+ * Constructs a new ListPatchDeploymentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListPatchDeploymentsResponse);
+
+ /** ListPatchDeploymentsResponse patchDeployments. */
+ public patchDeployments: google.cloud.osconfig.v1.IPatchDeployment[];
+
+ /** ListPatchDeploymentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListPatchDeploymentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListPatchDeploymentsResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListPatchDeploymentsResponse): google.cloud.osconfig.v1.ListPatchDeploymentsResponse;
+
+ /**
+ * Encodes the specified ListPatchDeploymentsResponse message. Does not implicitly {@link google.cloud.osconfig.v1.ListPatchDeploymentsResponse.verify|verify} messages.
+ * @param message ListPatchDeploymentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListPatchDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListPatchDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListPatchDeploymentsResponse.verify|verify} messages.
+ * @param message ListPatchDeploymentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListPatchDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListPatchDeploymentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListPatchDeploymentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListPatchDeploymentsResponse;
+
+ /**
+ * Decodes a ListPatchDeploymentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListPatchDeploymentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListPatchDeploymentsResponse;
+
+ /**
+ * Verifies a ListPatchDeploymentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListPatchDeploymentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListPatchDeploymentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListPatchDeploymentsResponse;
+
+ /**
+ * Creates a plain object from a ListPatchDeploymentsResponse message. Also converts values to other types if specified.
+ * @param message ListPatchDeploymentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListPatchDeploymentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListPatchDeploymentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListPatchDeploymentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeletePatchDeploymentRequest. */
+ interface IDeletePatchDeploymentRequest {
+
+ /** DeletePatchDeploymentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeletePatchDeploymentRequest. */
+ class DeletePatchDeploymentRequest implements IDeletePatchDeploymentRequest {
+
+ /**
+ * Constructs a new DeletePatchDeploymentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IDeletePatchDeploymentRequest);
+
+ /** DeletePatchDeploymentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeletePatchDeploymentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeletePatchDeploymentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IDeletePatchDeploymentRequest): google.cloud.osconfig.v1.DeletePatchDeploymentRequest;
+
+ /**
+ * Encodes the specified DeletePatchDeploymentRequest message. Does not implicitly {@link google.cloud.osconfig.v1.DeletePatchDeploymentRequest.verify|verify} messages.
+ * @param message DeletePatchDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IDeletePatchDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeletePatchDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.DeletePatchDeploymentRequest.verify|verify} messages.
+ * @param message DeletePatchDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IDeletePatchDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeletePatchDeploymentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeletePatchDeploymentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.DeletePatchDeploymentRequest;
+
+ /**
+ * Decodes a DeletePatchDeploymentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeletePatchDeploymentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.DeletePatchDeploymentRequest;
+
+ /**
+ * Verifies a DeletePatchDeploymentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeletePatchDeploymentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeletePatchDeploymentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.DeletePatchDeploymentRequest;
+
+ /**
+ * Creates a plain object from a DeletePatchDeploymentRequest message. Also converts values to other types if specified.
+ * @param message DeletePatchDeploymentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.DeletePatchDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeletePatchDeploymentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeletePatchDeploymentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdatePatchDeploymentRequest. */
+ interface IUpdatePatchDeploymentRequest {
+
+ /** UpdatePatchDeploymentRequest patchDeployment */
+ patchDeployment?: (google.cloud.osconfig.v1.IPatchDeployment|null);
+
+ /** UpdatePatchDeploymentRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdatePatchDeploymentRequest. */
+ class UpdatePatchDeploymentRequest implements IUpdatePatchDeploymentRequest {
+
+ /**
+ * Constructs a new UpdatePatchDeploymentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IUpdatePatchDeploymentRequest);
+
+ /** UpdatePatchDeploymentRequest patchDeployment. */
+ public patchDeployment?: (google.cloud.osconfig.v1.IPatchDeployment|null);
+
+ /** UpdatePatchDeploymentRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdatePatchDeploymentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdatePatchDeploymentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IUpdatePatchDeploymentRequest): google.cloud.osconfig.v1.UpdatePatchDeploymentRequest;
+
+ /**
+ * Encodes the specified UpdatePatchDeploymentRequest message. Does not implicitly {@link google.cloud.osconfig.v1.UpdatePatchDeploymentRequest.verify|verify} messages.
+ * @param message UpdatePatchDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IUpdatePatchDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdatePatchDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.UpdatePatchDeploymentRequest.verify|verify} messages.
+ * @param message UpdatePatchDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IUpdatePatchDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdatePatchDeploymentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdatePatchDeploymentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.UpdatePatchDeploymentRequest;
+
+ /**
+ * Decodes an UpdatePatchDeploymentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdatePatchDeploymentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.UpdatePatchDeploymentRequest;
+
+ /**
+ * Verifies an UpdatePatchDeploymentRequest message.
+ * @param message Plain 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 UpdatePatchDeploymentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdatePatchDeploymentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.UpdatePatchDeploymentRequest;
+
+ /**
+ * Creates a plain object from an UpdatePatchDeploymentRequest message. Also converts values to other types if specified.
+ * @param message UpdatePatchDeploymentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.UpdatePatchDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdatePatchDeploymentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdatePatchDeploymentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PausePatchDeploymentRequest. */
+ interface IPausePatchDeploymentRequest {
+
+ /** PausePatchDeploymentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a PausePatchDeploymentRequest. */
+ class PausePatchDeploymentRequest implements IPausePatchDeploymentRequest {
+
+ /**
+ * Constructs a new PausePatchDeploymentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IPausePatchDeploymentRequest);
+
+ /** PausePatchDeploymentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new PausePatchDeploymentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PausePatchDeploymentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IPausePatchDeploymentRequest): google.cloud.osconfig.v1.PausePatchDeploymentRequest;
+
+ /**
+ * Encodes the specified PausePatchDeploymentRequest message. Does not implicitly {@link google.cloud.osconfig.v1.PausePatchDeploymentRequest.verify|verify} messages.
+ * @param message PausePatchDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IPausePatchDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PausePatchDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.PausePatchDeploymentRequest.verify|verify} messages.
+ * @param message PausePatchDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IPausePatchDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PausePatchDeploymentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PausePatchDeploymentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.PausePatchDeploymentRequest;
+
+ /**
+ * Decodes a PausePatchDeploymentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PausePatchDeploymentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.PausePatchDeploymentRequest;
+
+ /**
+ * Verifies a PausePatchDeploymentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PausePatchDeploymentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PausePatchDeploymentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.PausePatchDeploymentRequest;
+
+ /**
+ * Creates a plain object from a PausePatchDeploymentRequest message. Also converts values to other types if specified.
+ * @param message PausePatchDeploymentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.PausePatchDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PausePatchDeploymentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PausePatchDeploymentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResumePatchDeploymentRequest. */
+ interface IResumePatchDeploymentRequest {
+
+ /** ResumePatchDeploymentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a ResumePatchDeploymentRequest. */
+ class ResumePatchDeploymentRequest implements IResumePatchDeploymentRequest {
+
+ /**
+ * Constructs a new ResumePatchDeploymentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IResumePatchDeploymentRequest);
+
+ /** ResumePatchDeploymentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new ResumePatchDeploymentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResumePatchDeploymentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IResumePatchDeploymentRequest): google.cloud.osconfig.v1.ResumePatchDeploymentRequest;
+
+ /**
+ * Encodes the specified ResumePatchDeploymentRequest message. Does not implicitly {@link google.cloud.osconfig.v1.ResumePatchDeploymentRequest.verify|verify} messages.
+ * @param message ResumePatchDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IResumePatchDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResumePatchDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ResumePatchDeploymentRequest.verify|verify} messages.
+ * @param message ResumePatchDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IResumePatchDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResumePatchDeploymentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResumePatchDeploymentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ResumePatchDeploymentRequest;
+
+ /**
+ * Decodes a ResumePatchDeploymentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResumePatchDeploymentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ResumePatchDeploymentRequest;
+
+ /**
+ * Verifies a ResumePatchDeploymentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResumePatchDeploymentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResumePatchDeploymentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ResumePatchDeploymentRequest;
+
+ /**
+ * Creates a plain object from a ResumePatchDeploymentRequest message. Also converts values to other types if specified.
+ * @param message ResumePatchDeploymentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ResumePatchDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResumePatchDeploymentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResumePatchDeploymentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExecutePatchJobRequest. */
+ interface IExecutePatchJobRequest {
+
+ /** ExecutePatchJobRequest parent */
+ parent?: (string|null);
+
+ /** ExecutePatchJobRequest description */
+ description?: (string|null);
+
+ /** ExecutePatchJobRequest instanceFilter */
+ instanceFilter?: (google.cloud.osconfig.v1.IPatchInstanceFilter|null);
+
+ /** ExecutePatchJobRequest patchConfig */
+ patchConfig?: (google.cloud.osconfig.v1.IPatchConfig|null);
+
+ /** ExecutePatchJobRequest duration */
+ duration?: (google.protobuf.IDuration|null);
+
+ /** ExecutePatchJobRequest dryRun */
+ dryRun?: (boolean|null);
+
+ /** ExecutePatchJobRequest displayName */
+ displayName?: (string|null);
+
+ /** ExecutePatchJobRequest rollout */
+ rollout?: (google.cloud.osconfig.v1.IPatchRollout|null);
+ }
+
+ /** Represents an ExecutePatchJobRequest. */
+ class ExecutePatchJobRequest implements IExecutePatchJobRequest {
+
+ /**
+ * Constructs a new ExecutePatchJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IExecutePatchJobRequest);
+
+ /** ExecutePatchJobRequest parent. */
+ public parent: string;
+
+ /** ExecutePatchJobRequest description. */
+ public description: string;
+
+ /** ExecutePatchJobRequest instanceFilter. */
+ public instanceFilter?: (google.cloud.osconfig.v1.IPatchInstanceFilter|null);
+
+ /** ExecutePatchJobRequest patchConfig. */
+ public patchConfig?: (google.cloud.osconfig.v1.IPatchConfig|null);
+
+ /** ExecutePatchJobRequest duration. */
+ public duration?: (google.protobuf.IDuration|null);
+
+ /** ExecutePatchJobRequest dryRun. */
+ public dryRun: boolean;
+
+ /** ExecutePatchJobRequest displayName. */
+ public displayName: string;
+
+ /** ExecutePatchJobRequest rollout. */
+ public rollout?: (google.cloud.osconfig.v1.IPatchRollout|null);
+
+ /**
+ * Creates a new ExecutePatchJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExecutePatchJobRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IExecutePatchJobRequest): google.cloud.osconfig.v1.ExecutePatchJobRequest;
+
+ /**
+ * Encodes the specified ExecutePatchJobRequest message. Does not implicitly {@link google.cloud.osconfig.v1.ExecutePatchJobRequest.verify|verify} messages.
+ * @param message ExecutePatchJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IExecutePatchJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExecutePatchJobRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ExecutePatchJobRequest.verify|verify} messages.
+ * @param message ExecutePatchJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IExecutePatchJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExecutePatchJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExecutePatchJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ExecutePatchJobRequest;
+
+ /**
+ * Decodes an ExecutePatchJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExecutePatchJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ExecutePatchJobRequest;
+
+ /**
+ * Verifies an ExecutePatchJobRequest message.
+ * @param message Plain 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 ExecutePatchJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExecutePatchJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ExecutePatchJobRequest;
+
+ /**
+ * Creates a plain object from an ExecutePatchJobRequest message. Also converts values to other types if specified.
+ * @param message ExecutePatchJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ExecutePatchJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExecutePatchJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExecutePatchJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetPatchJobRequest. */
+ interface IGetPatchJobRequest {
+
+ /** GetPatchJobRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetPatchJobRequest. */
+ class GetPatchJobRequest implements IGetPatchJobRequest {
+
+ /**
+ * Constructs a new GetPatchJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IGetPatchJobRequest);
+
+ /** GetPatchJobRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetPatchJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetPatchJobRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IGetPatchJobRequest): google.cloud.osconfig.v1.GetPatchJobRequest;
+
+ /**
+ * Encodes the specified GetPatchJobRequest message. Does not implicitly {@link google.cloud.osconfig.v1.GetPatchJobRequest.verify|verify} messages.
+ * @param message GetPatchJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IGetPatchJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetPatchJobRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.GetPatchJobRequest.verify|verify} messages.
+ * @param message GetPatchJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IGetPatchJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetPatchJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetPatchJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.GetPatchJobRequest;
+
+ /**
+ * Decodes a GetPatchJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetPatchJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.GetPatchJobRequest;
+
+ /**
+ * Verifies a GetPatchJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetPatchJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetPatchJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.GetPatchJobRequest;
+
+ /**
+ * Creates a plain object from a GetPatchJobRequest message. Also converts values to other types if specified.
+ * @param message GetPatchJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.GetPatchJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetPatchJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetPatchJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListPatchJobInstanceDetailsRequest. */
+ interface IListPatchJobInstanceDetailsRequest {
+
+ /** ListPatchJobInstanceDetailsRequest parent */
+ parent?: (string|null);
+
+ /** ListPatchJobInstanceDetailsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListPatchJobInstanceDetailsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListPatchJobInstanceDetailsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListPatchJobInstanceDetailsRequest. */
+ class ListPatchJobInstanceDetailsRequest implements IListPatchJobInstanceDetailsRequest {
+
+ /**
+ * Constructs a new ListPatchJobInstanceDetailsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListPatchJobInstanceDetailsRequest);
+
+ /** ListPatchJobInstanceDetailsRequest parent. */
+ public parent: string;
+
+ /** ListPatchJobInstanceDetailsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListPatchJobInstanceDetailsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListPatchJobInstanceDetailsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListPatchJobInstanceDetailsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListPatchJobInstanceDetailsRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListPatchJobInstanceDetailsRequest): google.cloud.osconfig.v1.ListPatchJobInstanceDetailsRequest;
+
+ /**
+ * Encodes the specified ListPatchJobInstanceDetailsRequest message. Does not implicitly {@link google.cloud.osconfig.v1.ListPatchJobInstanceDetailsRequest.verify|verify} messages.
+ * @param message ListPatchJobInstanceDetailsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListPatchJobInstanceDetailsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListPatchJobInstanceDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListPatchJobInstanceDetailsRequest.verify|verify} messages.
+ * @param message ListPatchJobInstanceDetailsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListPatchJobInstanceDetailsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListPatchJobInstanceDetailsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListPatchJobInstanceDetailsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListPatchJobInstanceDetailsRequest;
+
+ /**
+ * Decodes a ListPatchJobInstanceDetailsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListPatchJobInstanceDetailsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListPatchJobInstanceDetailsRequest;
+
+ /**
+ * Verifies a ListPatchJobInstanceDetailsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListPatchJobInstanceDetailsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListPatchJobInstanceDetailsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListPatchJobInstanceDetailsRequest;
+
+ /**
+ * Creates a plain object from a ListPatchJobInstanceDetailsRequest message. Also converts values to other types if specified.
+ * @param message ListPatchJobInstanceDetailsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListPatchJobInstanceDetailsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListPatchJobInstanceDetailsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListPatchJobInstanceDetailsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListPatchJobInstanceDetailsResponse. */
+ interface IListPatchJobInstanceDetailsResponse {
+
+ /** ListPatchJobInstanceDetailsResponse patchJobInstanceDetails */
+ patchJobInstanceDetails?: (google.cloud.osconfig.v1.IPatchJobInstanceDetails[]|null);
+
+ /** ListPatchJobInstanceDetailsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListPatchJobInstanceDetailsResponse. */
+ class ListPatchJobInstanceDetailsResponse implements IListPatchJobInstanceDetailsResponse {
+
+ /**
+ * Constructs a new ListPatchJobInstanceDetailsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListPatchJobInstanceDetailsResponse);
+
+ /** ListPatchJobInstanceDetailsResponse patchJobInstanceDetails. */
+ public patchJobInstanceDetails: google.cloud.osconfig.v1.IPatchJobInstanceDetails[];
+
+ /** ListPatchJobInstanceDetailsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListPatchJobInstanceDetailsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListPatchJobInstanceDetailsResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListPatchJobInstanceDetailsResponse): google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse;
+
+ /**
+ * Encodes the specified ListPatchJobInstanceDetailsResponse message. Does not implicitly {@link google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse.verify|verify} messages.
+ * @param message ListPatchJobInstanceDetailsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListPatchJobInstanceDetailsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListPatchJobInstanceDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse.verify|verify} messages.
+ * @param message ListPatchJobInstanceDetailsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListPatchJobInstanceDetailsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListPatchJobInstanceDetailsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListPatchJobInstanceDetailsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse;
+
+ /**
+ * Decodes a ListPatchJobInstanceDetailsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListPatchJobInstanceDetailsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse;
+
+ /**
+ * Verifies a ListPatchJobInstanceDetailsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListPatchJobInstanceDetailsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListPatchJobInstanceDetailsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse;
+
+ /**
+ * Creates a plain object from a ListPatchJobInstanceDetailsResponse message. Also converts values to other types if specified.
+ * @param message ListPatchJobInstanceDetailsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListPatchJobInstanceDetailsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListPatchJobInstanceDetailsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PatchJobInstanceDetails. */
+ interface IPatchJobInstanceDetails {
+
+ /** PatchJobInstanceDetails name */
+ name?: (string|null);
+
+ /** PatchJobInstanceDetails instanceSystemId */
+ instanceSystemId?: (string|null);
+
+ /** PatchJobInstanceDetails state */
+ state?: (google.cloud.osconfig.v1.Instance.PatchState|keyof typeof google.cloud.osconfig.v1.Instance.PatchState|null);
+
+ /** PatchJobInstanceDetails failureReason */
+ failureReason?: (string|null);
+
+ /** PatchJobInstanceDetails attemptCount */
+ attemptCount?: (number|Long|string|null);
+ }
+
+ /** Represents a PatchJobInstanceDetails. */
+ class PatchJobInstanceDetails implements IPatchJobInstanceDetails {
+
+ /**
+ * Constructs a new PatchJobInstanceDetails.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IPatchJobInstanceDetails);
+
+ /** PatchJobInstanceDetails name. */
+ public name: string;
+
+ /** PatchJobInstanceDetails instanceSystemId. */
+ public instanceSystemId: string;
+
+ /** PatchJobInstanceDetails state. */
+ public state: (google.cloud.osconfig.v1.Instance.PatchState|keyof typeof google.cloud.osconfig.v1.Instance.PatchState);
+
+ /** PatchJobInstanceDetails failureReason. */
+ public failureReason: string;
+
+ /** PatchJobInstanceDetails attemptCount. */
+ public attemptCount: (number|Long|string);
+
+ /**
+ * Creates a new PatchJobInstanceDetails instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PatchJobInstanceDetails instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IPatchJobInstanceDetails): google.cloud.osconfig.v1.PatchJobInstanceDetails;
+
+ /**
+ * Encodes the specified PatchJobInstanceDetails message. Does not implicitly {@link google.cloud.osconfig.v1.PatchJobInstanceDetails.verify|verify} messages.
+ * @param message PatchJobInstanceDetails message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IPatchJobInstanceDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PatchJobInstanceDetails message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.PatchJobInstanceDetails.verify|verify} messages.
+ * @param message PatchJobInstanceDetails message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IPatchJobInstanceDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PatchJobInstanceDetails message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PatchJobInstanceDetails
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.PatchJobInstanceDetails;
+
+ /**
+ * Decodes a PatchJobInstanceDetails message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PatchJobInstanceDetails
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.PatchJobInstanceDetails;
+
+ /**
+ * Verifies a PatchJobInstanceDetails message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PatchJobInstanceDetails message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PatchJobInstanceDetails
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.PatchJobInstanceDetails;
+
+ /**
+ * Creates a plain object from a PatchJobInstanceDetails message. Also converts values to other types if specified.
+ * @param message PatchJobInstanceDetails
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.PatchJobInstanceDetails, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PatchJobInstanceDetails to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PatchJobInstanceDetails
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListPatchJobsRequest. */
+ interface IListPatchJobsRequest {
+
+ /** ListPatchJobsRequest parent */
+ parent?: (string|null);
+
+ /** ListPatchJobsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListPatchJobsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListPatchJobsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListPatchJobsRequest. */
+ class ListPatchJobsRequest implements IListPatchJobsRequest {
+
+ /**
+ * Constructs a new ListPatchJobsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListPatchJobsRequest);
+
+ /** ListPatchJobsRequest parent. */
+ public parent: string;
+
+ /** ListPatchJobsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListPatchJobsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListPatchJobsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListPatchJobsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListPatchJobsRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListPatchJobsRequest): google.cloud.osconfig.v1.ListPatchJobsRequest;
+
+ /**
+ * Encodes the specified ListPatchJobsRequest message. Does not implicitly {@link google.cloud.osconfig.v1.ListPatchJobsRequest.verify|verify} messages.
+ * @param message ListPatchJobsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListPatchJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListPatchJobsRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListPatchJobsRequest.verify|verify} messages.
+ * @param message ListPatchJobsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListPatchJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListPatchJobsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListPatchJobsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListPatchJobsRequest;
+
+ /**
+ * Decodes a ListPatchJobsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListPatchJobsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListPatchJobsRequest;
+
+ /**
+ * Verifies a ListPatchJobsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListPatchJobsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListPatchJobsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListPatchJobsRequest;
+
+ /**
+ * Creates a plain object from a ListPatchJobsRequest message. Also converts values to other types if specified.
+ * @param message ListPatchJobsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListPatchJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListPatchJobsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListPatchJobsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListPatchJobsResponse. */
+ interface IListPatchJobsResponse {
+
+ /** ListPatchJobsResponse patchJobs */
+ patchJobs?: (google.cloud.osconfig.v1.IPatchJob[]|null);
+
+ /** ListPatchJobsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListPatchJobsResponse. */
+ class ListPatchJobsResponse implements IListPatchJobsResponse {
+
+ /**
+ * Constructs a new ListPatchJobsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListPatchJobsResponse);
+
+ /** ListPatchJobsResponse patchJobs. */
+ public patchJobs: google.cloud.osconfig.v1.IPatchJob[];
+
+ /** ListPatchJobsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListPatchJobsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListPatchJobsResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListPatchJobsResponse): google.cloud.osconfig.v1.ListPatchJobsResponse;
+
+ /**
+ * Encodes the specified ListPatchJobsResponse message. Does not implicitly {@link google.cloud.osconfig.v1.ListPatchJobsResponse.verify|verify} messages.
+ * @param message ListPatchJobsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListPatchJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListPatchJobsResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListPatchJobsResponse.verify|verify} messages.
+ * @param message ListPatchJobsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListPatchJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListPatchJobsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListPatchJobsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListPatchJobsResponse;
+
+ /**
+ * Decodes a ListPatchJobsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListPatchJobsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListPatchJobsResponse;
+
+ /**
+ * Verifies a ListPatchJobsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListPatchJobsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListPatchJobsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListPatchJobsResponse;
+
+ /**
+ * Creates a plain object from a ListPatchJobsResponse message. Also converts values to other types if specified.
+ * @param message ListPatchJobsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListPatchJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListPatchJobsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListPatchJobsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PatchJob. */
+ interface IPatchJob {
+
+ /** PatchJob name */
+ name?: (string|null);
+
+ /** PatchJob displayName */
+ displayName?: (string|null);
+
+ /** PatchJob description */
+ description?: (string|null);
+
+ /** PatchJob createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** PatchJob updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** PatchJob state */
+ state?: (google.cloud.osconfig.v1.PatchJob.State|keyof typeof google.cloud.osconfig.v1.PatchJob.State|null);
+
+ /** PatchJob instanceFilter */
+ instanceFilter?: (google.cloud.osconfig.v1.IPatchInstanceFilter|null);
+
+ /** PatchJob patchConfig */
+ patchConfig?: (google.cloud.osconfig.v1.IPatchConfig|null);
+
+ /** PatchJob duration */
+ duration?: (google.protobuf.IDuration|null);
+
+ /** PatchJob instanceDetailsSummary */
+ instanceDetailsSummary?: (google.cloud.osconfig.v1.PatchJob.IInstanceDetailsSummary|null);
+
+ /** PatchJob dryRun */
+ dryRun?: (boolean|null);
+
+ /** PatchJob errorMessage */
+ errorMessage?: (string|null);
+
+ /** PatchJob percentComplete */
+ percentComplete?: (number|null);
+
+ /** PatchJob patchDeployment */
+ patchDeployment?: (string|null);
+
+ /** PatchJob rollout */
+ rollout?: (google.cloud.osconfig.v1.IPatchRollout|null);
+ }
+
+ /** Represents a PatchJob. */
+ class PatchJob implements IPatchJob {
+
+ /**
+ * Constructs a new PatchJob.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IPatchJob);
+
+ /** PatchJob name. */
+ public name: string;
+
+ /** PatchJob displayName. */
+ public displayName: string;
+
+ /** PatchJob description. */
+ public description: string;
+
+ /** PatchJob createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** PatchJob updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** PatchJob state. */
+ public state: (google.cloud.osconfig.v1.PatchJob.State|keyof typeof google.cloud.osconfig.v1.PatchJob.State);
+
+ /** PatchJob instanceFilter. */
+ public instanceFilter?: (google.cloud.osconfig.v1.IPatchInstanceFilter|null);
+
+ /** PatchJob patchConfig. */
+ public patchConfig?: (google.cloud.osconfig.v1.IPatchConfig|null);
+
+ /** PatchJob duration. */
+ public duration?: (google.protobuf.IDuration|null);
+
+ /** PatchJob instanceDetailsSummary. */
+ public instanceDetailsSummary?: (google.cloud.osconfig.v1.PatchJob.IInstanceDetailsSummary|null);
+
+ /** PatchJob dryRun. */
+ public dryRun: boolean;
+
+ /** PatchJob errorMessage. */
+ public errorMessage: string;
+
+ /** PatchJob percentComplete. */
+ public percentComplete: number;
+
+ /** PatchJob patchDeployment. */
+ public patchDeployment: string;
+
+ /** PatchJob rollout. */
+ public rollout?: (google.cloud.osconfig.v1.IPatchRollout|null);
+
+ /**
+ * Creates a new PatchJob instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PatchJob instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IPatchJob): google.cloud.osconfig.v1.PatchJob;
+
+ /**
+ * Encodes the specified PatchJob message. Does not implicitly {@link google.cloud.osconfig.v1.PatchJob.verify|verify} messages.
+ * @param message PatchJob message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IPatchJob, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PatchJob message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.PatchJob.verify|verify} messages.
+ * @param message PatchJob message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IPatchJob, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PatchJob message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PatchJob
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.PatchJob;
+
+ /**
+ * Decodes a PatchJob message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PatchJob
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.PatchJob;
+
+ /**
+ * Verifies a PatchJob message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PatchJob message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PatchJob
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.PatchJob;
+
+ /**
+ * Creates a plain object from a PatchJob message. Also converts values to other types if specified.
+ * @param message PatchJob
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.PatchJob, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PatchJob to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PatchJob
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PatchJob {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ STARTED = 1,
+ INSTANCE_LOOKUP = 2,
+ PATCHING = 3,
+ SUCCEEDED = 4,
+ COMPLETED_WITH_ERRORS = 5,
+ CANCELED = 6,
+ TIMED_OUT = 7
+ }
+
+ /** Properties of an InstanceDetailsSummary. */
+ interface IInstanceDetailsSummary {
+
+ /** InstanceDetailsSummary pendingInstanceCount */
+ pendingInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary inactiveInstanceCount */
+ inactiveInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary notifiedInstanceCount */
+ notifiedInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary startedInstanceCount */
+ startedInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary downloadingPatchesInstanceCount */
+ downloadingPatchesInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary applyingPatchesInstanceCount */
+ applyingPatchesInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary rebootingInstanceCount */
+ rebootingInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary succeededInstanceCount */
+ succeededInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary succeededRebootRequiredInstanceCount */
+ succeededRebootRequiredInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary failedInstanceCount */
+ failedInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary ackedInstanceCount */
+ ackedInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary timedOutInstanceCount */
+ timedOutInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary prePatchStepInstanceCount */
+ prePatchStepInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary postPatchStepInstanceCount */
+ postPatchStepInstanceCount?: (number|Long|string|null);
+
+ /** InstanceDetailsSummary noAgentDetectedInstanceCount */
+ noAgentDetectedInstanceCount?: (number|Long|string|null);
+ }
+
+ /** Represents an InstanceDetailsSummary. */
+ class InstanceDetailsSummary implements IInstanceDetailsSummary {
+
+ /**
+ * Constructs a new InstanceDetailsSummary.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.PatchJob.IInstanceDetailsSummary);
+
+ /** InstanceDetailsSummary pendingInstanceCount. */
+ public pendingInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary inactiveInstanceCount. */
+ public inactiveInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary notifiedInstanceCount. */
+ public notifiedInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary startedInstanceCount. */
+ public startedInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary downloadingPatchesInstanceCount. */
+ public downloadingPatchesInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary applyingPatchesInstanceCount. */
+ public applyingPatchesInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary rebootingInstanceCount. */
+ public rebootingInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary succeededInstanceCount. */
+ public succeededInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary succeededRebootRequiredInstanceCount. */
+ public succeededRebootRequiredInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary failedInstanceCount. */
+ public failedInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary ackedInstanceCount. */
+ public ackedInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary timedOutInstanceCount. */
+ public timedOutInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary prePatchStepInstanceCount. */
+ public prePatchStepInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary postPatchStepInstanceCount. */
+ public postPatchStepInstanceCount: (number|Long|string);
+
+ /** InstanceDetailsSummary noAgentDetectedInstanceCount. */
+ public noAgentDetectedInstanceCount: (number|Long|string);
+
+ /**
+ * Creates a new InstanceDetailsSummary instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InstanceDetailsSummary instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.PatchJob.IInstanceDetailsSummary): google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary;
+
+ /**
+ * Encodes the specified InstanceDetailsSummary message. Does not implicitly {@link google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary.verify|verify} messages.
+ * @param message InstanceDetailsSummary message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.PatchJob.IInstanceDetailsSummary, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InstanceDetailsSummary message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary.verify|verify} messages.
+ * @param message InstanceDetailsSummary message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.PatchJob.IInstanceDetailsSummary, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InstanceDetailsSummary message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InstanceDetailsSummary
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary;
+
+ /**
+ * Decodes an InstanceDetailsSummary message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InstanceDetailsSummary
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary;
+
+ /**
+ * Verifies an InstanceDetailsSummary message.
+ * @param message Plain 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 InstanceDetailsSummary message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InstanceDetailsSummary
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary;
+
+ /**
+ * Creates a plain object from an InstanceDetailsSummary message. Also converts values to other types if specified.
+ * @param message InstanceDetailsSummary
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InstanceDetailsSummary to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InstanceDetailsSummary
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a PatchConfig. */
+ interface IPatchConfig {
+
+ /** PatchConfig rebootConfig */
+ rebootConfig?: (google.cloud.osconfig.v1.PatchConfig.RebootConfig|keyof typeof google.cloud.osconfig.v1.PatchConfig.RebootConfig|null);
+
+ /** PatchConfig apt */
+ apt?: (google.cloud.osconfig.v1.IAptSettings|null);
+
+ /** PatchConfig yum */
+ yum?: (google.cloud.osconfig.v1.IYumSettings|null);
+
+ /** PatchConfig goo */
+ goo?: (google.cloud.osconfig.v1.IGooSettings|null);
+
+ /** PatchConfig zypper */
+ zypper?: (google.cloud.osconfig.v1.IZypperSettings|null);
+
+ /** PatchConfig windowsUpdate */
+ windowsUpdate?: (google.cloud.osconfig.v1.IWindowsUpdateSettings|null);
+
+ /** PatchConfig preStep */
+ preStep?: (google.cloud.osconfig.v1.IExecStep|null);
+
+ /** PatchConfig postStep */
+ postStep?: (google.cloud.osconfig.v1.IExecStep|null);
+
+ /** PatchConfig migInstancesAllowed */
+ migInstancesAllowed?: (boolean|null);
+ }
+
+ /** Represents a PatchConfig. */
+ class PatchConfig implements IPatchConfig {
+
+ /**
+ * Constructs a new PatchConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IPatchConfig);
+
+ /** PatchConfig rebootConfig. */
+ public rebootConfig: (google.cloud.osconfig.v1.PatchConfig.RebootConfig|keyof typeof google.cloud.osconfig.v1.PatchConfig.RebootConfig);
+
+ /** PatchConfig apt. */
+ public apt?: (google.cloud.osconfig.v1.IAptSettings|null);
+
+ /** PatchConfig yum. */
+ public yum?: (google.cloud.osconfig.v1.IYumSettings|null);
+
+ /** PatchConfig goo. */
+ public goo?: (google.cloud.osconfig.v1.IGooSettings|null);
+
+ /** PatchConfig zypper. */
+ public zypper?: (google.cloud.osconfig.v1.IZypperSettings|null);
+
+ /** PatchConfig windowsUpdate. */
+ public windowsUpdate?: (google.cloud.osconfig.v1.IWindowsUpdateSettings|null);
+
+ /** PatchConfig preStep. */
+ public preStep?: (google.cloud.osconfig.v1.IExecStep|null);
+
+ /** PatchConfig postStep. */
+ public postStep?: (google.cloud.osconfig.v1.IExecStep|null);
+
+ /** PatchConfig migInstancesAllowed. */
+ public migInstancesAllowed: boolean;
+
+ /**
+ * Creates a new PatchConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PatchConfig instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IPatchConfig): google.cloud.osconfig.v1.PatchConfig;
+
+ /**
+ * Encodes the specified PatchConfig message. Does not implicitly {@link google.cloud.osconfig.v1.PatchConfig.verify|verify} messages.
+ * @param message PatchConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IPatchConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PatchConfig message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.PatchConfig.verify|verify} messages.
+ * @param message PatchConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IPatchConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PatchConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PatchConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.PatchConfig;
+
+ /**
+ * Decodes a PatchConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PatchConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.PatchConfig;
+
+ /**
+ * Verifies a PatchConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PatchConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PatchConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.PatchConfig;
+
+ /**
+ * Creates a plain object from a PatchConfig message. Also converts values to other types if specified.
+ * @param message PatchConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.PatchConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PatchConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PatchConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PatchConfig {
+
+ /** RebootConfig enum. */
+ enum RebootConfig {
+ REBOOT_CONFIG_UNSPECIFIED = 0,
+ DEFAULT = 1,
+ ALWAYS = 2,
+ NEVER = 3
+ }
+ }
+
+ /** Properties of an Instance. */
+ interface IInstance {
+ }
+
+ /** Represents an Instance. */
+ class Instance implements IInstance {
+
+ /**
+ * Constructs a new Instance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IInstance);
+
+ /**
+ * Creates a new Instance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Instance instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IInstance): google.cloud.osconfig.v1.Instance;
+
+ /**
+ * Encodes the specified Instance message. Does not implicitly {@link google.cloud.osconfig.v1.Instance.verify|verify} messages.
+ * @param message Instance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IInstance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Instance message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Instance.verify|verify} messages.
+ * @param message Instance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IInstance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Instance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.Instance;
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Instance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.Instance;
+
+ /**
+ * Verifies an Instance message.
+ * @param message Plain 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 Instance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Instance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.Instance;
+
+ /**
+ * Creates a plain object from an Instance message. Also converts values to other types if specified.
+ * @param message Instance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.Instance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Instance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Instance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Instance {
+
+ /** PatchState enum. */
+ enum PatchState {
+ PATCH_STATE_UNSPECIFIED = 0,
+ PENDING = 1,
+ INACTIVE = 2,
+ NOTIFIED = 3,
+ STARTED = 4,
+ DOWNLOADING_PATCHES = 5,
+ APPLYING_PATCHES = 6,
+ REBOOTING = 7,
+ SUCCEEDED = 8,
+ SUCCEEDED_REBOOT_REQUIRED = 9,
+ FAILED = 10,
+ ACKED = 11,
+ TIMED_OUT = 12,
+ RUNNING_PRE_PATCH_STEP = 13,
+ RUNNING_POST_PATCH_STEP = 14,
+ NO_AGENT_DETECTED = 15
+ }
+ }
+
+ /** Properties of a CancelPatchJobRequest. */
+ interface ICancelPatchJobRequest {
+
+ /** CancelPatchJobRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelPatchJobRequest. */
+ class CancelPatchJobRequest implements ICancelPatchJobRequest {
+
+ /**
+ * Constructs a new CancelPatchJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.ICancelPatchJobRequest);
+
+ /** CancelPatchJobRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelPatchJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelPatchJobRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.ICancelPatchJobRequest): google.cloud.osconfig.v1.CancelPatchJobRequest;
+
+ /**
+ * Encodes the specified CancelPatchJobRequest message. Does not implicitly {@link google.cloud.osconfig.v1.CancelPatchJobRequest.verify|verify} messages.
+ * @param message CancelPatchJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.ICancelPatchJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelPatchJobRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.CancelPatchJobRequest.verify|verify} messages.
+ * @param message CancelPatchJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.ICancelPatchJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelPatchJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelPatchJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.CancelPatchJobRequest;
+
+ /**
+ * Decodes a CancelPatchJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelPatchJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.CancelPatchJobRequest;
+
+ /**
+ * Verifies a CancelPatchJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelPatchJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelPatchJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.CancelPatchJobRequest;
+
+ /**
+ * Creates a plain object from a CancelPatchJobRequest message. Also converts values to other types if specified.
+ * @param message CancelPatchJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.CancelPatchJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelPatchJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelPatchJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AptSettings. */
+ interface IAptSettings {
+
+ /** AptSettings type */
+ type?: (google.cloud.osconfig.v1.AptSettings.Type|keyof typeof google.cloud.osconfig.v1.AptSettings.Type|null);
+
+ /** AptSettings excludes */
+ excludes?: (string[]|null);
+
+ /** AptSettings exclusivePackages */
+ exclusivePackages?: (string[]|null);
+ }
+
+ /** Represents an AptSettings. */
+ class AptSettings implements IAptSettings {
+
+ /**
+ * Constructs a new AptSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IAptSettings);
+
+ /** AptSettings type. */
+ public type: (google.cloud.osconfig.v1.AptSettings.Type|keyof typeof google.cloud.osconfig.v1.AptSettings.Type);
+
+ /** AptSettings excludes. */
+ public excludes: string[];
+
+ /** AptSettings exclusivePackages. */
+ public exclusivePackages: string[];
+
+ /**
+ * Creates a new AptSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AptSettings instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IAptSettings): google.cloud.osconfig.v1.AptSettings;
+
+ /**
+ * Encodes the specified AptSettings message. Does not implicitly {@link google.cloud.osconfig.v1.AptSettings.verify|verify} messages.
+ * @param message AptSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IAptSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AptSettings message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.AptSettings.verify|verify} messages.
+ * @param message AptSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IAptSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AptSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AptSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.AptSettings;
+
+ /**
+ * Decodes an AptSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AptSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.AptSettings;
+
+ /**
+ * Verifies an AptSettings message.
+ * @param message Plain 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 AptSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AptSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.AptSettings;
+
+ /**
+ * Creates a plain object from an AptSettings message. Also converts values to other types if specified.
+ * @param message AptSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.AptSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AptSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AptSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AptSettings {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ DIST = 1,
+ UPGRADE = 2
+ }
+ }
+
+ /** Properties of a YumSettings. */
+ interface IYumSettings {
+
+ /** YumSettings security */
+ security?: (boolean|null);
+
+ /** YumSettings minimal */
+ minimal?: (boolean|null);
+
+ /** YumSettings excludes */
+ excludes?: (string[]|null);
+
+ /** YumSettings exclusivePackages */
+ exclusivePackages?: (string[]|null);
+ }
+
+ /** Represents a YumSettings. */
+ class YumSettings implements IYumSettings {
+
+ /**
+ * Constructs a new YumSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IYumSettings);
+
+ /** YumSettings security. */
+ public security: boolean;
+
+ /** YumSettings minimal. */
+ public minimal: boolean;
+
+ /** YumSettings excludes. */
+ public excludes: string[];
+
+ /** YumSettings exclusivePackages. */
+ public exclusivePackages: string[];
+
+ /**
+ * Creates a new YumSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns YumSettings instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IYumSettings): google.cloud.osconfig.v1.YumSettings;
+
+ /**
+ * Encodes the specified YumSettings message. Does not implicitly {@link google.cloud.osconfig.v1.YumSettings.verify|verify} messages.
+ * @param message YumSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IYumSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified YumSettings message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.YumSettings.verify|verify} messages.
+ * @param message YumSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IYumSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a YumSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns YumSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.YumSettings;
+
+ /**
+ * Decodes a YumSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns YumSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.YumSettings;
+
+ /**
+ * Verifies a YumSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a YumSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns YumSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.YumSettings;
+
+ /**
+ * Creates a plain object from a YumSettings message. Also converts values to other types if specified.
+ * @param message YumSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.YumSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this YumSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for YumSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GooSettings. */
+ interface IGooSettings {
+ }
+
+ /** Represents a GooSettings. */
+ class GooSettings implements IGooSettings {
+
+ /**
+ * Constructs a new GooSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IGooSettings);
+
+ /**
+ * Creates a new GooSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GooSettings instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IGooSettings): google.cloud.osconfig.v1.GooSettings;
+
+ /**
+ * Encodes the specified GooSettings message. Does not implicitly {@link google.cloud.osconfig.v1.GooSettings.verify|verify} messages.
+ * @param message GooSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IGooSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GooSettings message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.GooSettings.verify|verify} messages.
+ * @param message GooSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IGooSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GooSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GooSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.GooSettings;
+
+ /**
+ * Decodes a GooSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GooSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.GooSettings;
+
+ /**
+ * Verifies a GooSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GooSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GooSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.GooSettings;
+
+ /**
+ * Creates a plain object from a GooSettings message. Also converts values to other types if specified.
+ * @param message GooSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.GooSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GooSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GooSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ZypperSettings. */
+ interface IZypperSettings {
+
+ /** ZypperSettings withOptional */
+ withOptional?: (boolean|null);
+
+ /** ZypperSettings withUpdate */
+ withUpdate?: (boolean|null);
+
+ /** ZypperSettings categories */
+ categories?: (string[]|null);
+
+ /** ZypperSettings severities */
+ severities?: (string[]|null);
+
+ /** ZypperSettings excludes */
+ excludes?: (string[]|null);
+
+ /** ZypperSettings exclusivePatches */
+ exclusivePatches?: (string[]|null);
+ }
+
+ /** Represents a ZypperSettings. */
+ class ZypperSettings implements IZypperSettings {
+
+ /**
+ * Constructs a new ZypperSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IZypperSettings);
+
+ /** ZypperSettings withOptional. */
+ public withOptional: boolean;
+
+ /** ZypperSettings withUpdate. */
+ public withUpdate: boolean;
+
+ /** ZypperSettings categories. */
+ public categories: string[];
+
+ /** ZypperSettings severities. */
+ public severities: string[];
+
+ /** ZypperSettings excludes. */
+ public excludes: string[];
+
+ /** ZypperSettings exclusivePatches. */
+ public exclusivePatches: string[];
+
+ /**
+ * Creates a new ZypperSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ZypperSettings instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IZypperSettings): google.cloud.osconfig.v1.ZypperSettings;
+
+ /**
+ * Encodes the specified ZypperSettings message. Does not implicitly {@link google.cloud.osconfig.v1.ZypperSettings.verify|verify} messages.
+ * @param message ZypperSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IZypperSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ZypperSettings message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ZypperSettings.verify|verify} messages.
+ * @param message ZypperSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IZypperSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ZypperSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ZypperSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ZypperSettings;
+
+ /**
+ * Decodes a ZypperSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ZypperSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ZypperSettings;
+
+ /**
+ * Verifies a ZypperSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ZypperSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ZypperSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ZypperSettings;
+
+ /**
+ * Creates a plain object from a ZypperSettings message. Also converts values to other types if specified.
+ * @param message ZypperSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ZypperSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ZypperSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ZypperSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WindowsUpdateSettings. */
+ interface IWindowsUpdateSettings {
+
+ /** WindowsUpdateSettings classifications */
+ classifications?: (google.cloud.osconfig.v1.WindowsUpdateSettings.Classification[]|null);
+
+ /** WindowsUpdateSettings excludes */
+ excludes?: (string[]|null);
+
+ /** WindowsUpdateSettings exclusivePatches */
+ exclusivePatches?: (string[]|null);
+ }
+
+ /** Represents a WindowsUpdateSettings. */
+ class WindowsUpdateSettings implements IWindowsUpdateSettings {
+
+ /**
+ * Constructs a new WindowsUpdateSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IWindowsUpdateSettings);
+
+ /** WindowsUpdateSettings classifications. */
+ public classifications: google.cloud.osconfig.v1.WindowsUpdateSettings.Classification[];
+
+ /** WindowsUpdateSettings excludes. */
+ public excludes: string[];
+
+ /** WindowsUpdateSettings exclusivePatches. */
+ public exclusivePatches: string[];
+
+ /**
+ * Creates a new WindowsUpdateSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WindowsUpdateSettings instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IWindowsUpdateSettings): google.cloud.osconfig.v1.WindowsUpdateSettings;
+
+ /**
+ * Encodes the specified WindowsUpdateSettings message. Does not implicitly {@link google.cloud.osconfig.v1.WindowsUpdateSettings.verify|verify} messages.
+ * @param message WindowsUpdateSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IWindowsUpdateSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WindowsUpdateSettings message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.WindowsUpdateSettings.verify|verify} messages.
+ * @param message WindowsUpdateSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IWindowsUpdateSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WindowsUpdateSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WindowsUpdateSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.WindowsUpdateSettings;
+
+ /**
+ * Decodes a WindowsUpdateSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WindowsUpdateSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.WindowsUpdateSettings;
+
+ /**
+ * Verifies a WindowsUpdateSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WindowsUpdateSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WindowsUpdateSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.WindowsUpdateSettings;
+
+ /**
+ * Creates a plain object from a WindowsUpdateSettings message. Also converts values to other types if specified.
+ * @param message WindowsUpdateSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.WindowsUpdateSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WindowsUpdateSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WindowsUpdateSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace WindowsUpdateSettings {
+
+ /** Classification enum. */
+ enum Classification {
+ CLASSIFICATION_UNSPECIFIED = 0,
+ CRITICAL = 1,
+ SECURITY = 2,
+ DEFINITION = 3,
+ DRIVER = 4,
+ FEATURE_PACK = 5,
+ SERVICE_PACK = 6,
+ TOOL = 7,
+ UPDATE_ROLLUP = 8,
+ UPDATE = 9
+ }
+ }
+
+ /** Properties of an ExecStep. */
+ interface IExecStep {
+
+ /** ExecStep linuxExecStepConfig */
+ linuxExecStepConfig?: (google.cloud.osconfig.v1.IExecStepConfig|null);
+
+ /** ExecStep windowsExecStepConfig */
+ windowsExecStepConfig?: (google.cloud.osconfig.v1.IExecStepConfig|null);
+ }
+
+ /** Represents an ExecStep. */
+ class ExecStep implements IExecStep {
+
+ /**
+ * Constructs a new ExecStep.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IExecStep);
+
+ /** ExecStep linuxExecStepConfig. */
+ public linuxExecStepConfig?: (google.cloud.osconfig.v1.IExecStepConfig|null);
+
+ /** ExecStep windowsExecStepConfig. */
+ public windowsExecStepConfig?: (google.cloud.osconfig.v1.IExecStepConfig|null);
+
+ /**
+ * Creates a new ExecStep instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExecStep instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IExecStep): google.cloud.osconfig.v1.ExecStep;
+
+ /**
+ * Encodes the specified ExecStep message. Does not implicitly {@link google.cloud.osconfig.v1.ExecStep.verify|verify} messages.
+ * @param message ExecStep message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IExecStep, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExecStep message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ExecStep.verify|verify} messages.
+ * @param message ExecStep message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IExecStep, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExecStep message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExecStep
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ExecStep;
+
+ /**
+ * Decodes an ExecStep message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExecStep
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ExecStep;
+
+ /**
+ * Verifies an ExecStep message.
+ * @param message Plain 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 ExecStep message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExecStep
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ExecStep;
+
+ /**
+ * Creates a plain object from an ExecStep message. Also converts values to other types if specified.
+ * @param message ExecStep
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ExecStep, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExecStep to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExecStep
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExecStepConfig. */
+ interface IExecStepConfig {
+
+ /** ExecStepConfig localPath */
+ localPath?: (string|null);
+
+ /** ExecStepConfig gcsObject */
+ gcsObject?: (google.cloud.osconfig.v1.IGcsObject|null);
+
+ /** ExecStepConfig allowedSuccessCodes */
+ allowedSuccessCodes?: (number[]|null);
+
+ /** ExecStepConfig interpreter */
+ interpreter?: (google.cloud.osconfig.v1.ExecStepConfig.Interpreter|keyof typeof google.cloud.osconfig.v1.ExecStepConfig.Interpreter|null);
+ }
+
+ /** Represents an ExecStepConfig. */
+ class ExecStepConfig implements IExecStepConfig {
+
+ /**
+ * Constructs a new ExecStepConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IExecStepConfig);
+
+ /** ExecStepConfig localPath. */
+ public localPath?: (string|null);
+
+ /** ExecStepConfig gcsObject. */
+ public gcsObject?: (google.cloud.osconfig.v1.IGcsObject|null);
+
+ /** ExecStepConfig allowedSuccessCodes. */
+ public allowedSuccessCodes: number[];
+
+ /** ExecStepConfig interpreter. */
+ public interpreter: (google.cloud.osconfig.v1.ExecStepConfig.Interpreter|keyof typeof google.cloud.osconfig.v1.ExecStepConfig.Interpreter);
+
+ /** ExecStepConfig executable. */
+ public executable?: ("localPath"|"gcsObject");
+
+ /**
+ * Creates a new ExecStepConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExecStepConfig instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IExecStepConfig): google.cloud.osconfig.v1.ExecStepConfig;
+
+ /**
+ * Encodes the specified ExecStepConfig message. Does not implicitly {@link google.cloud.osconfig.v1.ExecStepConfig.verify|verify} messages.
+ * @param message ExecStepConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IExecStepConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExecStepConfig message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ExecStepConfig.verify|verify} messages.
+ * @param message ExecStepConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IExecStepConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExecStepConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExecStepConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ExecStepConfig;
+
+ /**
+ * Decodes an ExecStepConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExecStepConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ExecStepConfig;
+
+ /**
+ * Verifies an ExecStepConfig message.
+ * @param message Plain 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 ExecStepConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExecStepConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ExecStepConfig;
+
+ /**
+ * Creates a plain object from an ExecStepConfig message. Also converts values to other types if specified.
+ * @param message ExecStepConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ExecStepConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExecStepConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExecStepConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExecStepConfig {
+
+ /** Interpreter enum. */
+ enum Interpreter {
+ INTERPRETER_UNSPECIFIED = 0,
+ SHELL = 1,
+ POWERSHELL = 2
+ }
+ }
+
+ /** Properties of a GcsObject. */
+ interface IGcsObject {
+
+ /** GcsObject bucket */
+ bucket?: (string|null);
+
+ /** GcsObject object */
+ object?: (string|null);
+
+ /** GcsObject generationNumber */
+ generationNumber?: (number|Long|string|null);
+ }
+
+ /** Represents a GcsObject. */
+ class GcsObject implements IGcsObject {
+
+ /**
+ * Constructs a new GcsObject.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IGcsObject);
+
+ /** GcsObject bucket. */
+ public bucket: string;
+
+ /** GcsObject object. */
+ public object: string;
+
+ /** GcsObject generationNumber. */
+ public generationNumber: (number|Long|string);
+
+ /**
+ * Creates a new GcsObject instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcsObject instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IGcsObject): google.cloud.osconfig.v1.GcsObject;
+
+ /**
+ * Encodes the specified GcsObject message. Does not implicitly {@link google.cloud.osconfig.v1.GcsObject.verify|verify} messages.
+ * @param message GcsObject message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IGcsObject, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcsObject message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.GcsObject.verify|verify} messages.
+ * @param message GcsObject message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IGcsObject, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcsObject message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcsObject
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.GcsObject;
+
+ /**
+ * Decodes a GcsObject message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcsObject
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.GcsObject;
+
+ /**
+ * Verifies a GcsObject message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcsObject message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcsObject
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.GcsObject;
+
+ /**
+ * Creates a plain object from a GcsObject message. Also converts values to other types if specified.
+ * @param message GcsObject
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.GcsObject, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcsObject to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcsObject
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PatchInstanceFilter. */
+ interface IPatchInstanceFilter {
+
+ /** PatchInstanceFilter all */
+ all?: (boolean|null);
+
+ /** PatchInstanceFilter groupLabels */
+ groupLabels?: (google.cloud.osconfig.v1.PatchInstanceFilter.IGroupLabel[]|null);
+
+ /** PatchInstanceFilter zones */
+ zones?: (string[]|null);
+
+ /** PatchInstanceFilter instances */
+ instances?: (string[]|null);
+
+ /** PatchInstanceFilter instanceNamePrefixes */
+ instanceNamePrefixes?: (string[]|null);
+ }
+
+ /** Represents a PatchInstanceFilter. */
+ class PatchInstanceFilter implements IPatchInstanceFilter {
+
+ /**
+ * Constructs a new PatchInstanceFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IPatchInstanceFilter);
+
+ /** PatchInstanceFilter all. */
+ public all: boolean;
+
+ /** PatchInstanceFilter groupLabels. */
+ public groupLabels: google.cloud.osconfig.v1.PatchInstanceFilter.IGroupLabel[];
+
+ /** PatchInstanceFilter zones. */
+ public zones: string[];
+
+ /** PatchInstanceFilter instances. */
+ public instances: string[];
+
+ /** PatchInstanceFilter instanceNamePrefixes. */
+ public instanceNamePrefixes: string[];
+
+ /**
+ * Creates a new PatchInstanceFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PatchInstanceFilter instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IPatchInstanceFilter): google.cloud.osconfig.v1.PatchInstanceFilter;
+
+ /**
+ * Encodes the specified PatchInstanceFilter message. Does not implicitly {@link google.cloud.osconfig.v1.PatchInstanceFilter.verify|verify} messages.
+ * @param message PatchInstanceFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IPatchInstanceFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PatchInstanceFilter message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.PatchInstanceFilter.verify|verify} messages.
+ * @param message PatchInstanceFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IPatchInstanceFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PatchInstanceFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PatchInstanceFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.PatchInstanceFilter;
+
+ /**
+ * Decodes a PatchInstanceFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PatchInstanceFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.PatchInstanceFilter;
+
+ /**
+ * Verifies a PatchInstanceFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PatchInstanceFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PatchInstanceFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.PatchInstanceFilter;
+
+ /**
+ * Creates a plain object from a PatchInstanceFilter message. Also converts values to other types if specified.
+ * @param message PatchInstanceFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.PatchInstanceFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PatchInstanceFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PatchInstanceFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PatchInstanceFilter {
+
+ /** Properties of a GroupLabel. */
+ interface IGroupLabel {
+
+ /** GroupLabel labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a GroupLabel. */
+ class GroupLabel implements IGroupLabel {
+
+ /**
+ * Constructs a new GroupLabel.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.PatchInstanceFilter.IGroupLabel);
+
+ /** GroupLabel labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new GroupLabel instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GroupLabel instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.PatchInstanceFilter.IGroupLabel): google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel;
+
+ /**
+ * Encodes the specified GroupLabel message. Does not implicitly {@link google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel.verify|verify} messages.
+ * @param message GroupLabel message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.PatchInstanceFilter.IGroupLabel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GroupLabel message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel.verify|verify} messages.
+ * @param message GroupLabel message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.PatchInstanceFilter.IGroupLabel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GroupLabel message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GroupLabel
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel;
+
+ /**
+ * Decodes a GroupLabel message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GroupLabel
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel;
+
+ /**
+ * Verifies a GroupLabel message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GroupLabel message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GroupLabel
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel;
+
+ /**
+ * Creates a plain object from a GroupLabel message. Also converts values to other types if specified.
+ * @param message GroupLabel
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GroupLabel to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GroupLabel
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a PatchRollout. */
+ interface IPatchRollout {
+
+ /** PatchRollout mode */
+ mode?: (google.cloud.osconfig.v1.PatchRollout.Mode|keyof typeof google.cloud.osconfig.v1.PatchRollout.Mode|null);
+
+ /** PatchRollout disruptionBudget */
+ disruptionBudget?: (google.cloud.osconfig.v1.IFixedOrPercent|null);
+ }
+
+ /** Represents a PatchRollout. */
+ class PatchRollout implements IPatchRollout {
+
+ /**
+ * Constructs a new PatchRollout.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IPatchRollout);
+
+ /** PatchRollout mode. */
+ public mode: (google.cloud.osconfig.v1.PatchRollout.Mode|keyof typeof google.cloud.osconfig.v1.PatchRollout.Mode);
+
+ /** PatchRollout disruptionBudget. */
+ public disruptionBudget?: (google.cloud.osconfig.v1.IFixedOrPercent|null);
+
+ /**
+ * Creates a new PatchRollout instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PatchRollout instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IPatchRollout): google.cloud.osconfig.v1.PatchRollout;
+
+ /**
+ * Encodes the specified PatchRollout message. Does not implicitly {@link google.cloud.osconfig.v1.PatchRollout.verify|verify} messages.
+ * @param message PatchRollout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IPatchRollout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PatchRollout message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.PatchRollout.verify|verify} messages.
+ * @param message PatchRollout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IPatchRollout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PatchRollout message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PatchRollout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.PatchRollout;
+
+ /**
+ * Decodes a PatchRollout message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PatchRollout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.PatchRollout;
+
+ /**
+ * Verifies a PatchRollout message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PatchRollout message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PatchRollout
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.PatchRollout;
+
+ /**
+ * Creates a plain object from a PatchRollout message. Also converts values to other types if specified.
+ * @param message PatchRollout
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.PatchRollout, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PatchRollout to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PatchRollout
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PatchRollout {
+
+ /** Mode enum. */
+ enum Mode {
+ MODE_UNSPECIFIED = 0,
+ ZONE_BY_ZONE = 1,
+ CONCURRENT_ZONES = 2
+ }
+ }
+
+ /** Represents an OsConfigZonalService */
+ class OsConfigZonalService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new OsConfigZonalService 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 OsConfigZonalService 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): OsConfigZonalService;
+
+ /**
+ * Calls CreateOSPolicyAssignment.
+ * @param request CreateOSPolicyAssignmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createOSPolicyAssignment(request: google.cloud.osconfig.v1.ICreateOSPolicyAssignmentRequest, callback: google.cloud.osconfig.v1.OsConfigZonalService.CreateOSPolicyAssignmentCallback): void;
+
+ /**
+ * Calls CreateOSPolicyAssignment.
+ * @param request CreateOSPolicyAssignmentRequest message or plain object
+ * @returns Promise
+ */
+ public createOSPolicyAssignment(request: google.cloud.osconfig.v1.ICreateOSPolicyAssignmentRequest): Promise;
+
+ /**
+ * Calls UpdateOSPolicyAssignment.
+ * @param request UpdateOSPolicyAssignmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateOSPolicyAssignment(request: google.cloud.osconfig.v1.IUpdateOSPolicyAssignmentRequest, callback: google.cloud.osconfig.v1.OsConfigZonalService.UpdateOSPolicyAssignmentCallback): void;
+
+ /**
+ * Calls UpdateOSPolicyAssignment.
+ * @param request UpdateOSPolicyAssignmentRequest message or plain object
+ * @returns Promise
+ */
+ public updateOSPolicyAssignment(request: google.cloud.osconfig.v1.IUpdateOSPolicyAssignmentRequest): Promise;
+
+ /**
+ * Calls GetOSPolicyAssignment.
+ * @param request GetOSPolicyAssignmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and OSPolicyAssignment
+ */
+ public getOSPolicyAssignment(request: google.cloud.osconfig.v1.IGetOSPolicyAssignmentRequest, callback: google.cloud.osconfig.v1.OsConfigZonalService.GetOSPolicyAssignmentCallback): void;
+
+ /**
+ * Calls GetOSPolicyAssignment.
+ * @param request GetOSPolicyAssignmentRequest message or plain object
+ * @returns Promise
+ */
+ public getOSPolicyAssignment(request: google.cloud.osconfig.v1.IGetOSPolicyAssignmentRequest): Promise;
+
+ /**
+ * Calls ListOSPolicyAssignments.
+ * @param request ListOSPolicyAssignmentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOSPolicyAssignmentsResponse
+ */
+ public listOSPolicyAssignments(request: google.cloud.osconfig.v1.IListOSPolicyAssignmentsRequest, callback: google.cloud.osconfig.v1.OsConfigZonalService.ListOSPolicyAssignmentsCallback): void;
+
+ /**
+ * Calls ListOSPolicyAssignments.
+ * @param request ListOSPolicyAssignmentsRequest message or plain object
+ * @returns Promise
+ */
+ public listOSPolicyAssignments(request: google.cloud.osconfig.v1.IListOSPolicyAssignmentsRequest): Promise;
+
+ /**
+ * Calls ListOSPolicyAssignmentRevisions.
+ * @param request ListOSPolicyAssignmentRevisionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOSPolicyAssignmentRevisionsResponse
+ */
+ public listOSPolicyAssignmentRevisions(request: google.cloud.osconfig.v1.IListOSPolicyAssignmentRevisionsRequest, callback: google.cloud.osconfig.v1.OsConfigZonalService.ListOSPolicyAssignmentRevisionsCallback): void;
+
+ /**
+ * Calls ListOSPolicyAssignmentRevisions.
+ * @param request ListOSPolicyAssignmentRevisionsRequest message or plain object
+ * @returns Promise
+ */
+ public listOSPolicyAssignmentRevisions(request: google.cloud.osconfig.v1.IListOSPolicyAssignmentRevisionsRequest): Promise;
+
+ /**
+ * Calls DeleteOSPolicyAssignment.
+ * @param request DeleteOSPolicyAssignmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteOSPolicyAssignment(request: google.cloud.osconfig.v1.IDeleteOSPolicyAssignmentRequest, callback: google.cloud.osconfig.v1.OsConfigZonalService.DeleteOSPolicyAssignmentCallback): void;
+
+ /**
+ * Calls DeleteOSPolicyAssignment.
+ * @param request DeleteOSPolicyAssignmentRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOSPolicyAssignment(request: google.cloud.osconfig.v1.IDeleteOSPolicyAssignmentRequest): Promise;
+
+ /**
+ * Calls GetOSPolicyAssignmentReport.
+ * @param request GetOSPolicyAssignmentReportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and OSPolicyAssignmentReport
+ */
+ public getOSPolicyAssignmentReport(request: google.cloud.osconfig.v1.IGetOSPolicyAssignmentReportRequest, callback: google.cloud.osconfig.v1.OsConfigZonalService.GetOSPolicyAssignmentReportCallback): void;
+
+ /**
+ * Calls GetOSPolicyAssignmentReport.
+ * @param request GetOSPolicyAssignmentReportRequest message or plain object
+ * @returns Promise
+ */
+ public getOSPolicyAssignmentReport(request: google.cloud.osconfig.v1.IGetOSPolicyAssignmentReportRequest): Promise;
+
+ /**
+ * Calls ListOSPolicyAssignmentReports.
+ * @param request ListOSPolicyAssignmentReportsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOSPolicyAssignmentReportsResponse
+ */
+ public listOSPolicyAssignmentReports(request: google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsRequest, callback: google.cloud.osconfig.v1.OsConfigZonalService.ListOSPolicyAssignmentReportsCallback): void;
+
+ /**
+ * Calls ListOSPolicyAssignmentReports.
+ * @param request ListOSPolicyAssignmentReportsRequest message or plain object
+ * @returns Promise
+ */
+ public listOSPolicyAssignmentReports(request: google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsRequest): Promise;
+
+ /**
+ * Calls GetInventory.
+ * @param request GetInventoryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Inventory
+ */
+ public getInventory(request: google.cloud.osconfig.v1.IGetInventoryRequest, callback: google.cloud.osconfig.v1.OsConfigZonalService.GetInventoryCallback): void;
+
+ /**
+ * Calls GetInventory.
+ * @param request GetInventoryRequest message or plain object
+ * @returns Promise
+ */
+ public getInventory(request: google.cloud.osconfig.v1.IGetInventoryRequest): Promise;
+
+ /**
+ * Calls ListInventories.
+ * @param request ListInventoriesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListInventoriesResponse
+ */
+ public listInventories(request: google.cloud.osconfig.v1.IListInventoriesRequest, callback: google.cloud.osconfig.v1.OsConfigZonalService.ListInventoriesCallback): void;
+
+ /**
+ * Calls ListInventories.
+ * @param request ListInventoriesRequest message or plain object
+ * @returns Promise
+ */
+ public listInventories(request: google.cloud.osconfig.v1.IListInventoriesRequest): Promise;
+
+ /**
+ * Calls GetVulnerabilityReport.
+ * @param request GetVulnerabilityReportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and VulnerabilityReport
+ */
+ public getVulnerabilityReport(request: google.cloud.osconfig.v1.IGetVulnerabilityReportRequest, callback: google.cloud.osconfig.v1.OsConfigZonalService.GetVulnerabilityReportCallback): void;
+
+ /**
+ * Calls GetVulnerabilityReport.
+ * @param request GetVulnerabilityReportRequest message or plain object
+ * @returns Promise
+ */
+ public getVulnerabilityReport(request: google.cloud.osconfig.v1.IGetVulnerabilityReportRequest): Promise;
+
+ /**
+ * Calls ListVulnerabilityReports.
+ * @param request ListVulnerabilityReportsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListVulnerabilityReportsResponse
+ */
+ public listVulnerabilityReports(request: google.cloud.osconfig.v1.IListVulnerabilityReportsRequest, callback: google.cloud.osconfig.v1.OsConfigZonalService.ListVulnerabilityReportsCallback): void;
+
+ /**
+ * Calls ListVulnerabilityReports.
+ * @param request ListVulnerabilityReportsRequest message or plain object
+ * @returns Promise
+ */
+ public listVulnerabilityReports(request: google.cloud.osconfig.v1.IListVulnerabilityReportsRequest): Promise;
+ }
+
+ namespace OsConfigZonalService {
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigZonalService|createOSPolicyAssignment}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateOSPolicyAssignmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigZonalService|updateOSPolicyAssignment}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateOSPolicyAssignmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigZonalService|getOSPolicyAssignment}.
+ * @param error Error, if any
+ * @param [response] OSPolicyAssignment
+ */
+ type GetOSPolicyAssignmentCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.OSPolicyAssignment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigZonalService|listOSPolicyAssignments}.
+ * @param error Error, if any
+ * @param [response] ListOSPolicyAssignmentsResponse
+ */
+ type ListOSPolicyAssignmentsCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigZonalService|listOSPolicyAssignmentRevisions}.
+ * @param error Error, if any
+ * @param [response] ListOSPolicyAssignmentRevisionsResponse
+ */
+ type ListOSPolicyAssignmentRevisionsCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigZonalService|deleteOSPolicyAssignment}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteOSPolicyAssignmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigZonalService|getOSPolicyAssignmentReport}.
+ * @param error Error, if any
+ * @param [response] OSPolicyAssignmentReport
+ */
+ type GetOSPolicyAssignmentReportCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.OSPolicyAssignmentReport) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigZonalService|listOSPolicyAssignmentReports}.
+ * @param error Error, if any
+ * @param [response] ListOSPolicyAssignmentReportsResponse
+ */
+ type ListOSPolicyAssignmentReportsCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigZonalService|getInventory}.
+ * @param error Error, if any
+ * @param [response] Inventory
+ */
+ type GetInventoryCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.Inventory) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigZonalService|listInventories}.
+ * @param error Error, if any
+ * @param [response] ListInventoriesResponse
+ */
+ type ListInventoriesCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.ListInventoriesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigZonalService|getVulnerabilityReport}.
+ * @param error Error, if any
+ * @param [response] VulnerabilityReport
+ */
+ type GetVulnerabilityReportCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.VulnerabilityReport) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1.OsConfigZonalService|listVulnerabilityReports}.
+ * @param error Error, if any
+ * @param [response] ListVulnerabilityReportsResponse
+ */
+ type ListVulnerabilityReportsCallback = (error: (Error|null), response?: google.cloud.osconfig.v1.ListVulnerabilityReportsResponse) => void;
+ }
+
+ /** Properties of a VulnerabilityReport. */
+ interface IVulnerabilityReport {
+
+ /** VulnerabilityReport name */
+ name?: (string|null);
+
+ /** VulnerabilityReport vulnerabilities */
+ vulnerabilities?: (google.cloud.osconfig.v1.VulnerabilityReport.IVulnerability[]|null);
+
+ /** VulnerabilityReport updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a VulnerabilityReport. */
+ class VulnerabilityReport implements IVulnerabilityReport {
+
+ /**
+ * Constructs a new VulnerabilityReport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IVulnerabilityReport);
+
+ /** VulnerabilityReport name. */
+ public name: string;
+
+ /** VulnerabilityReport vulnerabilities. */
+ public vulnerabilities: google.cloud.osconfig.v1.VulnerabilityReport.IVulnerability[];
+
+ /** VulnerabilityReport updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new VulnerabilityReport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VulnerabilityReport instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IVulnerabilityReport): google.cloud.osconfig.v1.VulnerabilityReport;
+
+ /**
+ * Encodes the specified VulnerabilityReport message. Does not implicitly {@link google.cloud.osconfig.v1.VulnerabilityReport.verify|verify} messages.
+ * @param message VulnerabilityReport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IVulnerabilityReport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VulnerabilityReport message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.VulnerabilityReport.verify|verify} messages.
+ * @param message VulnerabilityReport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IVulnerabilityReport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VulnerabilityReport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VulnerabilityReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.VulnerabilityReport;
+
+ /**
+ * Decodes a VulnerabilityReport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VulnerabilityReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.VulnerabilityReport;
+
+ /**
+ * Verifies a VulnerabilityReport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VulnerabilityReport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VulnerabilityReport
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.VulnerabilityReport;
+
+ /**
+ * Creates a plain object from a VulnerabilityReport message. Also converts values to other types if specified.
+ * @param message VulnerabilityReport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.VulnerabilityReport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VulnerabilityReport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VulnerabilityReport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VulnerabilityReport {
+
+ /** Properties of a Vulnerability. */
+ interface IVulnerability {
+
+ /** Vulnerability details */
+ details?: (google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.IDetails|null);
+
+ /** Vulnerability installedInventoryItemIds */
+ installedInventoryItemIds?: (string[]|null);
+
+ /** Vulnerability availableInventoryItemIds */
+ availableInventoryItemIds?: (string[]|null);
+
+ /** Vulnerability createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Vulnerability updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Vulnerability items */
+ items?: (google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.IItem[]|null);
+ }
+
+ /** Represents a Vulnerability. */
+ class Vulnerability implements IVulnerability {
+
+ /**
+ * Constructs a new Vulnerability.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.VulnerabilityReport.IVulnerability);
+
+ /** Vulnerability details. */
+ public details?: (google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.IDetails|null);
+
+ /** Vulnerability installedInventoryItemIds. */
+ public installedInventoryItemIds: string[];
+
+ /** Vulnerability availableInventoryItemIds. */
+ public availableInventoryItemIds: string[];
+
+ /** Vulnerability createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Vulnerability updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Vulnerability items. */
+ public items: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.IItem[];
+
+ /**
+ * Creates a new Vulnerability instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Vulnerability instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.VulnerabilityReport.IVulnerability): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability;
+
+ /**
+ * Encodes the specified Vulnerability message. Does not implicitly {@link google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.verify|verify} messages.
+ * @param message Vulnerability message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.VulnerabilityReport.IVulnerability, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Vulnerability message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.verify|verify} messages.
+ * @param message Vulnerability message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.VulnerabilityReport.IVulnerability, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Vulnerability message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Vulnerability
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability;
+
+ /**
+ * Decodes a Vulnerability message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Vulnerability
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability;
+
+ /**
+ * Verifies a Vulnerability message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Vulnerability message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Vulnerability
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability;
+
+ /**
+ * Creates a plain object from a Vulnerability message. Also converts values to other types if specified.
+ * @param message Vulnerability
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Vulnerability to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Vulnerability
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Vulnerability {
+
+ /** Properties of a Details. */
+ interface IDetails {
+
+ /** Details cve */
+ cve?: (string|null);
+
+ /** Details cvssV2Score */
+ cvssV2Score?: (number|null);
+
+ /** Details cvssV3 */
+ cvssV3?: (google.cloud.osconfig.v1.ICVSSv3|null);
+
+ /** Details severity */
+ severity?: (string|null);
+
+ /** Details description */
+ description?: (string|null);
+
+ /** Details references */
+ references?: (google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.IReference[]|null);
+ }
+
+ /** Represents a Details. */
+ class Details implements IDetails {
+
+ /**
+ * Constructs a new Details.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.IDetails);
+
+ /** Details cve. */
+ public cve: string;
+
+ /** Details cvssV2Score. */
+ public cvssV2Score: number;
+
+ /** Details cvssV3. */
+ public cvssV3?: (google.cloud.osconfig.v1.ICVSSv3|null);
+
+ /** Details severity. */
+ public severity: string;
+
+ /** Details description. */
+ public description: string;
+
+ /** Details references. */
+ public references: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.IReference[];
+
+ /**
+ * Creates a new Details instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Details instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.IDetails): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details;
+
+ /**
+ * Encodes the specified Details message. Does not implicitly {@link google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.verify|verify} messages.
+ * @param message Details message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.IDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Details message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.verify|verify} messages.
+ * @param message Details message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.IDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Details message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Details
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details;
+
+ /**
+ * Decodes a Details message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Details
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details;
+
+ /**
+ * Verifies a Details message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Details message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Details
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details;
+
+ /**
+ * Creates a plain object from a Details message. Also converts values to other types if specified.
+ * @param message Details
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Details to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Details
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Details {
+
+ /** Properties of a Reference. */
+ interface IReference {
+
+ /** Reference url */
+ url?: (string|null);
+
+ /** Reference source */
+ source?: (string|null);
+ }
+
+ /** Represents a Reference. */
+ class Reference implements IReference {
+
+ /**
+ * Constructs a new Reference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.IReference);
+
+ /** Reference url. */
+ public url: string;
+
+ /** Reference source. */
+ public source: string;
+
+ /**
+ * Creates a new Reference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Reference instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.IReference): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference;
+
+ /**
+ * Encodes the specified Reference message. Does not implicitly {@link google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference.verify|verify} messages.
+ * @param message Reference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.IReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Reference message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference.verify|verify} messages.
+ * @param message Reference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.IReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Reference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Reference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference;
+
+ /**
+ * Decodes a Reference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Reference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference;
+
+ /**
+ * Verifies a Reference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Reference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Reference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference;
+
+ /**
+ * Creates a plain object from a Reference message. Also converts values to other types if specified.
+ * @param message Reference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Reference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Reference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an Item. */
+ interface IItem {
+
+ /** Item installedInventoryItemId */
+ installedInventoryItemId?: (string|null);
+
+ /** Item availableInventoryItemId */
+ availableInventoryItemId?: (string|null);
+
+ /** Item fixedCpeUri */
+ fixedCpeUri?: (string|null);
+
+ /** Item upstreamFix */
+ upstreamFix?: (string|null);
+ }
+
+ /** Represents an Item. */
+ class Item implements IItem {
+
+ /**
+ * Constructs a new Item.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.IItem);
+
+ /** Item installedInventoryItemId. */
+ public installedInventoryItemId: string;
+
+ /** Item availableInventoryItemId. */
+ public availableInventoryItemId: string;
+
+ /** Item fixedCpeUri. */
+ public fixedCpeUri: string;
+
+ /** Item upstreamFix. */
+ public upstreamFix: string;
+
+ /**
+ * Creates a new Item instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Item instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.IItem): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item;
+
+ /**
+ * Encodes the specified Item message. Does not implicitly {@link google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.verify|verify} messages.
+ * @param message Item message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.IItem, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Item message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.verify|verify} messages.
+ * @param message Item message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.IItem, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Item message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Item
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item;
+
+ /**
+ * Decodes an Item message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Item
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item;
+
+ /**
+ * Verifies an Item message.
+ * @param message Plain 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 Item message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Item
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item;
+
+ /**
+ * Creates a plain object from an Item message. Also converts values to other types if specified.
+ * @param message Item
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Item to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Item
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of a GetVulnerabilityReportRequest. */
+ interface IGetVulnerabilityReportRequest {
+
+ /** GetVulnerabilityReportRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetVulnerabilityReportRequest. */
+ class GetVulnerabilityReportRequest implements IGetVulnerabilityReportRequest {
+
+ /**
+ * Constructs a new GetVulnerabilityReportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IGetVulnerabilityReportRequest);
+
+ /** GetVulnerabilityReportRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetVulnerabilityReportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetVulnerabilityReportRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IGetVulnerabilityReportRequest): google.cloud.osconfig.v1.GetVulnerabilityReportRequest;
+
+ /**
+ * Encodes the specified GetVulnerabilityReportRequest message. Does not implicitly {@link google.cloud.osconfig.v1.GetVulnerabilityReportRequest.verify|verify} messages.
+ * @param message GetVulnerabilityReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IGetVulnerabilityReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetVulnerabilityReportRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.GetVulnerabilityReportRequest.verify|verify} messages.
+ * @param message GetVulnerabilityReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IGetVulnerabilityReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetVulnerabilityReportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetVulnerabilityReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.GetVulnerabilityReportRequest;
+
+ /**
+ * Decodes a GetVulnerabilityReportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetVulnerabilityReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.GetVulnerabilityReportRequest;
+
+ /**
+ * Verifies a GetVulnerabilityReportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetVulnerabilityReportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetVulnerabilityReportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.GetVulnerabilityReportRequest;
+
+ /**
+ * Creates a plain object from a GetVulnerabilityReportRequest message. Also converts values to other types if specified.
+ * @param message GetVulnerabilityReportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.GetVulnerabilityReportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetVulnerabilityReportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetVulnerabilityReportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListVulnerabilityReportsRequest. */
+ interface IListVulnerabilityReportsRequest {
+
+ /** ListVulnerabilityReportsRequest parent */
+ parent?: (string|null);
+
+ /** ListVulnerabilityReportsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListVulnerabilityReportsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListVulnerabilityReportsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListVulnerabilityReportsRequest. */
+ class ListVulnerabilityReportsRequest implements IListVulnerabilityReportsRequest {
+
+ /**
+ * Constructs a new ListVulnerabilityReportsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListVulnerabilityReportsRequest);
+
+ /** ListVulnerabilityReportsRequest parent. */
+ public parent: string;
+
+ /** ListVulnerabilityReportsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListVulnerabilityReportsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListVulnerabilityReportsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListVulnerabilityReportsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListVulnerabilityReportsRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListVulnerabilityReportsRequest): google.cloud.osconfig.v1.ListVulnerabilityReportsRequest;
+
+ /**
+ * Encodes the specified ListVulnerabilityReportsRequest message. Does not implicitly {@link google.cloud.osconfig.v1.ListVulnerabilityReportsRequest.verify|verify} messages.
+ * @param message ListVulnerabilityReportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListVulnerabilityReportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListVulnerabilityReportsRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListVulnerabilityReportsRequest.verify|verify} messages.
+ * @param message ListVulnerabilityReportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListVulnerabilityReportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListVulnerabilityReportsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListVulnerabilityReportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListVulnerabilityReportsRequest;
+
+ /**
+ * Decodes a ListVulnerabilityReportsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListVulnerabilityReportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListVulnerabilityReportsRequest;
+
+ /**
+ * Verifies a ListVulnerabilityReportsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListVulnerabilityReportsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListVulnerabilityReportsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListVulnerabilityReportsRequest;
+
+ /**
+ * Creates a plain object from a ListVulnerabilityReportsRequest message. Also converts values to other types if specified.
+ * @param message ListVulnerabilityReportsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListVulnerabilityReportsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListVulnerabilityReportsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListVulnerabilityReportsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListVulnerabilityReportsResponse. */
+ interface IListVulnerabilityReportsResponse {
+
+ /** ListVulnerabilityReportsResponse vulnerabilityReports */
+ vulnerabilityReports?: (google.cloud.osconfig.v1.IVulnerabilityReport[]|null);
+
+ /** ListVulnerabilityReportsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListVulnerabilityReportsResponse. */
+ class ListVulnerabilityReportsResponse implements IListVulnerabilityReportsResponse {
+
+ /**
+ * Constructs a new ListVulnerabilityReportsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.IListVulnerabilityReportsResponse);
+
+ /** ListVulnerabilityReportsResponse vulnerabilityReports. */
+ public vulnerabilityReports: google.cloud.osconfig.v1.IVulnerabilityReport[];
+
+ /** ListVulnerabilityReportsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListVulnerabilityReportsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListVulnerabilityReportsResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.IListVulnerabilityReportsResponse): google.cloud.osconfig.v1.ListVulnerabilityReportsResponse;
+
+ /**
+ * Encodes the specified ListVulnerabilityReportsResponse message. Does not implicitly {@link google.cloud.osconfig.v1.ListVulnerabilityReportsResponse.verify|verify} messages.
+ * @param message ListVulnerabilityReportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.IListVulnerabilityReportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListVulnerabilityReportsResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListVulnerabilityReportsResponse.verify|verify} messages.
+ * @param message ListVulnerabilityReportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.IListVulnerabilityReportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListVulnerabilityReportsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListVulnerabilityReportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.ListVulnerabilityReportsResponse;
+
+ /**
+ * Decodes a ListVulnerabilityReportsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListVulnerabilityReportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.ListVulnerabilityReportsResponse;
+
+ /**
+ * Verifies a ListVulnerabilityReportsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListVulnerabilityReportsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListVulnerabilityReportsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.ListVulnerabilityReportsResponse;
+
+ /**
+ * Creates a plain object from a ListVulnerabilityReportsResponse message. Also converts values to other types if specified.
+ * @param message ListVulnerabilityReportsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.ListVulnerabilityReportsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListVulnerabilityReportsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListVulnerabilityReportsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CVSSv3. */
+ interface ICVSSv3 {
+
+ /** CVSSv3 baseScore */
+ baseScore?: (number|null);
+
+ /** CVSSv3 exploitabilityScore */
+ exploitabilityScore?: (number|null);
+
+ /** CVSSv3 impactScore */
+ impactScore?: (number|null);
+
+ /** CVSSv3 attackVector */
+ attackVector?: (google.cloud.osconfig.v1.CVSSv3.AttackVector|keyof typeof google.cloud.osconfig.v1.CVSSv3.AttackVector|null);
+
+ /** CVSSv3 attackComplexity */
+ attackComplexity?: (google.cloud.osconfig.v1.CVSSv3.AttackComplexity|keyof typeof google.cloud.osconfig.v1.CVSSv3.AttackComplexity|null);
+
+ /** CVSSv3 privilegesRequired */
+ privilegesRequired?: (google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired|keyof typeof google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired|null);
+
+ /** CVSSv3 userInteraction */
+ userInteraction?: (google.cloud.osconfig.v1.CVSSv3.UserInteraction|keyof typeof google.cloud.osconfig.v1.CVSSv3.UserInteraction|null);
+
+ /** CVSSv3 scope */
+ scope?: (google.cloud.osconfig.v1.CVSSv3.Scope|keyof typeof google.cloud.osconfig.v1.CVSSv3.Scope|null);
+
+ /** CVSSv3 confidentialityImpact */
+ confidentialityImpact?: (google.cloud.osconfig.v1.CVSSv3.Impact|keyof typeof google.cloud.osconfig.v1.CVSSv3.Impact|null);
+
+ /** CVSSv3 integrityImpact */
+ integrityImpact?: (google.cloud.osconfig.v1.CVSSv3.Impact|keyof typeof google.cloud.osconfig.v1.CVSSv3.Impact|null);
+
+ /** CVSSv3 availabilityImpact */
+ availabilityImpact?: (google.cloud.osconfig.v1.CVSSv3.Impact|keyof typeof google.cloud.osconfig.v1.CVSSv3.Impact|null);
+ }
+
+ /** Represents a CVSSv3. */
+ class CVSSv3 implements ICVSSv3 {
+
+ /**
+ * Constructs a new CVSSv3.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1.ICVSSv3);
+
+ /** CVSSv3 baseScore. */
+ public baseScore: number;
+
+ /** CVSSv3 exploitabilityScore. */
+ public exploitabilityScore: number;
+
+ /** CVSSv3 impactScore. */
+ public impactScore: number;
+
+ /** CVSSv3 attackVector. */
+ public attackVector: (google.cloud.osconfig.v1.CVSSv3.AttackVector|keyof typeof google.cloud.osconfig.v1.CVSSv3.AttackVector);
+
+ /** CVSSv3 attackComplexity. */
+ public attackComplexity: (google.cloud.osconfig.v1.CVSSv3.AttackComplexity|keyof typeof google.cloud.osconfig.v1.CVSSv3.AttackComplexity);
+
+ /** CVSSv3 privilegesRequired. */
+ public privilegesRequired: (google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired|keyof typeof google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired);
+
+ /** CVSSv3 userInteraction. */
+ public userInteraction: (google.cloud.osconfig.v1.CVSSv3.UserInteraction|keyof typeof google.cloud.osconfig.v1.CVSSv3.UserInteraction);
+
+ /** CVSSv3 scope. */
+ public scope: (google.cloud.osconfig.v1.CVSSv3.Scope|keyof typeof google.cloud.osconfig.v1.CVSSv3.Scope);
+
+ /** CVSSv3 confidentialityImpact. */
+ public confidentialityImpact: (google.cloud.osconfig.v1.CVSSv3.Impact|keyof typeof google.cloud.osconfig.v1.CVSSv3.Impact);
+
+ /** CVSSv3 integrityImpact. */
+ public integrityImpact: (google.cloud.osconfig.v1.CVSSv3.Impact|keyof typeof google.cloud.osconfig.v1.CVSSv3.Impact);
+
+ /** CVSSv3 availabilityImpact. */
+ public availabilityImpact: (google.cloud.osconfig.v1.CVSSv3.Impact|keyof typeof google.cloud.osconfig.v1.CVSSv3.Impact);
+
+ /**
+ * Creates a new CVSSv3 instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CVSSv3 instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1.ICVSSv3): google.cloud.osconfig.v1.CVSSv3;
+
+ /**
+ * Encodes the specified CVSSv3 message. Does not implicitly {@link google.cloud.osconfig.v1.CVSSv3.verify|verify} messages.
+ * @param message CVSSv3 message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1.ICVSSv3, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CVSSv3 message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.CVSSv3.verify|verify} messages.
+ * @param message CVSSv3 message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1.ICVSSv3, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CVSSv3 message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CVSSv3
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1.CVSSv3;
+
+ /**
+ * Decodes a CVSSv3 message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CVSSv3
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1.CVSSv3;
+
+ /**
+ * Verifies a CVSSv3 message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CVSSv3 message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CVSSv3
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1.CVSSv3;
+
+ /**
+ * Creates a plain object from a CVSSv3 message. Also converts values to other types if specified.
+ * @param message CVSSv3
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1.CVSSv3, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CVSSv3 to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CVSSv3
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CVSSv3 {
+
+ /** AttackVector enum. */
+ enum AttackVector {
+ ATTACK_VECTOR_UNSPECIFIED = 0,
+ ATTACK_VECTOR_NETWORK = 1,
+ ATTACK_VECTOR_ADJACENT = 2,
+ ATTACK_VECTOR_LOCAL = 3,
+ ATTACK_VECTOR_PHYSICAL = 4
+ }
+
+ /** AttackComplexity enum. */
+ enum AttackComplexity {
+ ATTACK_COMPLEXITY_UNSPECIFIED = 0,
+ ATTACK_COMPLEXITY_LOW = 1,
+ ATTACK_COMPLEXITY_HIGH = 2
+ }
+
+ /** PrivilegesRequired enum. */
+ enum PrivilegesRequired {
+ PRIVILEGES_REQUIRED_UNSPECIFIED = 0,
+ PRIVILEGES_REQUIRED_NONE = 1,
+ PRIVILEGES_REQUIRED_LOW = 2,
+ PRIVILEGES_REQUIRED_HIGH = 3
+ }
+
+ /** UserInteraction enum. */
+ enum UserInteraction {
+ USER_INTERACTION_UNSPECIFIED = 0,
+ USER_INTERACTION_NONE = 1,
+ USER_INTERACTION_REQUIRED = 2
+ }
+
+ /** Scope enum. */
+ enum Scope {
+ SCOPE_UNSPECIFIED = 0,
+ SCOPE_UNCHANGED = 1,
+ SCOPE_CHANGED = 2
+ }
+
+ /** Impact enum. */
+ enum Impact {
+ IMPACT_UNSPECIFIED = 0,
+ IMPACT_HIGH = 1,
+ IMPACT_LOW = 2,
+ IMPACT_NONE = 3
+ }
+ }
+ }
+
+ /** Namespace v1alpha. */
+ namespace v1alpha {
+
+ /** Properties of a OSPolicyResourceConfigStep. */
+ interface IOSPolicyResourceConfigStep {
+
+ /** OSPolicyResourceConfigStep type */
+ type?: (google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type|null);
+
+ /** OSPolicyResourceConfigStep outcome */
+ outcome?: (google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome|null);
+
+ /** OSPolicyResourceConfigStep errorMessage */
+ errorMessage?: (string|null);
+ }
+
+ /** Represents a OSPolicyResourceConfigStep. */
+ class OSPolicyResourceConfigStep implements IOSPolicyResourceConfigStep {
+
+ /**
+ * Constructs a new OSPolicyResourceConfigStep.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IOSPolicyResourceConfigStep);
+
+ /** OSPolicyResourceConfigStep type. */
+ public type: (google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type);
+
+ /** OSPolicyResourceConfigStep outcome. */
+ public outcome: (google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome);
+
+ /** OSPolicyResourceConfigStep errorMessage. */
+ public errorMessage: string;
+
+ /**
+ * Creates a new OSPolicyResourceConfigStep instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyResourceConfigStep instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IOSPolicyResourceConfigStep): google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep;
+
+ /**
+ * Encodes the specified OSPolicyResourceConfigStep message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.verify|verify} messages.
+ * @param message OSPolicyResourceConfigStep message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IOSPolicyResourceConfigStep, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyResourceConfigStep message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.verify|verify} messages.
+ * @param message OSPolicyResourceConfigStep message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IOSPolicyResourceConfigStep, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyResourceConfigStep message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyResourceConfigStep
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep;
+
+ /**
+ * Decodes a OSPolicyResourceConfigStep message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyResourceConfigStep
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep;
+
+ /**
+ * Verifies a OSPolicyResourceConfigStep message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyResourceConfigStep message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyResourceConfigStep
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep;
+
+ /**
+ * Creates a plain object from a OSPolicyResourceConfigStep message. Also converts values to other types if specified.
+ * @param message OSPolicyResourceConfigStep
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyResourceConfigStep to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyResourceConfigStep
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyResourceConfigStep {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ VALIDATION = 1,
+ DESIRED_STATE_CHECK = 2,
+ DESIRED_STATE_ENFORCEMENT = 3,
+ DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4
+ }
+
+ /** Outcome enum. */
+ enum Outcome {
+ OUTCOME_UNSPECIFIED = 0,
+ SUCCEEDED = 1,
+ FAILED = 2
+ }
+ }
+
+ /** Properties of a OSPolicyResourceCompliance. */
+ interface IOSPolicyResourceCompliance {
+
+ /** OSPolicyResourceCompliance osPolicyResourceId */
+ osPolicyResourceId?: (string|null);
+
+ /** OSPolicyResourceCompliance configSteps */
+ configSteps?: (google.cloud.osconfig.v1alpha.IOSPolicyResourceConfigStep[]|null);
+
+ /** OSPolicyResourceCompliance state */
+ state?: (google.cloud.osconfig.v1alpha.OSPolicyComplianceState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyComplianceState|null);
+
+ /** OSPolicyResourceCompliance execResourceOutput */
+ execResourceOutput?: (google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.IExecResourceOutput|null);
+ }
+
+ /** Represents a OSPolicyResourceCompliance. */
+ class OSPolicyResourceCompliance implements IOSPolicyResourceCompliance {
+
+ /**
+ * Constructs a new OSPolicyResourceCompliance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IOSPolicyResourceCompliance);
+
+ /** OSPolicyResourceCompliance osPolicyResourceId. */
+ public osPolicyResourceId: string;
+
+ /** OSPolicyResourceCompliance configSteps. */
+ public configSteps: google.cloud.osconfig.v1alpha.IOSPolicyResourceConfigStep[];
+
+ /** OSPolicyResourceCompliance state. */
+ public state: (google.cloud.osconfig.v1alpha.OSPolicyComplianceState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyComplianceState);
+
+ /** OSPolicyResourceCompliance execResourceOutput. */
+ public execResourceOutput?: (google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.IExecResourceOutput|null);
+
+ /** OSPolicyResourceCompliance output. */
+ public output?: "execResourceOutput";
+
+ /**
+ * Creates a new OSPolicyResourceCompliance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyResourceCompliance instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IOSPolicyResourceCompliance): google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance;
+
+ /**
+ * Encodes the specified OSPolicyResourceCompliance message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.verify|verify} messages.
+ * @param message OSPolicyResourceCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IOSPolicyResourceCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyResourceCompliance message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.verify|verify} messages.
+ * @param message OSPolicyResourceCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IOSPolicyResourceCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyResourceCompliance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyResourceCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance;
+
+ /**
+ * Decodes a OSPolicyResourceCompliance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyResourceCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance;
+
+ /**
+ * Verifies a OSPolicyResourceCompliance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyResourceCompliance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyResourceCompliance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance;
+
+ /**
+ * Creates a plain object from a OSPolicyResourceCompliance message. Also converts values to other types if specified.
+ * @param message OSPolicyResourceCompliance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyResourceCompliance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyResourceCompliance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyResourceCompliance {
+
+ /** Properties of an ExecResourceOutput. */
+ interface IExecResourceOutput {
+
+ /** ExecResourceOutput enforcementOutput */
+ enforcementOutput?: (Uint8Array|string|null);
+ }
+
+ /** Represents an ExecResourceOutput. */
+ class ExecResourceOutput implements IExecResourceOutput {
+
+ /**
+ * Constructs a new ExecResourceOutput.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.IExecResourceOutput);
+
+ /** ExecResourceOutput enforcementOutput. */
+ public enforcementOutput: (Uint8Array|string);
+
+ /**
+ * Creates a new ExecResourceOutput instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExecResourceOutput instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.IExecResourceOutput): google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput;
+
+ /**
+ * Encodes the specified ExecResourceOutput message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput.verify|verify} messages.
+ * @param message ExecResourceOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.IExecResourceOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExecResourceOutput message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput.verify|verify} messages.
+ * @param message ExecResourceOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.IExecResourceOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExecResourceOutput message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExecResourceOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput;
+
+ /**
+ * Decodes an ExecResourceOutput message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExecResourceOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput;
+
+ /**
+ * Verifies an ExecResourceOutput message.
+ * @param message Plain 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 ExecResourceOutput message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExecResourceOutput
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput;
+
+ /**
+ * Creates a plain object from an ExecResourceOutput message. Also converts values to other types if specified.
+ * @param message ExecResourceOutput
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExecResourceOutput to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExecResourceOutput
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** OSPolicyComplianceState enum. */
+ enum OSPolicyComplianceState {
+ OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED = 0,
+ COMPLIANT = 1,
+ NON_COMPLIANT = 2,
+ UNKNOWN = 3,
+ NO_OS_POLICIES_APPLICABLE = 4
+ }
+
+ /** Properties of an InstanceOSPoliciesCompliance. */
+ interface IInstanceOSPoliciesCompliance {
+
+ /** InstanceOSPoliciesCompliance name */
+ name?: (string|null);
+
+ /** InstanceOSPoliciesCompliance instance */
+ instance?: (string|null);
+
+ /** InstanceOSPoliciesCompliance state */
+ state?: (google.cloud.osconfig.v1alpha.OSPolicyComplianceState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyComplianceState|null);
+
+ /** InstanceOSPoliciesCompliance detailedState */
+ detailedState?: (string|null);
+
+ /** InstanceOSPoliciesCompliance detailedStateReason */
+ detailedStateReason?: (string|null);
+
+ /** InstanceOSPoliciesCompliance osPolicyCompliances */
+ osPolicyCompliances?: (google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.IOSPolicyCompliance[]|null);
+
+ /** InstanceOSPoliciesCompliance lastComplianceCheckTime */
+ lastComplianceCheckTime?: (google.protobuf.ITimestamp|null);
+
+ /** InstanceOSPoliciesCompliance lastComplianceRunId */
+ lastComplianceRunId?: (string|null);
+ }
+
+ /** Represents an InstanceOSPoliciesCompliance. */
+ class InstanceOSPoliciesCompliance implements IInstanceOSPoliciesCompliance {
+
+ /**
+ * Constructs a new InstanceOSPoliciesCompliance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IInstanceOSPoliciesCompliance);
+
+ /** InstanceOSPoliciesCompliance name. */
+ public name: string;
+
+ /** InstanceOSPoliciesCompliance instance. */
+ public instance: string;
+
+ /** InstanceOSPoliciesCompliance state. */
+ public state: (google.cloud.osconfig.v1alpha.OSPolicyComplianceState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyComplianceState);
+
+ /** InstanceOSPoliciesCompliance detailedState. */
+ public detailedState: string;
+
+ /** InstanceOSPoliciesCompliance detailedStateReason. */
+ public detailedStateReason: string;
+
+ /** InstanceOSPoliciesCompliance osPolicyCompliances. */
+ public osPolicyCompliances: google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.IOSPolicyCompliance[];
+
+ /** InstanceOSPoliciesCompliance lastComplianceCheckTime. */
+ public lastComplianceCheckTime?: (google.protobuf.ITimestamp|null);
+
+ /** InstanceOSPoliciesCompliance lastComplianceRunId. */
+ public lastComplianceRunId: string;
+
+ /**
+ * Creates a new InstanceOSPoliciesCompliance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InstanceOSPoliciesCompliance instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IInstanceOSPoliciesCompliance): google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance;
+
+ /**
+ * Encodes the specified InstanceOSPoliciesCompliance message. Does not implicitly {@link google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.verify|verify} messages.
+ * @param message InstanceOSPoliciesCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IInstanceOSPoliciesCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InstanceOSPoliciesCompliance message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.verify|verify} messages.
+ * @param message InstanceOSPoliciesCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IInstanceOSPoliciesCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InstanceOSPoliciesCompliance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InstanceOSPoliciesCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance;
+
+ /**
+ * Decodes an InstanceOSPoliciesCompliance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InstanceOSPoliciesCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance;
+
+ /**
+ * Verifies an InstanceOSPoliciesCompliance message.
+ * @param message Plain 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 InstanceOSPoliciesCompliance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InstanceOSPoliciesCompliance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance;
+
+ /**
+ * Creates a plain object from an InstanceOSPoliciesCompliance message. Also converts values to other types if specified.
+ * @param message InstanceOSPoliciesCompliance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InstanceOSPoliciesCompliance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InstanceOSPoliciesCompliance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace InstanceOSPoliciesCompliance {
+
+ /** Properties of a OSPolicyCompliance. */
+ interface IOSPolicyCompliance {
+
+ /** OSPolicyCompliance osPolicyId */
+ osPolicyId?: (string|null);
+
+ /** OSPolicyCompliance osPolicyAssignment */
+ osPolicyAssignment?: (string|null);
+
+ /** OSPolicyCompliance state */
+ state?: (google.cloud.osconfig.v1alpha.OSPolicyComplianceState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyComplianceState|null);
+
+ /** OSPolicyCompliance osPolicyResourceCompliances */
+ osPolicyResourceCompliances?: (google.cloud.osconfig.v1alpha.IOSPolicyResourceCompliance[]|null);
+ }
+
+ /** Represents a OSPolicyCompliance. */
+ class OSPolicyCompliance implements IOSPolicyCompliance {
+
+ /**
+ * Constructs a new OSPolicyCompliance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.IOSPolicyCompliance);
+
+ /** OSPolicyCompliance osPolicyId. */
+ public osPolicyId: string;
+
+ /** OSPolicyCompliance osPolicyAssignment. */
+ public osPolicyAssignment: string;
+
+ /** OSPolicyCompliance state. */
+ public state: (google.cloud.osconfig.v1alpha.OSPolicyComplianceState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyComplianceState);
+
+ /** OSPolicyCompliance osPolicyResourceCompliances. */
+ public osPolicyResourceCompliances: google.cloud.osconfig.v1alpha.IOSPolicyResourceCompliance[];
+
+ /**
+ * Creates a new OSPolicyCompliance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyCompliance instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.IOSPolicyCompliance): google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance;
+
+ /**
+ * Encodes the specified OSPolicyCompliance message. Does not implicitly {@link google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance.verify|verify} messages.
+ * @param message OSPolicyCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.IOSPolicyCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyCompliance message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance.verify|verify} messages.
+ * @param message OSPolicyCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.IOSPolicyCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyCompliance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance;
+
+ /**
+ * Decodes a OSPolicyCompliance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance;
+
+ /**
+ * Verifies a OSPolicyCompliance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyCompliance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyCompliance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance;
+
+ /**
+ * Creates a plain object from a OSPolicyCompliance message. Also converts values to other types if specified.
+ * @param message OSPolicyCompliance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyCompliance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyCompliance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GetInstanceOSPoliciesComplianceRequest. */
+ interface IGetInstanceOSPoliciesComplianceRequest {
+
+ /** GetInstanceOSPoliciesComplianceRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetInstanceOSPoliciesComplianceRequest. */
+ class GetInstanceOSPoliciesComplianceRequest implements IGetInstanceOSPoliciesComplianceRequest {
+
+ /**
+ * Constructs a new GetInstanceOSPoliciesComplianceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IGetInstanceOSPoliciesComplianceRequest);
+
+ /** GetInstanceOSPoliciesComplianceRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetInstanceOSPoliciesComplianceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetInstanceOSPoliciesComplianceRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IGetInstanceOSPoliciesComplianceRequest): google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest;
+
+ /**
+ * Encodes the specified GetInstanceOSPoliciesComplianceRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest.verify|verify} messages.
+ * @param message GetInstanceOSPoliciesComplianceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IGetInstanceOSPoliciesComplianceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetInstanceOSPoliciesComplianceRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest.verify|verify} messages.
+ * @param message GetInstanceOSPoliciesComplianceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IGetInstanceOSPoliciesComplianceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetInstanceOSPoliciesComplianceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetInstanceOSPoliciesComplianceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest;
+
+ /**
+ * Decodes a GetInstanceOSPoliciesComplianceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetInstanceOSPoliciesComplianceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest;
+
+ /**
+ * Verifies a GetInstanceOSPoliciesComplianceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetInstanceOSPoliciesComplianceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetInstanceOSPoliciesComplianceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest;
+
+ /**
+ * Creates a plain object from a GetInstanceOSPoliciesComplianceRequest message. Also converts values to other types if specified.
+ * @param message GetInstanceOSPoliciesComplianceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetInstanceOSPoliciesComplianceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetInstanceOSPoliciesComplianceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListInstanceOSPoliciesCompliancesRequest. */
+ interface IListInstanceOSPoliciesCompliancesRequest {
+
+ /** ListInstanceOSPoliciesCompliancesRequest parent */
+ parent?: (string|null);
+
+ /** ListInstanceOSPoliciesCompliancesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListInstanceOSPoliciesCompliancesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListInstanceOSPoliciesCompliancesRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListInstanceOSPoliciesCompliancesRequest. */
+ class ListInstanceOSPoliciesCompliancesRequest implements IListInstanceOSPoliciesCompliancesRequest {
+
+ /**
+ * Constructs a new ListInstanceOSPoliciesCompliancesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IListInstanceOSPoliciesCompliancesRequest);
+
+ /** ListInstanceOSPoliciesCompliancesRequest parent. */
+ public parent: string;
+
+ /** ListInstanceOSPoliciesCompliancesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListInstanceOSPoliciesCompliancesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListInstanceOSPoliciesCompliancesRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListInstanceOSPoliciesCompliancesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListInstanceOSPoliciesCompliancesRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IListInstanceOSPoliciesCompliancesRequest): google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest;
+
+ /**
+ * Encodes the specified ListInstanceOSPoliciesCompliancesRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest.verify|verify} messages.
+ * @param message ListInstanceOSPoliciesCompliancesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IListInstanceOSPoliciesCompliancesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListInstanceOSPoliciesCompliancesRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest.verify|verify} messages.
+ * @param message ListInstanceOSPoliciesCompliancesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IListInstanceOSPoliciesCompliancesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListInstanceOSPoliciesCompliancesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListInstanceOSPoliciesCompliancesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest;
+
+ /**
+ * Decodes a ListInstanceOSPoliciesCompliancesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListInstanceOSPoliciesCompliancesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest;
+
+ /**
+ * Verifies a ListInstanceOSPoliciesCompliancesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListInstanceOSPoliciesCompliancesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListInstanceOSPoliciesCompliancesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest;
+
+ /**
+ * Creates a plain object from a ListInstanceOSPoliciesCompliancesRequest message. Also converts values to other types if specified.
+ * @param message ListInstanceOSPoliciesCompliancesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListInstanceOSPoliciesCompliancesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListInstanceOSPoliciesCompliancesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListInstanceOSPoliciesCompliancesResponse. */
+ interface IListInstanceOSPoliciesCompliancesResponse {
+
+ /** ListInstanceOSPoliciesCompliancesResponse instanceOsPoliciesCompliances */
+ instanceOsPoliciesCompliances?: (google.cloud.osconfig.v1alpha.IInstanceOSPoliciesCompliance[]|null);
+
+ /** ListInstanceOSPoliciesCompliancesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListInstanceOSPoliciesCompliancesResponse. */
+ class ListInstanceOSPoliciesCompliancesResponse implements IListInstanceOSPoliciesCompliancesResponse {
+
+ /**
+ * Constructs a new ListInstanceOSPoliciesCompliancesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IListInstanceOSPoliciesCompliancesResponse);
+
+ /** ListInstanceOSPoliciesCompliancesResponse instanceOsPoliciesCompliances. */
+ public instanceOsPoliciesCompliances: google.cloud.osconfig.v1alpha.IInstanceOSPoliciesCompliance[];
+
+ /** ListInstanceOSPoliciesCompliancesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListInstanceOSPoliciesCompliancesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListInstanceOSPoliciesCompliancesResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IListInstanceOSPoliciesCompliancesResponse): google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse;
+
+ /**
+ * Encodes the specified ListInstanceOSPoliciesCompliancesResponse message. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse.verify|verify} messages.
+ * @param message ListInstanceOSPoliciesCompliancesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IListInstanceOSPoliciesCompliancesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListInstanceOSPoliciesCompliancesResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse.verify|verify} messages.
+ * @param message ListInstanceOSPoliciesCompliancesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IListInstanceOSPoliciesCompliancesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListInstanceOSPoliciesCompliancesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListInstanceOSPoliciesCompliancesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse;
+
+ /**
+ * Decodes a ListInstanceOSPoliciesCompliancesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListInstanceOSPoliciesCompliancesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse;
+
+ /**
+ * Verifies a ListInstanceOSPoliciesCompliancesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListInstanceOSPoliciesCompliancesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListInstanceOSPoliciesCompliancesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse;
+
+ /**
+ * Creates a plain object from a ListInstanceOSPoliciesCompliancesResponse message. Also converts values to other types if specified.
+ * @param message ListInstanceOSPoliciesCompliancesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListInstanceOSPoliciesCompliancesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListInstanceOSPoliciesCompliancesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Inventory. */
+ interface IInventory {
+
+ /** Inventory name */
+ name?: (string|null);
+
+ /** Inventory osInfo */
+ osInfo?: (google.cloud.osconfig.v1alpha.Inventory.IOsInfo|null);
+
+ /** Inventory items */
+ items?: ({ [k: string]: google.cloud.osconfig.v1alpha.Inventory.IItem }|null);
+
+ /** Inventory updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an Inventory. */
+ class Inventory implements IInventory {
+
+ /**
+ * Constructs a new Inventory.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IInventory);
+
+ /** Inventory name. */
+ public name: string;
+
+ /** Inventory osInfo. */
+ public osInfo?: (google.cloud.osconfig.v1alpha.Inventory.IOsInfo|null);
+
+ /** Inventory items. */
+ public items: { [k: string]: google.cloud.osconfig.v1alpha.Inventory.IItem };
+
+ /** Inventory updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new Inventory instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Inventory instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IInventory): google.cloud.osconfig.v1alpha.Inventory;
+
+ /**
+ * Encodes the specified Inventory message. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.verify|verify} messages.
+ * @param message Inventory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IInventory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Inventory message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.verify|verify} messages.
+ * @param message Inventory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IInventory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Inventory message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Inventory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.Inventory;
+
+ /**
+ * Decodes an Inventory message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Inventory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.Inventory;
+
+ /**
+ * Verifies an Inventory message.
+ * @param message Plain 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 Inventory message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Inventory
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.Inventory;
+
+ /**
+ * Creates a plain object from an Inventory message. Also converts values to other types if specified.
+ * @param message Inventory
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.Inventory, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Inventory to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Inventory
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Inventory {
+
+ /** Properties of an OsInfo. */
+ interface IOsInfo {
+
+ /** OsInfo hostname */
+ hostname?: (string|null);
+
+ /** OsInfo longName */
+ longName?: (string|null);
+
+ /** OsInfo shortName */
+ shortName?: (string|null);
+
+ /** OsInfo version */
+ version?: (string|null);
+
+ /** OsInfo architecture */
+ architecture?: (string|null);
+
+ /** OsInfo kernelVersion */
+ kernelVersion?: (string|null);
+
+ /** OsInfo kernelRelease */
+ kernelRelease?: (string|null);
+
+ /** OsInfo osconfigAgentVersion */
+ osconfigAgentVersion?: (string|null);
+ }
+
+ /** Represents an OsInfo. */
+ class OsInfo implements IOsInfo {
+
+ /**
+ * Constructs a new OsInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.Inventory.IOsInfo);
+
+ /** OsInfo hostname. */
+ public hostname: string;
+
+ /** OsInfo longName. */
+ public longName: string;
+
+ /** OsInfo shortName. */
+ public shortName: string;
+
+ /** OsInfo version. */
+ public version: string;
+
+ /** OsInfo architecture. */
+ public architecture: string;
+
+ /** OsInfo kernelVersion. */
+ public kernelVersion: string;
+
+ /** OsInfo kernelRelease. */
+ public kernelRelease: string;
+
+ /** OsInfo osconfigAgentVersion. */
+ public osconfigAgentVersion: string;
+
+ /**
+ * Creates a new OsInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OsInfo instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.Inventory.IOsInfo): google.cloud.osconfig.v1alpha.Inventory.OsInfo;
+
+ /**
+ * Encodes the specified OsInfo message. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.OsInfo.verify|verify} messages.
+ * @param message OsInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.Inventory.IOsInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OsInfo message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.OsInfo.verify|verify} messages.
+ * @param message OsInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.Inventory.IOsInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OsInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OsInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.Inventory.OsInfo;
+
+ /**
+ * Decodes an OsInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OsInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.Inventory.OsInfo;
+
+ /**
+ * Verifies an OsInfo message.
+ * @param message Plain 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 OsInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OsInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.Inventory.OsInfo;
+
+ /**
+ * Creates a plain object from an OsInfo message. Also converts values to other types if specified.
+ * @param message OsInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.Inventory.OsInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OsInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OsInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Item. */
+ interface IItem {
+
+ /** Item id */
+ id?: (string|null);
+
+ /** Item originType */
+ originType?: (google.cloud.osconfig.v1alpha.Inventory.Item.OriginType|keyof typeof google.cloud.osconfig.v1alpha.Inventory.Item.OriginType|null);
+
+ /** Item createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Item updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Item type */
+ type?: (google.cloud.osconfig.v1alpha.Inventory.Item.Type|keyof typeof google.cloud.osconfig.v1alpha.Inventory.Item.Type|null);
+
+ /** Item installedPackage */
+ installedPackage?: (google.cloud.osconfig.v1alpha.Inventory.ISoftwarePackage|null);
+
+ /** Item availablePackage */
+ availablePackage?: (google.cloud.osconfig.v1alpha.Inventory.ISoftwarePackage|null);
+ }
+
+ /** Represents an Item. */
+ class Item implements IItem {
+
+ /**
+ * Constructs a new Item.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.Inventory.IItem);
+
+ /** Item id. */
+ public id: string;
+
+ /** Item originType. */
+ public originType: (google.cloud.osconfig.v1alpha.Inventory.Item.OriginType|keyof typeof google.cloud.osconfig.v1alpha.Inventory.Item.OriginType);
+
+ /** Item createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Item updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Item type. */
+ public type: (google.cloud.osconfig.v1alpha.Inventory.Item.Type|keyof typeof google.cloud.osconfig.v1alpha.Inventory.Item.Type);
+
+ /** Item installedPackage. */
+ public installedPackage?: (google.cloud.osconfig.v1alpha.Inventory.ISoftwarePackage|null);
+
+ /** Item availablePackage. */
+ public availablePackage?: (google.cloud.osconfig.v1alpha.Inventory.ISoftwarePackage|null);
+
+ /** Item details. */
+ public details?: ("installedPackage"|"availablePackage");
+
+ /**
+ * Creates a new Item instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Item instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.Inventory.IItem): google.cloud.osconfig.v1alpha.Inventory.Item;
+
+ /**
+ * Encodes the specified Item message. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.Item.verify|verify} messages.
+ * @param message Item message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.Inventory.IItem, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Item message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.Item.verify|verify} messages.
+ * @param message Item message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.Inventory.IItem, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Item message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Item
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.Inventory.Item;
+
+ /**
+ * Decodes an Item message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Item
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.Inventory.Item;
+
+ /**
+ * Verifies an Item message.
+ * @param message Plain 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 Item message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Item
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.Inventory.Item;
+
+ /**
+ * Creates a plain object from an Item message. Also converts values to other types if specified.
+ * @param message Item
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.Inventory.Item, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Item to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Item
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Item {
+
+ /** OriginType enum. */
+ enum OriginType {
+ ORIGIN_TYPE_UNSPECIFIED = 0,
+ INVENTORY_REPORT = 1
+ }
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ INSTALLED_PACKAGE = 1,
+ AVAILABLE_PACKAGE = 2
+ }
+ }
+
+ /** Properties of a SoftwarePackage. */
+ interface ISoftwarePackage {
+
+ /** SoftwarePackage yumPackage */
+ yumPackage?: (google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage aptPackage */
+ aptPackage?: (google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage zypperPackage */
+ zypperPackage?: (google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage googetPackage */
+ googetPackage?: (google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage zypperPatch */
+ zypperPatch?: (google.cloud.osconfig.v1alpha.Inventory.IZypperPatch|null);
+
+ /** SoftwarePackage wuaPackage */
+ wuaPackage?: (google.cloud.osconfig.v1alpha.Inventory.IWindowsUpdatePackage|null);
+
+ /** SoftwarePackage qfePackage */
+ qfePackage?: (google.cloud.osconfig.v1alpha.Inventory.IWindowsQuickFixEngineeringPackage|null);
+
+ /** SoftwarePackage cosPackage */
+ cosPackage?: (google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage windowsApplication */
+ windowsApplication?: (google.cloud.osconfig.v1alpha.Inventory.IWindowsApplication|null);
+ }
+
+ /** Represents a SoftwarePackage. */
+ class SoftwarePackage implements ISoftwarePackage {
+
+ /**
+ * Constructs a new SoftwarePackage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.Inventory.ISoftwarePackage);
+
+ /** SoftwarePackage yumPackage. */
+ public yumPackage?: (google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage aptPackage. */
+ public aptPackage?: (google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage zypperPackage. */
+ public zypperPackage?: (google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage googetPackage. */
+ public googetPackage?: (google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage zypperPatch. */
+ public zypperPatch?: (google.cloud.osconfig.v1alpha.Inventory.IZypperPatch|null);
+
+ /** SoftwarePackage wuaPackage. */
+ public wuaPackage?: (google.cloud.osconfig.v1alpha.Inventory.IWindowsUpdatePackage|null);
+
+ /** SoftwarePackage qfePackage. */
+ public qfePackage?: (google.cloud.osconfig.v1alpha.Inventory.IWindowsQuickFixEngineeringPackage|null);
+
+ /** SoftwarePackage cosPackage. */
+ public cosPackage?: (google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage|null);
+
+ /** SoftwarePackage windowsApplication. */
+ public windowsApplication?: (google.cloud.osconfig.v1alpha.Inventory.IWindowsApplication|null);
+
+ /** SoftwarePackage details. */
+ public details?: ("yumPackage"|"aptPackage"|"zypperPackage"|"googetPackage"|"zypperPatch"|"wuaPackage"|"qfePackage"|"cosPackage"|"windowsApplication");
+
+ /**
+ * Creates a new SoftwarePackage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SoftwarePackage instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.Inventory.ISoftwarePackage): google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage;
+
+ /**
+ * Encodes the specified SoftwarePackage message. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage.verify|verify} messages.
+ * @param message SoftwarePackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.Inventory.ISoftwarePackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SoftwarePackage message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage.verify|verify} messages.
+ * @param message SoftwarePackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.Inventory.ISoftwarePackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SoftwarePackage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SoftwarePackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage;
+
+ /**
+ * Decodes a SoftwarePackage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SoftwarePackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage;
+
+ /**
+ * Verifies a SoftwarePackage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SoftwarePackage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SoftwarePackage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage;
+
+ /**
+ * Creates a plain object from a SoftwarePackage message. Also converts values to other types if specified.
+ * @param message SoftwarePackage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SoftwarePackage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SoftwarePackage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VersionedPackage. */
+ interface IVersionedPackage {
+
+ /** VersionedPackage packageName */
+ packageName?: (string|null);
+
+ /** VersionedPackage architecture */
+ architecture?: (string|null);
+
+ /** VersionedPackage version */
+ version?: (string|null);
+ }
+
+ /** Represents a VersionedPackage. */
+ class VersionedPackage implements IVersionedPackage {
+
+ /**
+ * Constructs a new VersionedPackage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage);
+
+ /** VersionedPackage packageName. */
+ public packageName: string;
+
+ /** VersionedPackage architecture. */
+ public architecture: string;
+
+ /** VersionedPackage version. */
+ public version: string;
+
+ /**
+ * Creates a new VersionedPackage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VersionedPackage instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage): google.cloud.osconfig.v1alpha.Inventory.VersionedPackage;
+
+ /**
+ * Encodes the specified VersionedPackage message. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.VersionedPackage.verify|verify} messages.
+ * @param message VersionedPackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VersionedPackage message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.VersionedPackage.verify|verify} messages.
+ * @param message VersionedPackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.Inventory.IVersionedPackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VersionedPackage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VersionedPackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.Inventory.VersionedPackage;
+
+ /**
+ * Decodes a VersionedPackage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VersionedPackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.Inventory.VersionedPackage;
+
+ /**
+ * Verifies a VersionedPackage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VersionedPackage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VersionedPackage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.Inventory.VersionedPackage;
+
+ /**
+ * Creates a plain object from a VersionedPackage message. Also converts values to other types if specified.
+ * @param message VersionedPackage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.Inventory.VersionedPackage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VersionedPackage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VersionedPackage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ZypperPatch. */
+ interface IZypperPatch {
+
+ /** ZypperPatch patchName */
+ patchName?: (string|null);
+
+ /** ZypperPatch category */
+ category?: (string|null);
+
+ /** ZypperPatch severity */
+ severity?: (string|null);
+
+ /** ZypperPatch summary */
+ summary?: (string|null);
+ }
+
+ /** Represents a ZypperPatch. */
+ class ZypperPatch implements IZypperPatch {
+
+ /**
+ * Constructs a new ZypperPatch.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.Inventory.IZypperPatch);
+
+ /** ZypperPatch patchName. */
+ public patchName: string;
+
+ /** ZypperPatch category. */
+ public category: string;
+
+ /** ZypperPatch severity. */
+ public severity: string;
+
+ /** ZypperPatch summary. */
+ public summary: string;
+
+ /**
+ * Creates a new ZypperPatch instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ZypperPatch instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.Inventory.IZypperPatch): google.cloud.osconfig.v1alpha.Inventory.ZypperPatch;
+
+ /**
+ * Encodes the specified ZypperPatch message. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.ZypperPatch.verify|verify} messages.
+ * @param message ZypperPatch message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.Inventory.IZypperPatch, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ZypperPatch message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.ZypperPatch.verify|verify} messages.
+ * @param message ZypperPatch message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.Inventory.IZypperPatch, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ZypperPatch message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ZypperPatch
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.Inventory.ZypperPatch;
+
+ /**
+ * Decodes a ZypperPatch message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ZypperPatch
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.Inventory.ZypperPatch;
+
+ /**
+ * Verifies a ZypperPatch message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ZypperPatch message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ZypperPatch
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.Inventory.ZypperPatch;
+
+ /**
+ * Creates a plain object from a ZypperPatch message. Also converts values to other types if specified.
+ * @param message ZypperPatch
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.Inventory.ZypperPatch, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ZypperPatch to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ZypperPatch
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WindowsUpdatePackage. */
+ interface IWindowsUpdatePackage {
+
+ /** WindowsUpdatePackage title */
+ title?: (string|null);
+
+ /** WindowsUpdatePackage description */
+ description?: (string|null);
+
+ /** WindowsUpdatePackage categories */
+ categories?: (google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory[]|null);
+
+ /** WindowsUpdatePackage kbArticleIds */
+ kbArticleIds?: (string[]|null);
+
+ /** WindowsUpdatePackage supportUrl */
+ supportUrl?: (string|null);
+
+ /** WindowsUpdatePackage moreInfoUrls */
+ moreInfoUrls?: (string[]|null);
+
+ /** WindowsUpdatePackage updateId */
+ updateId?: (string|null);
+
+ /** WindowsUpdatePackage revisionNumber */
+ revisionNumber?: (number|null);
+
+ /** WindowsUpdatePackage lastDeploymentChangeTime */
+ lastDeploymentChangeTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a WindowsUpdatePackage. */
+ class WindowsUpdatePackage implements IWindowsUpdatePackage {
+
+ /**
+ * Constructs a new WindowsUpdatePackage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.Inventory.IWindowsUpdatePackage);
+
+ /** WindowsUpdatePackage title. */
+ public title: string;
+
+ /** WindowsUpdatePackage description. */
+ public description: string;
+
+ /** WindowsUpdatePackage categories. */
+ public categories: google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory[];
+
+ /** WindowsUpdatePackage kbArticleIds. */
+ public kbArticleIds: string[];
+
+ /** WindowsUpdatePackage supportUrl. */
+ public supportUrl: string;
+
+ /** WindowsUpdatePackage moreInfoUrls. */
+ public moreInfoUrls: string[];
+
+ /** WindowsUpdatePackage updateId. */
+ public updateId: string;
+
+ /** WindowsUpdatePackage revisionNumber. */
+ public revisionNumber: number;
+
+ /** WindowsUpdatePackage lastDeploymentChangeTime. */
+ public lastDeploymentChangeTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new WindowsUpdatePackage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WindowsUpdatePackage instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.Inventory.IWindowsUpdatePackage): google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage;
+
+ /**
+ * Encodes the specified WindowsUpdatePackage message. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.verify|verify} messages.
+ * @param message WindowsUpdatePackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.Inventory.IWindowsUpdatePackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WindowsUpdatePackage message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.verify|verify} messages.
+ * @param message WindowsUpdatePackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.Inventory.IWindowsUpdatePackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WindowsUpdatePackage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WindowsUpdatePackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage;
+
+ /**
+ * Decodes a WindowsUpdatePackage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WindowsUpdatePackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage;
+
+ /**
+ * Verifies a WindowsUpdatePackage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WindowsUpdatePackage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WindowsUpdatePackage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage;
+
+ /**
+ * Creates a plain object from a WindowsUpdatePackage message. Also converts values to other types if specified.
+ * @param message WindowsUpdatePackage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WindowsUpdatePackage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WindowsUpdatePackage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace WindowsUpdatePackage {
+
+ /** Properties of a WindowsUpdateCategory. */
+ interface IWindowsUpdateCategory {
+
+ /** WindowsUpdateCategory id */
+ id?: (string|null);
+
+ /** WindowsUpdateCategory name */
+ name?: (string|null);
+ }
+
+ /** Represents a WindowsUpdateCategory. */
+ class WindowsUpdateCategory implements IWindowsUpdateCategory {
+
+ /**
+ * Constructs a new WindowsUpdateCategory.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory);
+
+ /** WindowsUpdateCategory id. */
+ public id: string;
+
+ /** WindowsUpdateCategory name. */
+ public name: string;
+
+ /**
+ * Creates a new WindowsUpdateCategory instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WindowsUpdateCategory instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory): google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory;
+
+ /**
+ * Encodes the specified WindowsUpdateCategory message. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.verify|verify} messages.
+ * @param message WindowsUpdateCategory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WindowsUpdateCategory message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.verify|verify} messages.
+ * @param message WindowsUpdateCategory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WindowsUpdateCategory message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WindowsUpdateCategory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory;
+
+ /**
+ * Decodes a WindowsUpdateCategory message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WindowsUpdateCategory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory;
+
+ /**
+ * Verifies a WindowsUpdateCategory message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WindowsUpdateCategory message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WindowsUpdateCategory
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory;
+
+ /**
+ * Creates a plain object from a WindowsUpdateCategory message. Also converts values to other types if specified.
+ * @param message WindowsUpdateCategory
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WindowsUpdateCategory to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WindowsUpdateCategory
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a WindowsQuickFixEngineeringPackage. */
+ interface IWindowsQuickFixEngineeringPackage {
+
+ /** WindowsQuickFixEngineeringPackage caption */
+ caption?: (string|null);
+
+ /** WindowsQuickFixEngineeringPackage description */
+ description?: (string|null);
+
+ /** WindowsQuickFixEngineeringPackage hotFixId */
+ hotFixId?: (string|null);
+
+ /** WindowsQuickFixEngineeringPackage installTime */
+ installTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a WindowsQuickFixEngineeringPackage. */
+ class WindowsQuickFixEngineeringPackage implements IWindowsQuickFixEngineeringPackage {
+
+ /**
+ * Constructs a new WindowsQuickFixEngineeringPackage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.Inventory.IWindowsQuickFixEngineeringPackage);
+
+ /** WindowsQuickFixEngineeringPackage caption. */
+ public caption: string;
+
+ /** WindowsQuickFixEngineeringPackage description. */
+ public description: string;
+
+ /** WindowsQuickFixEngineeringPackage hotFixId. */
+ public hotFixId: string;
+
+ /** WindowsQuickFixEngineeringPackage installTime. */
+ public installTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new WindowsQuickFixEngineeringPackage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WindowsQuickFixEngineeringPackage instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.Inventory.IWindowsQuickFixEngineeringPackage): google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage;
+
+ /**
+ * Encodes the specified WindowsQuickFixEngineeringPackage message. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage.verify|verify} messages.
+ * @param message WindowsQuickFixEngineeringPackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.Inventory.IWindowsQuickFixEngineeringPackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WindowsQuickFixEngineeringPackage message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage.verify|verify} messages.
+ * @param message WindowsQuickFixEngineeringPackage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.Inventory.IWindowsQuickFixEngineeringPackage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WindowsQuickFixEngineeringPackage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WindowsQuickFixEngineeringPackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage;
+
+ /**
+ * Decodes a WindowsQuickFixEngineeringPackage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WindowsQuickFixEngineeringPackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage;
+
+ /**
+ * Verifies a WindowsQuickFixEngineeringPackage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WindowsQuickFixEngineeringPackage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WindowsQuickFixEngineeringPackage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage;
+
+ /**
+ * Creates a plain object from a WindowsQuickFixEngineeringPackage message. Also converts values to other types if specified.
+ * @param message WindowsQuickFixEngineeringPackage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WindowsQuickFixEngineeringPackage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WindowsQuickFixEngineeringPackage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WindowsApplication. */
+ interface IWindowsApplication {
+
+ /** WindowsApplication displayName */
+ displayName?: (string|null);
+
+ /** WindowsApplication displayVersion */
+ displayVersion?: (string|null);
+
+ /** WindowsApplication publisher */
+ publisher?: (string|null);
+
+ /** WindowsApplication installDate */
+ installDate?: (google.type.IDate|null);
+
+ /** WindowsApplication helpLink */
+ helpLink?: (string|null);
+ }
+
+ /** Represents a WindowsApplication. */
+ class WindowsApplication implements IWindowsApplication {
+
+ /**
+ * Constructs a new WindowsApplication.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.Inventory.IWindowsApplication);
+
+ /** WindowsApplication displayName. */
+ public displayName: string;
+
+ /** WindowsApplication displayVersion. */
+ public displayVersion: string;
+
+ /** WindowsApplication publisher. */
+ public publisher: string;
+
+ /** WindowsApplication installDate. */
+ public installDate?: (google.type.IDate|null);
+
+ /** WindowsApplication helpLink. */
+ public helpLink: string;
+
+ /**
+ * Creates a new WindowsApplication instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WindowsApplication instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.Inventory.IWindowsApplication): google.cloud.osconfig.v1alpha.Inventory.WindowsApplication;
+
+ /**
+ * Encodes the specified WindowsApplication message. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.verify|verify} messages.
+ * @param message WindowsApplication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.Inventory.IWindowsApplication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WindowsApplication message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.verify|verify} messages.
+ * @param message WindowsApplication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.Inventory.IWindowsApplication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WindowsApplication message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WindowsApplication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.Inventory.WindowsApplication;
+
+ /**
+ * Decodes a WindowsApplication message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WindowsApplication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.Inventory.WindowsApplication;
+
+ /**
+ * Verifies a WindowsApplication message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WindowsApplication message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WindowsApplication
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.Inventory.WindowsApplication;
+
+ /**
+ * Creates a plain object from a WindowsApplication message. Also converts values to other types if specified.
+ * @param message WindowsApplication
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.Inventory.WindowsApplication, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WindowsApplication to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WindowsApplication
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GetInventoryRequest. */
+ interface IGetInventoryRequest {
+
+ /** GetInventoryRequest name */
+ name?: (string|null);
+
+ /** GetInventoryRequest view */
+ view?: (google.cloud.osconfig.v1alpha.InventoryView|keyof typeof google.cloud.osconfig.v1alpha.InventoryView|null);
+ }
+
+ /** Represents a GetInventoryRequest. */
+ class GetInventoryRequest implements IGetInventoryRequest {
+
+ /**
+ * Constructs a new GetInventoryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IGetInventoryRequest);
+
+ /** GetInventoryRequest name. */
+ public name: string;
+
+ /** GetInventoryRequest view. */
+ public view: (google.cloud.osconfig.v1alpha.InventoryView|keyof typeof google.cloud.osconfig.v1alpha.InventoryView);
+
+ /**
+ * Creates a new GetInventoryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetInventoryRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IGetInventoryRequest): google.cloud.osconfig.v1alpha.GetInventoryRequest;
+
+ /**
+ * Encodes the specified GetInventoryRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.GetInventoryRequest.verify|verify} messages.
+ * @param message GetInventoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IGetInventoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetInventoryRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.GetInventoryRequest.verify|verify} messages.
+ * @param message GetInventoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IGetInventoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetInventoryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetInventoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.GetInventoryRequest;
+
+ /**
+ * Decodes a GetInventoryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetInventoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.GetInventoryRequest;
+
+ /**
+ * Verifies a GetInventoryRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetInventoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetInventoryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.GetInventoryRequest;
+
+ /**
+ * Creates a plain object from a GetInventoryRequest message. Also converts values to other types if specified.
+ * @param message GetInventoryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.GetInventoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetInventoryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetInventoryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListInventoriesRequest. */
+ interface IListInventoriesRequest {
+
+ /** ListInventoriesRequest parent */
+ parent?: (string|null);
+
+ /** ListInventoriesRequest view */
+ view?: (google.cloud.osconfig.v1alpha.InventoryView|keyof typeof google.cloud.osconfig.v1alpha.InventoryView|null);
+
+ /** ListInventoriesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListInventoriesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListInventoriesRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListInventoriesRequest. */
+ class ListInventoriesRequest implements IListInventoriesRequest {
+
+ /**
+ * Constructs a new ListInventoriesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IListInventoriesRequest);
+
+ /** ListInventoriesRequest parent. */
+ public parent: string;
+
+ /** ListInventoriesRequest view. */
+ public view: (google.cloud.osconfig.v1alpha.InventoryView|keyof typeof google.cloud.osconfig.v1alpha.InventoryView);
+
+ /** ListInventoriesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListInventoriesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListInventoriesRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListInventoriesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListInventoriesRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IListInventoriesRequest): google.cloud.osconfig.v1alpha.ListInventoriesRequest;
+
+ /**
+ * Encodes the specified ListInventoriesRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListInventoriesRequest.verify|verify} messages.
+ * @param message ListInventoriesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IListInventoriesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListInventoriesRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListInventoriesRequest.verify|verify} messages.
+ * @param message ListInventoriesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IListInventoriesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListInventoriesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListInventoriesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.ListInventoriesRequest;
+
+ /**
+ * Decodes a ListInventoriesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListInventoriesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.ListInventoriesRequest;
+
+ /**
+ * Verifies a ListInventoriesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListInventoriesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListInventoriesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.ListInventoriesRequest;
+
+ /**
+ * Creates a plain object from a ListInventoriesRequest message. Also converts values to other types if specified.
+ * @param message ListInventoriesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.ListInventoriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListInventoriesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListInventoriesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListInventoriesResponse. */
+ interface IListInventoriesResponse {
+
+ /** ListInventoriesResponse inventories */
+ inventories?: (google.cloud.osconfig.v1alpha.IInventory[]|null);
+
+ /** ListInventoriesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListInventoriesResponse. */
+ class ListInventoriesResponse implements IListInventoriesResponse {
+
+ /**
+ * Constructs a new ListInventoriesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IListInventoriesResponse);
+
+ /** ListInventoriesResponse inventories. */
+ public inventories: google.cloud.osconfig.v1alpha.IInventory[];
+
+ /** ListInventoriesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListInventoriesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListInventoriesResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IListInventoriesResponse): google.cloud.osconfig.v1alpha.ListInventoriesResponse;
+
+ /**
+ * Encodes the specified ListInventoriesResponse message. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListInventoriesResponse.verify|verify} messages.
+ * @param message ListInventoriesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IListInventoriesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListInventoriesResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListInventoriesResponse.verify|verify} messages.
+ * @param message ListInventoriesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IListInventoriesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListInventoriesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListInventoriesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.ListInventoriesResponse;
+
+ /**
+ * Decodes a ListInventoriesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListInventoriesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.ListInventoriesResponse;
+
+ /**
+ * Verifies a ListInventoriesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListInventoriesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListInventoriesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.ListInventoriesResponse;
+
+ /**
+ * Creates a plain object from a ListInventoriesResponse message. Also converts values to other types if specified.
+ * @param message ListInventoriesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.ListInventoriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListInventoriesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListInventoriesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** InventoryView enum. */
+ enum InventoryView {
+ INVENTORY_VIEW_UNSPECIFIED = 0,
+ BASIC = 1,
+ FULL = 2
+ }
+
+ /** Properties of a OSPolicy. */
+ interface IOSPolicy {
+
+ /** OSPolicy id */
+ id?: (string|null);
+
+ /** OSPolicy description */
+ description?: (string|null);
+
+ /** OSPolicy mode */
+ mode?: (google.cloud.osconfig.v1alpha.OSPolicy.Mode|keyof typeof google.cloud.osconfig.v1alpha.OSPolicy.Mode|null);
+
+ /** OSPolicy resourceGroups */
+ resourceGroups?: (google.cloud.osconfig.v1alpha.OSPolicy.IResourceGroup[]|null);
+
+ /** OSPolicy allowNoResourceGroupMatch */
+ allowNoResourceGroupMatch?: (boolean|null);
+ }
+
+ /** Represents a OSPolicy. */
+ class OSPolicy implements IOSPolicy {
+
+ /**
+ * Constructs a new OSPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IOSPolicy);
+
+ /** OSPolicy id. */
+ public id: string;
+
+ /** OSPolicy description. */
+ public description: string;
+
+ /** OSPolicy mode. */
+ public mode: (google.cloud.osconfig.v1alpha.OSPolicy.Mode|keyof typeof google.cloud.osconfig.v1alpha.OSPolicy.Mode);
+
+ /** OSPolicy resourceGroups. */
+ public resourceGroups: google.cloud.osconfig.v1alpha.OSPolicy.IResourceGroup[];
+
+ /** OSPolicy allowNoResourceGroupMatch. */
+ public allowNoResourceGroupMatch: boolean;
+
+ /**
+ * Creates a new OSPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicy instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IOSPolicy): google.cloud.osconfig.v1alpha.OSPolicy;
+
+ /**
+ * Encodes the specified OSPolicy message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.verify|verify} messages.
+ * @param message OSPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IOSPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicy message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.verify|verify} messages.
+ * @param message OSPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IOSPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy;
+
+ /**
+ * Decodes a OSPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy;
+
+ /**
+ * Verifies a OSPolicy message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy;
+
+ /**
+ * Creates a plain object from a OSPolicy message. Also converts values to other types if specified.
+ * @param message OSPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicy {
+
+ /** Mode enum. */
+ enum Mode {
+ MODE_UNSPECIFIED = 0,
+ VALIDATION = 1,
+ ENFORCEMENT = 2
+ }
+
+ /** Properties of a OSFilter. */
+ interface IOSFilter {
+
+ /** OSFilter osShortName */
+ osShortName?: (string|null);
+
+ /** OSFilter osVersion */
+ osVersion?: (string|null);
+ }
+
+ /** Represents a OSFilter. */
+ class OSFilter implements IOSFilter {
+
+ /**
+ * Constructs a new OSFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.IOSFilter);
+
+ /** OSFilter osShortName. */
+ public osShortName: string;
+
+ /** OSFilter osVersion. */
+ public osVersion: string;
+
+ /**
+ * Creates a new OSFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSFilter instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.IOSFilter): google.cloud.osconfig.v1alpha.OSPolicy.OSFilter;
+
+ /**
+ * Encodes the specified OSFilter message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.verify|verify} messages.
+ * @param message OSFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.IOSFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSFilter message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.verify|verify} messages.
+ * @param message OSFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.IOSFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.OSFilter;
+
+ /**
+ * Decodes a OSFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.OSFilter;
+
+ /**
+ * Verifies a OSFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.OSFilter;
+
+ /**
+ * Creates a plain object from a OSFilter message. Also converts values to other types if specified.
+ * @param message OSFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.OSFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an InventoryFilter. */
+ interface IInventoryFilter {
+
+ /** InventoryFilter osShortName */
+ osShortName?: (string|null);
+
+ /** InventoryFilter osVersion */
+ osVersion?: (string|null);
+ }
+
+ /** Represents an InventoryFilter. */
+ class InventoryFilter implements IInventoryFilter {
+
+ /**
+ * Constructs a new InventoryFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.IInventoryFilter);
+
+ /** InventoryFilter osShortName. */
+ public osShortName: string;
+
+ /** InventoryFilter osVersion. */
+ public osVersion: string;
+
+ /**
+ * Creates a new InventoryFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InventoryFilter instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.IInventoryFilter): google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter;
+
+ /**
+ * Encodes the specified InventoryFilter message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.verify|verify} messages.
+ * @param message InventoryFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.IInventoryFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InventoryFilter message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.verify|verify} messages.
+ * @param message InventoryFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.IInventoryFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InventoryFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InventoryFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter;
+
+ /**
+ * Decodes an InventoryFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InventoryFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter;
+
+ /**
+ * Verifies an InventoryFilter message.
+ * @param message Plain 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 InventoryFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InventoryFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter;
+
+ /**
+ * Creates a plain object from an InventoryFilter message. Also converts values to other types if specified.
+ * @param message InventoryFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InventoryFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InventoryFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Resource. */
+ interface IResource {
+
+ /** Resource id */
+ id?: (string|null);
+
+ /** Resource pkg */
+ pkg?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IPackageResource|null);
+
+ /** Resource repository */
+ repository?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IRepositoryResource|null);
+
+ /** Resource exec */
+ exec?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IExecResource|null);
+
+ /** Resource file */
+ file?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFileResource|null);
+ }
+
+ /** Represents a Resource. */
+ class Resource implements IResource {
+
+ /**
+ * Constructs a new Resource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.IResource);
+
+ /** Resource id. */
+ public id: string;
+
+ /** Resource pkg. */
+ public pkg?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IPackageResource|null);
+
+ /** Resource repository. */
+ public repository?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IRepositoryResource|null);
+
+ /** Resource exec. */
+ public exec?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IExecResource|null);
+
+ /** Resource file. */
+ public file?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFileResource|null);
+
+ /** Resource resourceType. */
+ public resourceType?: ("pkg"|"repository"|"exec"|"file");
+
+ /**
+ * Creates a new Resource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Resource instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.IResource): google.cloud.osconfig.v1alpha.OSPolicy.Resource;
+
+ /**
+ * Encodes the specified Resource message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.verify|verify} messages.
+ * @param message Resource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.IResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Resource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.verify|verify} messages.
+ * @param message Resource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.IResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Resource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Resource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource;
+
+ /**
+ * Decodes a Resource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Resource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource;
+
+ /**
+ * Verifies a Resource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Resource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Resource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource;
+
+ /**
+ * Creates a plain object from a Resource message. Also converts values to other types if specified.
+ * @param message Resource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Resource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Resource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Resource {
+
+ /** Properties of a File. */
+ interface IFile {
+
+ /** File remote */
+ remote?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.IRemote|null);
+
+ /** File gcs */
+ gcs?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.IGcs|null);
+
+ /** File localPath */
+ localPath?: (string|null);
+
+ /** File allowInsecure */
+ allowInsecure?: (boolean|null);
+ }
+
+ /** Represents a File. */
+ class File implements IFile {
+
+ /**
+ * Constructs a new File.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile);
+
+ /** File remote. */
+ public remote?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.IRemote|null);
+
+ /** File gcs. */
+ public gcs?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.IGcs|null);
+
+ /** File localPath. */
+ public localPath?: (string|null);
+
+ /** File allowInsecure. */
+ public allowInsecure: boolean;
+
+ /** File type. */
+ public type?: ("remote"|"gcs"|"localPath");
+
+ /**
+ * Creates a new File instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns File instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile): google.cloud.osconfig.v1alpha.OSPolicy.Resource.File;
+
+ /**
+ * Encodes the specified File message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.verify|verify} messages.
+ * @param message File message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified File message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.verify|verify} messages.
+ * @param message File message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a File message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns File
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.File;
+
+ /**
+ * Decodes a File message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns File
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.File;
+
+ /**
+ * Verifies a File message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a File message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns File
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.File;
+
+ /**
+ * Creates a plain object from a File message. Also converts values to other types if specified.
+ * @param message File
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.File, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this File to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for File
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace File {
+
+ /** Properties of a Remote. */
+ interface IRemote {
+
+ /** Remote uri */
+ uri?: (string|null);
+
+ /** Remote sha256Checksum */
+ sha256Checksum?: (string|null);
+ }
+
+ /** Represents a Remote. */
+ class Remote implements IRemote {
+
+ /**
+ * Constructs a new Remote.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.IRemote);
+
+ /** Remote uri. */
+ public uri: string;
+
+ /** Remote sha256Checksum. */
+ public sha256Checksum: string;
+
+ /**
+ * Creates a new Remote instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Remote instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.IRemote): google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote;
+
+ /**
+ * Encodes the specified Remote message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote.verify|verify} messages.
+ * @param message Remote message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.IRemote, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Remote message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote.verify|verify} messages.
+ * @param message Remote message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.IRemote, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Remote message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Remote
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote;
+
+ /**
+ * Decodes a Remote message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Remote
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote;
+
+ /**
+ * Verifies a Remote message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Remote message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Remote
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote;
+
+ /**
+ * Creates a plain object from a Remote message. Also converts values to other types if specified.
+ * @param message Remote
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Remote to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Remote
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Gcs. */
+ interface IGcs {
+
+ /** Gcs bucket */
+ bucket?: (string|null);
+
+ /** Gcs object */
+ object?: (string|null);
+
+ /** Gcs generation */
+ generation?: (number|Long|string|null);
+ }
+
+ /** Represents a Gcs. */
+ class Gcs implements IGcs {
+
+ /**
+ * Constructs a new Gcs.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.IGcs);
+
+ /** Gcs bucket. */
+ public bucket: string;
+
+ /** Gcs object. */
+ public object: string;
+
+ /** Gcs generation. */
+ public generation: (number|Long|string);
+
+ /**
+ * Creates a new Gcs instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Gcs instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.IGcs): google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs;
+
+ /**
+ * Encodes the specified Gcs message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs.verify|verify} messages.
+ * @param message Gcs message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.IGcs, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Gcs message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs.verify|verify} messages.
+ * @param message Gcs message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.IGcs, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Gcs message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Gcs
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs;
+
+ /**
+ * Decodes a Gcs message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Gcs
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs;
+
+ /**
+ * Verifies a Gcs message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Gcs message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Gcs
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs;
+
+ /**
+ * Creates a plain object from a Gcs message. Also converts values to other types if specified.
+ * @param message Gcs
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Gcs to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Gcs
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a PackageResource. */
+ interface IPackageResource {
+
+ /** PackageResource desiredState */
+ desiredState?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.DesiredState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.DesiredState|null);
+
+ /** PackageResource apt */
+ apt?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IAPT|null);
+
+ /** PackageResource deb */
+ deb?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IDeb|null);
+
+ /** PackageResource yum */
+ yum?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IYUM|null);
+
+ /** PackageResource zypper */
+ zypper?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IZypper|null);
+
+ /** PackageResource rpm */
+ rpm?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IRPM|null);
+
+ /** PackageResource googet */
+ googet?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IGooGet|null);
+
+ /** PackageResource msi */
+ msi?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IMSI|null);
+ }
+
+ /** Represents a PackageResource. */
+ class PackageResource implements IPackageResource {
+
+ /**
+ * Constructs a new PackageResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IPackageResource);
+
+ /** PackageResource desiredState. */
+ public desiredState: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.DesiredState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.DesiredState);
+
+ /** PackageResource apt. */
+ public apt?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IAPT|null);
+
+ /** PackageResource deb. */
+ public deb?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IDeb|null);
+
+ /** PackageResource yum. */
+ public yum?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IYUM|null);
+
+ /** PackageResource zypper. */
+ public zypper?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IZypper|null);
+
+ /** PackageResource rpm. */
+ public rpm?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IRPM|null);
+
+ /** PackageResource googet. */
+ public googet?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IGooGet|null);
+
+ /** PackageResource msi. */
+ public msi?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IMSI|null);
+
+ /** PackageResource systemPackage. */
+ public systemPackage?: ("apt"|"deb"|"yum"|"zypper"|"rpm"|"googet"|"msi");
+
+ /**
+ * Creates a new PackageResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PackageResource instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IPackageResource): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource;
+
+ /**
+ * Encodes the specified PackageResource message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.verify|verify} messages.
+ * @param message PackageResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IPackageResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PackageResource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.verify|verify} messages.
+ * @param message PackageResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IPackageResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PackageResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PackageResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource;
+
+ /**
+ * Decodes a PackageResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PackageResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource;
+
+ /**
+ * Verifies a PackageResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PackageResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PackageResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource;
+
+ /**
+ * Creates a plain object from a PackageResource message. Also converts values to other types if specified.
+ * @param message PackageResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PackageResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PackageResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PackageResource {
+
+ /** DesiredState enum. */
+ enum DesiredState {
+ DESIRED_STATE_UNSPECIFIED = 0,
+ INSTALLED = 1,
+ REMOVED = 2
+ }
+
+ /** Properties of a Deb. */
+ interface IDeb {
+
+ /** Deb source */
+ source?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile|null);
+
+ /** Deb pullDeps */
+ pullDeps?: (boolean|null);
+ }
+
+ /** Represents a Deb. */
+ class Deb implements IDeb {
+
+ /**
+ * Constructs a new Deb.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IDeb);
+
+ /** Deb source. */
+ public source?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile|null);
+
+ /** Deb pullDeps. */
+ public pullDeps: boolean;
+
+ /**
+ * Creates a new Deb instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Deb instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IDeb): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb;
+
+ /**
+ * Encodes the specified Deb message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb.verify|verify} messages.
+ * @param message Deb message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IDeb, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Deb message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb.verify|verify} messages.
+ * @param message Deb message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IDeb, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Deb message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Deb
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb;
+
+ /**
+ * Decodes a Deb message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Deb
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb;
+
+ /**
+ * Verifies a Deb message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Deb message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Deb
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb;
+
+ /**
+ * Creates a plain object from a Deb message. Also converts values to other types if specified.
+ * @param message Deb
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Deb to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Deb
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a APT. */
+ interface IAPT {
+
+ /** APT name */
+ name?: (string|null);
+ }
+
+ /** Represents a APT. */
+ class APT implements IAPT {
+
+ /**
+ * Constructs a new APT.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IAPT);
+
+ /** APT name. */
+ public name: string;
+
+ /**
+ * Creates a new APT instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns APT instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IAPT): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT;
+
+ /**
+ * Encodes the specified APT message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT.verify|verify} messages.
+ * @param message APT message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IAPT, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified APT message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT.verify|verify} messages.
+ * @param message APT message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IAPT, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a APT message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns APT
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT;
+
+ /**
+ * Decodes a APT message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns APT
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT;
+
+ /**
+ * Verifies a APT message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a APT message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns APT
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT;
+
+ /**
+ * Creates a plain object from a APT message. Also converts values to other types if specified.
+ * @param message APT
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this APT to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for APT
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RPM. */
+ interface IRPM {
+
+ /** RPM source */
+ source?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile|null);
+
+ /** RPM pullDeps */
+ pullDeps?: (boolean|null);
+ }
+
+ /** Represents a RPM. */
+ class RPM implements IRPM {
+
+ /**
+ * Constructs a new RPM.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IRPM);
+
+ /** RPM source. */
+ public source?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile|null);
+
+ /** RPM pullDeps. */
+ public pullDeps: boolean;
+
+ /**
+ * Creates a new RPM instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RPM instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IRPM): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM;
+
+ /**
+ * Encodes the specified RPM message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM.verify|verify} messages.
+ * @param message RPM message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IRPM, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RPM message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM.verify|verify} messages.
+ * @param message RPM message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IRPM, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RPM message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RPM
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM;
+
+ /**
+ * Decodes a RPM message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RPM
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM;
+
+ /**
+ * Verifies a RPM message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RPM message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RPM
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM;
+
+ /**
+ * Creates a plain object from a RPM message. Also converts values to other types if specified.
+ * @param message RPM
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RPM to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RPM
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a YUM. */
+ interface IYUM {
+
+ /** YUM name */
+ name?: (string|null);
+ }
+
+ /** Represents a YUM. */
+ class YUM implements IYUM {
+
+ /**
+ * Constructs a new YUM.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IYUM);
+
+ /** YUM name. */
+ public name: string;
+
+ /**
+ * Creates a new YUM instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns YUM instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IYUM): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM;
+
+ /**
+ * Encodes the specified YUM message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM.verify|verify} messages.
+ * @param message YUM message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IYUM, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified YUM message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM.verify|verify} messages.
+ * @param message YUM message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IYUM, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a YUM message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns YUM
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM;
+
+ /**
+ * Decodes a YUM message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns YUM
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM;
+
+ /**
+ * Verifies a YUM message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a YUM message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns YUM
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM;
+
+ /**
+ * Creates a plain object from a YUM message. Also converts values to other types if specified.
+ * @param message YUM
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this YUM to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for YUM
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Zypper. */
+ interface IZypper {
+
+ /** Zypper name */
+ name?: (string|null);
+ }
+
+ /** Represents a Zypper. */
+ class Zypper implements IZypper {
+
+ /**
+ * Constructs a new Zypper.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IZypper);
+
+ /** Zypper name. */
+ public name: string;
+
+ /**
+ * Creates a new Zypper instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Zypper instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IZypper): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper;
+
+ /**
+ * Encodes the specified Zypper message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper.verify|verify} messages.
+ * @param message Zypper message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IZypper, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Zypper message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper.verify|verify} messages.
+ * @param message Zypper message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IZypper, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Zypper message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Zypper
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper;
+
+ /**
+ * Decodes a Zypper message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Zypper
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper;
+
+ /**
+ * Verifies a Zypper message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Zypper message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Zypper
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper;
+
+ /**
+ * Creates a plain object from a Zypper message. Also converts values to other types if specified.
+ * @param message Zypper
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Zypper to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Zypper
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GooGet. */
+ interface IGooGet {
+
+ /** GooGet name */
+ name?: (string|null);
+ }
+
+ /** Represents a GooGet. */
+ class GooGet implements IGooGet {
+
+ /**
+ * Constructs a new GooGet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IGooGet);
+
+ /** GooGet name. */
+ public name: string;
+
+ /**
+ * Creates a new GooGet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GooGet instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IGooGet): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGet;
+
+ /**
+ * Encodes the specified GooGet message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGet.verify|verify} messages.
+ * @param message GooGet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IGooGet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GooGet message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGet.verify|verify} messages.
+ * @param message GooGet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IGooGet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GooGet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GooGet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGet;
+
+ /**
+ * Decodes a GooGet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GooGet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGet;
+
+ /**
+ * Verifies a GooGet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GooGet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GooGet
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGet;
+
+ /**
+ * Creates a plain object from a GooGet message. Also converts values to other types if specified.
+ * @param message GooGet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GooGet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GooGet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MSI. */
+ interface IMSI {
+
+ /** MSI source */
+ source?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile|null);
+
+ /** MSI properties */
+ properties?: (string[]|null);
+ }
+
+ /** Represents a MSI. */
+ class MSI implements IMSI {
+
+ /**
+ * Constructs a new MSI.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IMSI);
+
+ /** MSI source. */
+ public source?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile|null);
+
+ /** MSI properties. */
+ public properties: string[];
+
+ /**
+ * Creates a new MSI instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MSI instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IMSI): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI;
+
+ /**
+ * Encodes the specified MSI message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI.verify|verify} messages.
+ * @param message MSI message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IMSI, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MSI message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI.verify|verify} messages.
+ * @param message MSI message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.IMSI, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MSI message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MSI
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI;
+
+ /**
+ * Decodes a MSI message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MSI
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI;
+
+ /**
+ * Verifies a MSI message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MSI message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MSI
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI;
+
+ /**
+ * Creates a plain object from a MSI message. Also converts values to other types if specified.
+ * @param message MSI
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MSI to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MSI
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a RepositoryResource. */
+ interface IRepositoryResource {
+
+ /** RepositoryResource apt */
+ apt?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IAptRepository|null);
+
+ /** RepositoryResource yum */
+ yum?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IYumRepository|null);
+
+ /** RepositoryResource zypper */
+ zypper?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IZypperRepository|null);
+
+ /** RepositoryResource goo */
+ goo?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IGooRepository|null);
+ }
+
+ /** Represents a RepositoryResource. */
+ class RepositoryResource implements IRepositoryResource {
+
+ /**
+ * Constructs a new RepositoryResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IRepositoryResource);
+
+ /** RepositoryResource apt. */
+ public apt?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IAptRepository|null);
+
+ /** RepositoryResource yum. */
+ public yum?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IYumRepository|null);
+
+ /** RepositoryResource zypper. */
+ public zypper?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IZypperRepository|null);
+
+ /** RepositoryResource goo. */
+ public goo?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IGooRepository|null);
+
+ /** RepositoryResource repository. */
+ public repository?: ("apt"|"yum"|"zypper"|"goo");
+
+ /**
+ * Creates a new RepositoryResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RepositoryResource instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IRepositoryResource): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource;
+
+ /**
+ * Encodes the specified RepositoryResource message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.verify|verify} messages.
+ * @param message RepositoryResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IRepositoryResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RepositoryResource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.verify|verify} messages.
+ * @param message RepositoryResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IRepositoryResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RepositoryResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RepositoryResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource;
+
+ /**
+ * Decodes a RepositoryResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RepositoryResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource;
+
+ /**
+ * Verifies a RepositoryResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RepositoryResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RepositoryResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource;
+
+ /**
+ * Creates a plain object from a RepositoryResource message. Also converts values to other types if specified.
+ * @param message RepositoryResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RepositoryResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RepositoryResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace RepositoryResource {
+
+ /** Properties of an AptRepository. */
+ interface IAptRepository {
+
+ /** AptRepository archiveType */
+ archiveType?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType|keyof typeof google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType|null);
+
+ /** AptRepository uri */
+ uri?: (string|null);
+
+ /** AptRepository distribution */
+ distribution?: (string|null);
+
+ /** AptRepository components */
+ components?: (string[]|null);
+
+ /** AptRepository gpgKey */
+ gpgKey?: (string|null);
+ }
+
+ /** Represents an AptRepository. */
+ class AptRepository implements IAptRepository {
+
+ /**
+ * Constructs a new AptRepository.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IAptRepository);
+
+ /** AptRepository archiveType. */
+ public archiveType: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType|keyof typeof google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType);
+
+ /** AptRepository uri. */
+ public uri: string;
+
+ /** AptRepository distribution. */
+ public distribution: string;
+
+ /** AptRepository components. */
+ public components: string[];
+
+ /** AptRepository gpgKey. */
+ public gpgKey: string;
+
+ /**
+ * Creates a new AptRepository instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AptRepository instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IAptRepository): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository;
+
+ /**
+ * Encodes the specified AptRepository message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository.verify|verify} messages.
+ * @param message AptRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IAptRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AptRepository message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository.verify|verify} messages.
+ * @param message AptRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IAptRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AptRepository message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AptRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository;
+
+ /**
+ * Decodes an AptRepository message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AptRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository;
+
+ /**
+ * Verifies an AptRepository message.
+ * @param message Plain 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 AptRepository message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AptRepository
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository;
+
+ /**
+ * Creates a plain object from an AptRepository message. Also converts values to other types if specified.
+ * @param message AptRepository
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AptRepository to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AptRepository
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AptRepository {
+
+ /** ArchiveType enum. */
+ enum ArchiveType {
+ ARCHIVE_TYPE_UNSPECIFIED = 0,
+ DEB = 1,
+ DEB_SRC = 2
+ }
+ }
+
+ /** Properties of a YumRepository. */
+ interface IYumRepository {
+
+ /** YumRepository id */
+ id?: (string|null);
+
+ /** YumRepository displayName */
+ displayName?: (string|null);
+
+ /** YumRepository baseUrl */
+ baseUrl?: (string|null);
+
+ /** YumRepository gpgKeys */
+ gpgKeys?: (string[]|null);
+ }
+
+ /** Represents a YumRepository. */
+ class YumRepository implements IYumRepository {
+
+ /**
+ * Constructs a new YumRepository.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IYumRepository);
+
+ /** YumRepository id. */
+ public id: string;
+
+ /** YumRepository displayName. */
+ public displayName: string;
+
+ /** YumRepository baseUrl. */
+ public baseUrl: string;
+
+ /** YumRepository gpgKeys. */
+ public gpgKeys: string[];
+
+ /**
+ * Creates a new YumRepository instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns YumRepository instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IYumRepository): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.YumRepository;
+
+ /**
+ * Encodes the specified YumRepository message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.YumRepository.verify|verify} messages.
+ * @param message YumRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IYumRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified YumRepository message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.YumRepository.verify|verify} messages.
+ * @param message YumRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IYumRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a YumRepository message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns YumRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.YumRepository;
+
+ /**
+ * Decodes a YumRepository message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns YumRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.YumRepository;
+
+ /**
+ * Verifies a YumRepository message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a YumRepository message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns YumRepository
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.YumRepository;
+
+ /**
+ * Creates a plain object from a YumRepository message. Also converts values to other types if specified.
+ * @param message YumRepository
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.YumRepository, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this YumRepository to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for YumRepository
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ZypperRepository. */
+ interface IZypperRepository {
+
+ /** ZypperRepository id */
+ id?: (string|null);
+
+ /** ZypperRepository displayName */
+ displayName?: (string|null);
+
+ /** ZypperRepository baseUrl */
+ baseUrl?: (string|null);
+
+ /** ZypperRepository gpgKeys */
+ gpgKeys?: (string[]|null);
+ }
+
+ /** Represents a ZypperRepository. */
+ class ZypperRepository implements IZypperRepository {
+
+ /**
+ * Constructs a new ZypperRepository.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IZypperRepository);
+
+ /** ZypperRepository id. */
+ public id: string;
+
+ /** ZypperRepository displayName. */
+ public displayName: string;
+
+ /** ZypperRepository baseUrl. */
+ public baseUrl: string;
+
+ /** ZypperRepository gpgKeys. */
+ public gpgKeys: string[];
+
+ /**
+ * Creates a new ZypperRepository instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ZypperRepository instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IZypperRepository): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.ZypperRepository;
+
+ /**
+ * Encodes the specified ZypperRepository message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.ZypperRepository.verify|verify} messages.
+ * @param message ZypperRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IZypperRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ZypperRepository message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.ZypperRepository.verify|verify} messages.
+ * @param message ZypperRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IZypperRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ZypperRepository message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ZypperRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.ZypperRepository;
+
+ /**
+ * Decodes a ZypperRepository message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ZypperRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.ZypperRepository;
+
+ /**
+ * Verifies a ZypperRepository message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ZypperRepository message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ZypperRepository
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.ZypperRepository;
+
+ /**
+ * Creates a plain object from a ZypperRepository message. Also converts values to other types if specified.
+ * @param message ZypperRepository
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.ZypperRepository, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ZypperRepository to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ZypperRepository
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GooRepository. */
+ interface IGooRepository {
+
+ /** GooRepository name */
+ name?: (string|null);
+
+ /** GooRepository url */
+ url?: (string|null);
+ }
+
+ /** Represents a GooRepository. */
+ class GooRepository implements IGooRepository {
+
+ /**
+ * Constructs a new GooRepository.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IGooRepository);
+
+ /** GooRepository name. */
+ public name: string;
+
+ /** GooRepository url. */
+ public url: string;
+
+ /**
+ * Creates a new GooRepository instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GooRepository instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IGooRepository): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.GooRepository;
+
+ /**
+ * Encodes the specified GooRepository message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.GooRepository.verify|verify} messages.
+ * @param message GooRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IGooRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GooRepository message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.GooRepository.verify|verify} messages.
+ * @param message GooRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.IGooRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GooRepository message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GooRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.GooRepository;
+
+ /**
+ * Decodes a GooRepository message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GooRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.GooRepository;
+
+ /**
+ * Verifies a GooRepository message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GooRepository message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GooRepository
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.GooRepository;
+
+ /**
+ * Creates a plain object from a GooRepository message. Also converts values to other types if specified.
+ * @param message GooRepository
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.GooRepository, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GooRepository to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GooRepository
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExecResource. */
+ interface IExecResource {
+
+ /** ExecResource validate */
+ validate?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.IExec|null);
+
+ /** ExecResource enforce */
+ enforce?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.IExec|null);
+ }
+
+ /** Represents an ExecResource. */
+ class ExecResource implements IExecResource {
+
+ /**
+ * Constructs a new ExecResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IExecResource);
+
+ /** ExecResource validate. */
+ public validate?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.IExec|null);
+
+ /** ExecResource enforce. */
+ public enforce?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.IExec|null);
+
+ /**
+ * Creates a new ExecResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExecResource instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IExecResource): google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource;
+
+ /**
+ * Encodes the specified ExecResource message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.verify|verify} messages.
+ * @param message ExecResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IExecResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExecResource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.verify|verify} messages.
+ * @param message ExecResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IExecResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExecResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExecResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource;
+
+ /**
+ * Decodes an ExecResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExecResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource;
+
+ /**
+ * Verifies an ExecResource message.
+ * @param message Plain 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 ExecResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExecResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource;
+
+ /**
+ * Creates a plain object from an ExecResource message. Also converts values to other types if specified.
+ * @param message ExecResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExecResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExecResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExecResource {
+
+ /** Properties of an Exec. */
+ interface IExec {
+
+ /** Exec file */
+ file?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile|null);
+
+ /** Exec script */
+ script?: (string|null);
+
+ /** Exec args */
+ args?: (string[]|null);
+
+ /** Exec interpreter */
+ interpreter?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.Interpreter|keyof typeof google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.Interpreter|null);
+
+ /** Exec outputFilePath */
+ outputFilePath?: (string|null);
+ }
+
+ /** Represents an Exec. */
+ class Exec implements IExec {
+
+ /**
+ * Constructs a new Exec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.IExec);
+
+ /** Exec file. */
+ public file?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile|null);
+
+ /** Exec script. */
+ public script?: (string|null);
+
+ /** Exec args. */
+ public args: string[];
+
+ /** Exec interpreter. */
+ public interpreter: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.Interpreter|keyof typeof google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.Interpreter);
+
+ /** Exec outputFilePath. */
+ public outputFilePath: string;
+
+ /** Exec source. */
+ public source?: ("file"|"script");
+
+ /**
+ * Creates a new Exec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Exec instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.IExec): google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec;
+
+ /**
+ * Encodes the specified Exec message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.verify|verify} messages.
+ * @param message Exec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.IExec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Exec message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.verify|verify} messages.
+ * @param message Exec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.IExec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Exec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Exec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec;
+
+ /**
+ * Decodes an Exec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Exec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec;
+
+ /**
+ * Verifies an Exec message.
+ * @param message Plain 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 Exec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Exec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec;
+
+ /**
+ * Creates a plain object from an Exec message. Also converts values to other types if specified.
+ * @param message Exec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Exec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Exec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Exec {
+
+ /** Interpreter enum. */
+ enum Interpreter {
+ INTERPRETER_UNSPECIFIED = 0,
+ NONE = 1,
+ SHELL = 2,
+ POWERSHELL = 3
+ }
+ }
+ }
+
+ /** Properties of a FileResource. */
+ interface IFileResource {
+
+ /** FileResource file */
+ file?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile|null);
+
+ /** FileResource content */
+ content?: (string|null);
+
+ /** FileResource path */
+ path?: (string|null);
+
+ /** FileResource state */
+ state?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState|null);
+
+ /** FileResource permissions */
+ permissions?: (string|null);
+ }
+
+ /** Represents a FileResource. */
+ class FileResource implements IFileResource {
+
+ /**
+ * Constructs a new FileResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFileResource);
+
+ /** FileResource file. */
+ public file?: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFile|null);
+
+ /** FileResource content. */
+ public content?: (string|null);
+
+ /** FileResource path. */
+ public path: string;
+
+ /** FileResource state. */
+ public state: (google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState);
+
+ /** FileResource permissions. */
+ public permissions: string;
+
+ /** FileResource source. */
+ public source?: ("file"|"content");
+
+ /**
+ * Creates a new FileResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileResource instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFileResource): google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource;
+
+ /**
+ * Encodes the specified FileResource message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.verify|verify} messages.
+ * @param message FileResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFileResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileResource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.verify|verify} messages.
+ * @param message FileResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.IFileResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource;
+
+ /**
+ * Decodes a FileResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource;
+
+ /**
+ * Verifies a FileResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource;
+
+ /**
+ * Creates a plain object from a FileResource message. Also converts values to other types if specified.
+ * @param message FileResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileResource {
+
+ /** DesiredState enum. */
+ enum DesiredState {
+ DESIRED_STATE_UNSPECIFIED = 0,
+ PRESENT = 1,
+ ABSENT = 2,
+ CONTENTS_MATCH = 3
+ }
+ }
+ }
+
+ /** Properties of a ResourceGroup. */
+ interface IResourceGroup {
+
+ /** ResourceGroup osFilter */
+ osFilter?: (google.cloud.osconfig.v1alpha.OSPolicy.IOSFilter|null);
+
+ /** ResourceGroup inventoryFilters */
+ inventoryFilters?: (google.cloud.osconfig.v1alpha.OSPolicy.IInventoryFilter[]|null);
+
+ /** ResourceGroup resources */
+ resources?: (google.cloud.osconfig.v1alpha.OSPolicy.IResource[]|null);
+ }
+
+ /** Represents a ResourceGroup. */
+ class ResourceGroup implements IResourceGroup {
+
+ /**
+ * Constructs a new ResourceGroup.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicy.IResourceGroup);
+
+ /** ResourceGroup osFilter. */
+ public osFilter?: (google.cloud.osconfig.v1alpha.OSPolicy.IOSFilter|null);
+
+ /** ResourceGroup inventoryFilters. */
+ public inventoryFilters: google.cloud.osconfig.v1alpha.OSPolicy.IInventoryFilter[];
+
+ /** ResourceGroup resources. */
+ public resources: google.cloud.osconfig.v1alpha.OSPolicy.IResource[];
+
+ /**
+ * Creates a new ResourceGroup instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceGroup instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicy.IResourceGroup): google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup;
+
+ /**
+ * Encodes the specified ResourceGroup message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.verify|verify} messages.
+ * @param message ResourceGroup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicy.IResourceGroup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceGroup message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.verify|verify} messages.
+ * @param message ResourceGroup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicy.IResourceGroup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceGroup message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup;
+
+ /**
+ * Decodes a ResourceGroup message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup;
+
+ /**
+ * Verifies a ResourceGroup message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceGroup message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceGroup
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup;
+
+ /**
+ * Creates a plain object from a ResourceGroup message. Also converts values to other types if specified.
+ * @param message ResourceGroup
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceGroup to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceGroup
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GetOSPolicyAssignmentReportRequest. */
+ interface IGetOSPolicyAssignmentReportRequest {
+
+ /** GetOSPolicyAssignmentReportRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOSPolicyAssignmentReportRequest. */
+ class GetOSPolicyAssignmentReportRequest implements IGetOSPolicyAssignmentReportRequest {
+
+ /**
+ * Constructs a new GetOSPolicyAssignmentReportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IGetOSPolicyAssignmentReportRequest);
+
+ /** GetOSPolicyAssignmentReportRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOSPolicyAssignmentReportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOSPolicyAssignmentReportRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IGetOSPolicyAssignmentReportRequest): google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest;
+
+ /**
+ * Encodes the specified GetOSPolicyAssignmentReportRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest.verify|verify} messages.
+ * @param message GetOSPolicyAssignmentReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IGetOSPolicyAssignmentReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOSPolicyAssignmentReportRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest.verify|verify} messages.
+ * @param message GetOSPolicyAssignmentReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IGetOSPolicyAssignmentReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOSPolicyAssignmentReportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOSPolicyAssignmentReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest;
+
+ /**
+ * Decodes a GetOSPolicyAssignmentReportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOSPolicyAssignmentReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest;
+
+ /**
+ * Verifies a GetOSPolicyAssignmentReportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOSPolicyAssignmentReportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOSPolicyAssignmentReportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest;
+
+ /**
+ * Creates a plain object from a GetOSPolicyAssignmentReportRequest message. Also converts values to other types if specified.
+ * @param message GetOSPolicyAssignmentReportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOSPolicyAssignmentReportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOSPolicyAssignmentReportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOSPolicyAssignmentReportsRequest. */
+ interface IListOSPolicyAssignmentReportsRequest {
+
+ /** ListOSPolicyAssignmentReportsRequest parent */
+ parent?: (string|null);
+
+ /** ListOSPolicyAssignmentReportsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOSPolicyAssignmentReportsRequest filter */
+ filter?: (string|null);
+
+ /** ListOSPolicyAssignmentReportsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOSPolicyAssignmentReportsRequest. */
+ class ListOSPolicyAssignmentReportsRequest implements IListOSPolicyAssignmentReportsRequest {
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentReportsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentReportsRequest);
+
+ /** ListOSPolicyAssignmentReportsRequest parent. */
+ public parent: string;
+
+ /** ListOSPolicyAssignmentReportsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOSPolicyAssignmentReportsRequest filter. */
+ public filter: string;
+
+ /** ListOSPolicyAssignmentReportsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOSPolicyAssignmentReportsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOSPolicyAssignmentReportsRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentReportsRequest): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentReportsRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentReportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentReportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentReportsRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentReportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentReportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentReportsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOSPolicyAssignmentReportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentReportsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOSPolicyAssignmentReportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest;
+
+ /**
+ * Verifies a ListOSPolicyAssignmentReportsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOSPolicyAssignmentReportsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOSPolicyAssignmentReportsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest;
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentReportsRequest message. Also converts values to other types if specified.
+ * @param message ListOSPolicyAssignmentReportsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOSPolicyAssignmentReportsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentReportsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOSPolicyAssignmentReportsResponse. */
+ interface IListOSPolicyAssignmentReportsResponse {
+
+ /** ListOSPolicyAssignmentReportsResponse osPolicyAssignmentReports */
+ osPolicyAssignmentReports?: (google.cloud.osconfig.v1alpha.IOSPolicyAssignmentReport[]|null);
+
+ /** ListOSPolicyAssignmentReportsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOSPolicyAssignmentReportsResponse. */
+ class ListOSPolicyAssignmentReportsResponse implements IListOSPolicyAssignmentReportsResponse {
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentReportsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentReportsResponse);
+
+ /** ListOSPolicyAssignmentReportsResponse osPolicyAssignmentReports. */
+ public osPolicyAssignmentReports: google.cloud.osconfig.v1alpha.IOSPolicyAssignmentReport[];
+
+ /** ListOSPolicyAssignmentReportsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOSPolicyAssignmentReportsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOSPolicyAssignmentReportsResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentReportsResponse): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentReportsResponse message. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentReportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentReportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentReportsResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentReportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentReportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentReportsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOSPolicyAssignmentReportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentReportsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOSPolicyAssignmentReportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse;
+
+ /**
+ * Verifies a ListOSPolicyAssignmentReportsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOSPolicyAssignmentReportsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOSPolicyAssignmentReportsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse;
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentReportsResponse message. Also converts values to other types if specified.
+ * @param message ListOSPolicyAssignmentReportsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOSPolicyAssignmentReportsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentReportsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a OSPolicyAssignmentReport. */
+ interface IOSPolicyAssignmentReport {
+
+ /** OSPolicyAssignmentReport name */
+ name?: (string|null);
+
+ /** OSPolicyAssignmentReport instance */
+ instance?: (string|null);
+
+ /** OSPolicyAssignmentReport osPolicyAssignment */
+ osPolicyAssignment?: (string|null);
+
+ /** OSPolicyAssignmentReport osPolicyCompliances */
+ osPolicyCompliances?: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.IOSPolicyCompliance[]|null);
+
+ /** OSPolicyAssignmentReport updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OSPolicyAssignmentReport lastRunId */
+ lastRunId?: (string|null);
+ }
+
+ /** Represents a OSPolicyAssignmentReport. */
+ class OSPolicyAssignmentReport implements IOSPolicyAssignmentReport {
+
+ /**
+ * Constructs a new OSPolicyAssignmentReport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IOSPolicyAssignmentReport);
+
+ /** OSPolicyAssignmentReport name. */
+ public name: string;
+
+ /** OSPolicyAssignmentReport instance. */
+ public instance: string;
+
+ /** OSPolicyAssignmentReport osPolicyAssignment. */
+ public osPolicyAssignment: string;
+
+ /** OSPolicyAssignmentReport osPolicyCompliances. */
+ public osPolicyCompliances: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.IOSPolicyCompliance[];
+
+ /** OSPolicyAssignmentReport updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OSPolicyAssignmentReport lastRunId. */
+ public lastRunId: string;
+
+ /**
+ * Creates a new OSPolicyAssignmentReport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyAssignmentReport instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IOSPolicyAssignmentReport): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport;
+
+ /**
+ * Encodes the specified OSPolicyAssignmentReport message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.verify|verify} messages.
+ * @param message OSPolicyAssignmentReport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IOSPolicyAssignmentReport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyAssignmentReport message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.verify|verify} messages.
+ * @param message OSPolicyAssignmentReport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IOSPolicyAssignmentReport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyAssignmentReport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyAssignmentReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport;
+
+ /**
+ * Decodes a OSPolicyAssignmentReport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyAssignmentReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport;
+
+ /**
+ * Verifies a OSPolicyAssignmentReport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyAssignmentReport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyAssignmentReport
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport;
+
+ /**
+ * Creates a plain object from a OSPolicyAssignmentReport message. Also converts values to other types if specified.
+ * @param message OSPolicyAssignmentReport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyAssignmentReport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyAssignmentReport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyAssignmentReport {
+
+ /** Properties of a OSPolicyCompliance. */
+ interface IOSPolicyCompliance {
+
+ /** OSPolicyCompliance osPolicyId */
+ osPolicyId?: (string|null);
+
+ /** OSPolicyCompliance complianceState */
+ complianceState?: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState|null);
+
+ /** OSPolicyCompliance complianceStateReason */
+ complianceStateReason?: (string|null);
+
+ /** OSPolicyCompliance osPolicyResourceCompliances */
+ osPolicyResourceCompliances?: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance[]|null);
+ }
+
+ /** Represents a OSPolicyCompliance. */
+ class OSPolicyCompliance implements IOSPolicyCompliance {
+
+ /**
+ * Constructs a new OSPolicyCompliance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.IOSPolicyCompliance);
+
+ /** OSPolicyCompliance osPolicyId. */
+ public osPolicyId: string;
+
+ /** OSPolicyCompliance complianceState. */
+ public complianceState: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState);
+
+ /** OSPolicyCompliance complianceStateReason. */
+ public complianceStateReason: string;
+
+ /** OSPolicyCompliance osPolicyResourceCompliances. */
+ public osPolicyResourceCompliances: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance[];
+
+ /**
+ * Creates a new OSPolicyCompliance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyCompliance instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.IOSPolicyCompliance): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance;
+
+ /**
+ * Encodes the specified OSPolicyCompliance message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.verify|verify} messages.
+ * @param message OSPolicyCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.IOSPolicyCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyCompliance message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.verify|verify} messages.
+ * @param message OSPolicyCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.IOSPolicyCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyCompliance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance;
+
+ /**
+ * Decodes a OSPolicyCompliance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance;
+
+ /**
+ * Verifies a OSPolicyCompliance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyCompliance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyCompliance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance;
+
+ /**
+ * Creates a plain object from a OSPolicyCompliance message. Also converts values to other types if specified.
+ * @param message OSPolicyCompliance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyCompliance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyCompliance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyCompliance {
+
+ /** ComplianceState enum. */
+ enum ComplianceState {
+ UNKNOWN = 0,
+ COMPLIANT = 1,
+ NON_COMPLIANT = 2
+ }
+
+ /** Properties of a OSPolicyResourceCompliance. */
+ interface IOSPolicyResourceCompliance {
+
+ /** OSPolicyResourceCompliance osPolicyResourceId */
+ osPolicyResourceId?: (string|null);
+
+ /** OSPolicyResourceCompliance configSteps */
+ configSteps?: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep[]|null);
+
+ /** OSPolicyResourceCompliance complianceState */
+ complianceState?: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState|null);
+
+ /** OSPolicyResourceCompliance complianceStateReason */
+ complianceStateReason?: (string|null);
+
+ /** OSPolicyResourceCompliance execResourceOutput */
+ execResourceOutput?: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput|null);
+ }
+
+ /** Represents a OSPolicyResourceCompliance. */
+ class OSPolicyResourceCompliance implements IOSPolicyResourceCompliance {
+
+ /**
+ * Constructs a new OSPolicyResourceCompliance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance);
+
+ /** OSPolicyResourceCompliance osPolicyResourceId. */
+ public osPolicyResourceId: string;
+
+ /** OSPolicyResourceCompliance configSteps. */
+ public configSteps: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep[];
+
+ /** OSPolicyResourceCompliance complianceState. */
+ public complianceState: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState);
+
+ /** OSPolicyResourceCompliance complianceStateReason. */
+ public complianceStateReason: string;
+
+ /** OSPolicyResourceCompliance execResourceOutput. */
+ public execResourceOutput?: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput|null);
+
+ /** OSPolicyResourceCompliance output. */
+ public output?: "execResourceOutput";
+
+ /**
+ * Creates a new OSPolicyResourceCompliance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyResourceCompliance instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance;
+
+ /**
+ * Encodes the specified OSPolicyResourceCompliance message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.verify|verify} messages.
+ * @param message OSPolicyResourceCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyResourceCompliance message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.verify|verify} messages.
+ * @param message OSPolicyResourceCompliance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyResourceCompliance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyResourceCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance;
+
+ /**
+ * Decodes a OSPolicyResourceCompliance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyResourceCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance;
+
+ /**
+ * Verifies a OSPolicyResourceCompliance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyResourceCompliance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyResourceCompliance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance;
+
+ /**
+ * Creates a plain object from a OSPolicyResourceCompliance message. Also converts values to other types if specified.
+ * @param message OSPolicyResourceCompliance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyResourceCompliance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyResourceCompliance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyResourceCompliance {
+
+ /** Properties of a OSPolicyResourceConfigStep. */
+ interface IOSPolicyResourceConfigStep {
+
+ /** OSPolicyResourceConfigStep type */
+ type?: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type|null);
+
+ /** OSPolicyResourceConfigStep errorMessage */
+ errorMessage?: (string|null);
+ }
+
+ /** Represents a OSPolicyResourceConfigStep. */
+ class OSPolicyResourceConfigStep implements IOSPolicyResourceConfigStep {
+
+ /**
+ * Constructs a new OSPolicyResourceConfigStep.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep);
+
+ /** OSPolicyResourceConfigStep type. */
+ public type: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type);
+
+ /** OSPolicyResourceConfigStep errorMessage. */
+ public errorMessage: string;
+
+ /**
+ * Creates a new OSPolicyResourceConfigStep instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyResourceConfigStep instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep;
+
+ /**
+ * Encodes the specified OSPolicyResourceConfigStep message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.verify|verify} messages.
+ * @param message OSPolicyResourceConfigStep message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyResourceConfigStep message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.verify|verify} messages.
+ * @param message OSPolicyResourceConfigStep message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyResourceConfigStep message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyResourceConfigStep
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep;
+
+ /**
+ * Decodes a OSPolicyResourceConfigStep message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyResourceConfigStep
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep;
+
+ /**
+ * Verifies a OSPolicyResourceConfigStep message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyResourceConfigStep message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyResourceConfigStep
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep;
+
+ /**
+ * Creates a plain object from a OSPolicyResourceConfigStep message. Also converts values to other types if specified.
+ * @param message OSPolicyResourceConfigStep
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyResourceConfigStep to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyResourceConfigStep
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyResourceConfigStep {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ VALIDATION = 1,
+ DESIRED_STATE_CHECK = 2,
+ DESIRED_STATE_ENFORCEMENT = 3,
+ DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4
+ }
+ }
+
+ /** ComplianceState enum. */
+ enum ComplianceState {
+ UNKNOWN = 0,
+ COMPLIANT = 1,
+ NON_COMPLIANT = 2
+ }
+
+ /** Properties of an ExecResourceOutput. */
+ interface IExecResourceOutput {
+
+ /** ExecResourceOutput enforcementOutput */
+ enforcementOutput?: (Uint8Array|string|null);
+ }
+
+ /** Represents an ExecResourceOutput. */
+ class ExecResourceOutput implements IExecResourceOutput {
+
+ /**
+ * Constructs a new ExecResourceOutput.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput);
+
+ /** ExecResourceOutput enforcementOutput. */
+ public enforcementOutput: (Uint8Array|string);
+
+ /**
+ * Creates a new ExecResourceOutput instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExecResourceOutput instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput;
+
+ /**
+ * Encodes the specified ExecResourceOutput message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput.verify|verify} messages.
+ * @param message ExecResourceOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExecResourceOutput message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput.verify|verify} messages.
+ * @param message ExecResourceOutput message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExecResourceOutput message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExecResourceOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput;
+
+ /**
+ * Decodes an ExecResourceOutput message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExecResourceOutput
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput;
+
+ /**
+ * Verifies an ExecResourceOutput message.
+ * @param message Plain 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 ExecResourceOutput message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExecResourceOutput
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput;
+
+ /**
+ * Creates a plain object from an ExecResourceOutput message. Also converts values to other types if specified.
+ * @param message ExecResourceOutput
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExecResourceOutput to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExecResourceOutput
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+
+ /** Properties of a OSPolicyAssignment. */
+ interface IOSPolicyAssignment {
+
+ /** OSPolicyAssignment name */
+ name?: (string|null);
+
+ /** OSPolicyAssignment description */
+ description?: (string|null);
+
+ /** OSPolicyAssignment osPolicies */
+ osPolicies?: (google.cloud.osconfig.v1alpha.IOSPolicy[]|null);
+
+ /** OSPolicyAssignment instanceFilter */
+ instanceFilter?: (google.cloud.osconfig.v1alpha.OSPolicyAssignment.IInstanceFilter|null);
+
+ /** OSPolicyAssignment rollout */
+ rollout?: (google.cloud.osconfig.v1alpha.OSPolicyAssignment.IRollout|null);
+
+ /** OSPolicyAssignment revisionId */
+ revisionId?: (string|null);
+
+ /** OSPolicyAssignment revisionCreateTime */
+ revisionCreateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OSPolicyAssignment etag */
+ etag?: (string|null);
+
+ /** OSPolicyAssignment rolloutState */
+ rolloutState?: (google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState|null);
+
+ /** OSPolicyAssignment baseline */
+ baseline?: (boolean|null);
+
+ /** OSPolicyAssignment deleted */
+ deleted?: (boolean|null);
+
+ /** OSPolicyAssignment reconciling */
+ reconciling?: (boolean|null);
+
+ /** OSPolicyAssignment uid */
+ uid?: (string|null);
+ }
+
+ /** Represents a OSPolicyAssignment. */
+ class OSPolicyAssignment implements IOSPolicyAssignment {
+
+ /**
+ * Constructs a new OSPolicyAssignment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IOSPolicyAssignment);
+
+ /** OSPolicyAssignment name. */
+ public name: string;
+
+ /** OSPolicyAssignment description. */
+ public description: string;
+
+ /** OSPolicyAssignment osPolicies. */
+ public osPolicies: google.cloud.osconfig.v1alpha.IOSPolicy[];
+
+ /** OSPolicyAssignment instanceFilter. */
+ public instanceFilter?: (google.cloud.osconfig.v1alpha.OSPolicyAssignment.IInstanceFilter|null);
+
+ /** OSPolicyAssignment rollout. */
+ public rollout?: (google.cloud.osconfig.v1alpha.OSPolicyAssignment.IRollout|null);
+
+ /** OSPolicyAssignment revisionId. */
+ public revisionId: string;
+
+ /** OSPolicyAssignment revisionCreateTime. */
+ public revisionCreateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OSPolicyAssignment etag. */
+ public etag: string;
+
+ /** OSPolicyAssignment rolloutState. */
+ public rolloutState: (google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState);
+
+ /** OSPolicyAssignment baseline. */
+ public baseline: boolean;
+
+ /** OSPolicyAssignment deleted. */
+ public deleted: boolean;
+
+ /** OSPolicyAssignment reconciling. */
+ public reconciling: boolean;
+
+ /** OSPolicyAssignment uid. */
+ public uid: string;
+
+ /**
+ * Creates a new OSPolicyAssignment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyAssignment instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IOSPolicyAssignment): google.cloud.osconfig.v1alpha.OSPolicyAssignment;
+
+ /**
+ * Encodes the specified OSPolicyAssignment message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignment.verify|verify} messages.
+ * @param message OSPolicyAssignment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IOSPolicyAssignment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyAssignment message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignment.verify|verify} messages.
+ * @param message OSPolicyAssignment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IOSPolicyAssignment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyAssignment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyAssignment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyAssignment;
+
+ /**
+ * Decodes a OSPolicyAssignment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyAssignment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyAssignment;
+
+ /**
+ * Verifies a OSPolicyAssignment message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyAssignment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyAssignment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyAssignment;
+
+ /**
+ * Creates a plain object from a OSPolicyAssignment message. Also converts values to other types if specified.
+ * @param message OSPolicyAssignment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyAssignment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyAssignment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyAssignment {
+
+ /** Properties of a LabelSet. */
+ interface ILabelSet {
+
+ /** LabelSet labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a LabelSet. */
+ class LabelSet implements ILabelSet {
+
+ /**
+ * Constructs a new LabelSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignment.ILabelSet);
+
+ /** LabelSet labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new LabelSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelSet instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignment.ILabelSet): google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet;
+
+ /**
+ * Encodes the specified LabelSet message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.verify|verify} messages.
+ * @param message LabelSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment.ILabelSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelSet message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.verify|verify} messages.
+ * @param message LabelSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment.ILabelSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet;
+
+ /**
+ * Decodes a LabelSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet;
+
+ /**
+ * Verifies a LabelSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet;
+
+ /**
+ * Creates a plain object from a LabelSet message. Also converts values to other types if specified.
+ * @param message LabelSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an InstanceFilter. */
+ interface IInstanceFilter {
+
+ /** InstanceFilter all */
+ all?: (boolean|null);
+
+ /** InstanceFilter osShortNames */
+ osShortNames?: (string[]|null);
+
+ /** InstanceFilter inclusionLabels */
+ inclusionLabels?: (google.cloud.osconfig.v1alpha.OSPolicyAssignment.ILabelSet[]|null);
+
+ /** InstanceFilter exclusionLabels */
+ exclusionLabels?: (google.cloud.osconfig.v1alpha.OSPolicyAssignment.ILabelSet[]|null);
+
+ /** InstanceFilter inventories */
+ inventories?: (google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.IInventory[]|null);
+ }
+
+ /** Represents an InstanceFilter. */
+ class InstanceFilter implements IInstanceFilter {
+
+ /**
+ * Constructs a new InstanceFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignment.IInstanceFilter);
+
+ /** InstanceFilter all. */
+ public all: boolean;
+
+ /** InstanceFilter osShortNames. */
+ public osShortNames: string[];
+
+ /** InstanceFilter inclusionLabels. */
+ public inclusionLabels: google.cloud.osconfig.v1alpha.OSPolicyAssignment.ILabelSet[];
+
+ /** InstanceFilter exclusionLabels. */
+ public exclusionLabels: google.cloud.osconfig.v1alpha.OSPolicyAssignment.ILabelSet[];
+
+ /** InstanceFilter inventories. */
+ public inventories: google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.IInventory[];
+
+ /**
+ * Creates a new InstanceFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InstanceFilter instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignment.IInstanceFilter): google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter;
+
+ /**
+ * Encodes the specified InstanceFilter message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.verify|verify} messages.
+ * @param message InstanceFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment.IInstanceFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InstanceFilter message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.verify|verify} messages.
+ * @param message InstanceFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment.IInstanceFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InstanceFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InstanceFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter;
+
+ /**
+ * Decodes an InstanceFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InstanceFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter;
+
+ /**
+ * Verifies an InstanceFilter message.
+ * @param message Plain 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 InstanceFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InstanceFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter;
+
+ /**
+ * Creates a plain object from an InstanceFilter message. Also converts values to other types if specified.
+ * @param message InstanceFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InstanceFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InstanceFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace InstanceFilter {
+
+ /** Properties of an Inventory. */
+ interface IInventory {
+
+ /** Inventory osShortName */
+ osShortName?: (string|null);
+
+ /** Inventory osVersion */
+ osVersion?: (string|null);
+ }
+
+ /** Represents an Inventory. */
+ class Inventory implements IInventory {
+
+ /**
+ * Constructs a new Inventory.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.IInventory);
+
+ /** Inventory osShortName. */
+ public osShortName: string;
+
+ /** Inventory osVersion. */
+ public osVersion: string;
+
+ /**
+ * Creates a new Inventory instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Inventory instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.IInventory): google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory;
+
+ /**
+ * Encodes the specified Inventory message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory.verify|verify} messages.
+ * @param message Inventory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.IInventory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Inventory message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory.verify|verify} messages.
+ * @param message Inventory message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.IInventory, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Inventory message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Inventory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory;
+
+ /**
+ * Decodes an Inventory message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Inventory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory;
+
+ /**
+ * Verifies an Inventory message.
+ * @param message Plain 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 Inventory message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Inventory
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory;
+
+ /**
+ * Creates a plain object from an Inventory message. Also converts values to other types if specified.
+ * @param message Inventory
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Inventory to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Inventory
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Rollout. */
+ interface IRollout {
+
+ /** Rollout disruptionBudget */
+ disruptionBudget?: (google.cloud.osconfig.v1alpha.IFixedOrPercent|null);
+
+ /** Rollout minWaitDuration */
+ minWaitDuration?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a Rollout. */
+ class Rollout implements IRollout {
+
+ /**
+ * Constructs a new Rollout.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignment.IRollout);
+
+ /** Rollout disruptionBudget. */
+ public disruptionBudget?: (google.cloud.osconfig.v1alpha.IFixedOrPercent|null);
+
+ /** Rollout minWaitDuration. */
+ public minWaitDuration?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new Rollout instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Rollout instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.OSPolicyAssignment.IRollout): google.cloud.osconfig.v1alpha.OSPolicyAssignment.Rollout;
+
+ /**
+ * Encodes the specified Rollout message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignment.Rollout.verify|verify} messages.
+ * @param message Rollout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment.IRollout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Rollout message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignment.Rollout.verify|verify} messages.
+ * @param message Rollout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment.IRollout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Rollout message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Rollout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyAssignment.Rollout;
+
+ /**
+ * Decodes a Rollout message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Rollout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyAssignment.Rollout;
+
+ /**
+ * Verifies a Rollout message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Rollout message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Rollout
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyAssignment.Rollout;
+
+ /**
+ * Creates a plain object from a Rollout message. Also converts values to other types if specified.
+ * @param message Rollout
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyAssignment.Rollout, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Rollout to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Rollout
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** RolloutState enum. */
+ enum RolloutState {
+ ROLLOUT_STATE_UNSPECIFIED = 0,
+ IN_PROGRESS = 1,
+ CANCELLING = 2,
+ CANCELLED = 3,
+ SUCCEEDED = 4
+ }
+ }
+
+ /** Properties of a OSPolicyAssignmentOperationMetadata. */
+ interface IOSPolicyAssignmentOperationMetadata {
+
+ /** OSPolicyAssignmentOperationMetadata osPolicyAssignment */
+ osPolicyAssignment?: (string|null);
+
+ /** OSPolicyAssignmentOperationMetadata apiMethod */
+ apiMethod?: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.APIMethod|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.APIMethod|null);
+
+ /** OSPolicyAssignmentOperationMetadata rolloutState */
+ rolloutState?: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.RolloutState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.RolloutState|null);
+
+ /** OSPolicyAssignmentOperationMetadata rolloutStartTime */
+ rolloutStartTime?: (google.protobuf.ITimestamp|null);
+
+ /** OSPolicyAssignmentOperationMetadata rolloutUpdateTime */
+ rolloutUpdateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a OSPolicyAssignmentOperationMetadata. */
+ class OSPolicyAssignmentOperationMetadata implements IOSPolicyAssignmentOperationMetadata {
+
+ /**
+ * Constructs a new OSPolicyAssignmentOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IOSPolicyAssignmentOperationMetadata);
+
+ /** OSPolicyAssignmentOperationMetadata osPolicyAssignment. */
+ public osPolicyAssignment: string;
+
+ /** OSPolicyAssignmentOperationMetadata apiMethod. */
+ public apiMethod: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.APIMethod|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.APIMethod);
+
+ /** OSPolicyAssignmentOperationMetadata rolloutState. */
+ public rolloutState: (google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.RolloutState|keyof typeof google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.RolloutState);
+
+ /** OSPolicyAssignmentOperationMetadata rolloutStartTime. */
+ public rolloutStartTime?: (google.protobuf.ITimestamp|null);
+
+ /** OSPolicyAssignmentOperationMetadata rolloutUpdateTime. */
+ public rolloutUpdateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new OSPolicyAssignmentOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OSPolicyAssignmentOperationMetadata instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IOSPolicyAssignmentOperationMetadata): google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata;
+
+ /**
+ * Encodes the specified OSPolicyAssignmentOperationMetadata message. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.verify|verify} messages.
+ * @param message OSPolicyAssignmentOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IOSPolicyAssignmentOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OSPolicyAssignmentOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.verify|verify} messages.
+ * @param message OSPolicyAssignmentOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IOSPolicyAssignmentOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OSPolicyAssignmentOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OSPolicyAssignmentOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata;
+
+ /**
+ * Decodes a OSPolicyAssignmentOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OSPolicyAssignmentOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata;
+
+ /**
+ * Verifies a OSPolicyAssignmentOperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OSPolicyAssignmentOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OSPolicyAssignmentOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata;
+
+ /**
+ * Creates a plain object from a OSPolicyAssignmentOperationMetadata message. Also converts values to other types if specified.
+ * @param message OSPolicyAssignmentOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OSPolicyAssignmentOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OSPolicyAssignmentOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OSPolicyAssignmentOperationMetadata {
+
+ /** APIMethod enum. */
+ enum APIMethod {
+ API_METHOD_UNSPECIFIED = 0,
+ CREATE = 1,
+ UPDATE = 2,
+ DELETE = 3
+ }
+
+ /** RolloutState enum. */
+ enum RolloutState {
+ ROLLOUT_STATE_UNSPECIFIED = 0,
+ IN_PROGRESS = 1,
+ CANCELLING = 2,
+ CANCELLED = 3,
+ SUCCEEDED = 4
+ }
+ }
+
+ /** Properties of a CreateOSPolicyAssignmentRequest. */
+ interface ICreateOSPolicyAssignmentRequest {
+
+ /** CreateOSPolicyAssignmentRequest parent */
+ parent?: (string|null);
+
+ /** CreateOSPolicyAssignmentRequest osPolicyAssignment */
+ osPolicyAssignment?: (google.cloud.osconfig.v1alpha.IOSPolicyAssignment|null);
+
+ /** CreateOSPolicyAssignmentRequest osPolicyAssignmentId */
+ osPolicyAssignmentId?: (string|null);
+ }
+
+ /** Represents a CreateOSPolicyAssignmentRequest. */
+ class CreateOSPolicyAssignmentRequest implements ICreateOSPolicyAssignmentRequest {
+
+ /**
+ * Constructs a new CreateOSPolicyAssignmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.ICreateOSPolicyAssignmentRequest);
+
+ /** CreateOSPolicyAssignmentRequest parent. */
+ public parent: string;
+
+ /** CreateOSPolicyAssignmentRequest osPolicyAssignment. */
+ public osPolicyAssignment?: (google.cloud.osconfig.v1alpha.IOSPolicyAssignment|null);
+
+ /** CreateOSPolicyAssignmentRequest osPolicyAssignmentId. */
+ public osPolicyAssignmentId: string;
+
+ /**
+ * Creates a new CreateOSPolicyAssignmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateOSPolicyAssignmentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.ICreateOSPolicyAssignmentRequest): google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest;
+
+ /**
+ * Encodes the specified CreateOSPolicyAssignmentRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message CreateOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.ICreateOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateOSPolicyAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message CreateOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.ICreateOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateOSPolicyAssignmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest;
+
+ /**
+ * Decodes a CreateOSPolicyAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest;
+
+ /**
+ * Verifies a CreateOSPolicyAssignmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateOSPolicyAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateOSPolicyAssignmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest;
+
+ /**
+ * Creates a plain object from a CreateOSPolicyAssignmentRequest message. Also converts values to other types if specified.
+ * @param message CreateOSPolicyAssignmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateOSPolicyAssignmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateOSPolicyAssignmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateOSPolicyAssignmentRequest. */
+ interface IUpdateOSPolicyAssignmentRequest {
+
+ /** UpdateOSPolicyAssignmentRequest osPolicyAssignment */
+ osPolicyAssignment?: (google.cloud.osconfig.v1alpha.IOSPolicyAssignment|null);
+
+ /** UpdateOSPolicyAssignmentRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateOSPolicyAssignmentRequest. */
+ class UpdateOSPolicyAssignmentRequest implements IUpdateOSPolicyAssignmentRequest {
+
+ /**
+ * Constructs a new UpdateOSPolicyAssignmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IUpdateOSPolicyAssignmentRequest);
+
+ /** UpdateOSPolicyAssignmentRequest osPolicyAssignment. */
+ public osPolicyAssignment?: (google.cloud.osconfig.v1alpha.IOSPolicyAssignment|null);
+
+ /** UpdateOSPolicyAssignmentRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateOSPolicyAssignmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateOSPolicyAssignmentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IUpdateOSPolicyAssignmentRequest): google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest;
+
+ /**
+ * Encodes the specified UpdateOSPolicyAssignmentRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message UpdateOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IUpdateOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateOSPolicyAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message UpdateOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IUpdateOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateOSPolicyAssignmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest;
+
+ /**
+ * Decodes an UpdateOSPolicyAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest;
+
+ /**
+ * Verifies an UpdateOSPolicyAssignmentRequest message.
+ * @param message Plain 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 UpdateOSPolicyAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateOSPolicyAssignmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest;
+
+ /**
+ * Creates a plain object from an UpdateOSPolicyAssignmentRequest message. Also converts values to other types if specified.
+ * @param message UpdateOSPolicyAssignmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateOSPolicyAssignmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateOSPolicyAssignmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOSPolicyAssignmentRequest. */
+ interface IGetOSPolicyAssignmentRequest {
+
+ /** GetOSPolicyAssignmentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOSPolicyAssignmentRequest. */
+ class GetOSPolicyAssignmentRequest implements IGetOSPolicyAssignmentRequest {
+
+ /**
+ * Constructs a new GetOSPolicyAssignmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IGetOSPolicyAssignmentRequest);
+
+ /** GetOSPolicyAssignmentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOSPolicyAssignmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOSPolicyAssignmentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IGetOSPolicyAssignmentRequest): google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest;
+
+ /**
+ * Encodes the specified GetOSPolicyAssignmentRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message GetOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IGetOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOSPolicyAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message GetOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IGetOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOSPolicyAssignmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest;
+
+ /**
+ * Decodes a GetOSPolicyAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest;
+
+ /**
+ * Verifies a GetOSPolicyAssignmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOSPolicyAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOSPolicyAssignmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest;
+
+ /**
+ * Creates a plain object from a GetOSPolicyAssignmentRequest message. Also converts values to other types if specified.
+ * @param message GetOSPolicyAssignmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOSPolicyAssignmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOSPolicyAssignmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOSPolicyAssignmentsRequest. */
+ interface IListOSPolicyAssignmentsRequest {
+
+ /** ListOSPolicyAssignmentsRequest parent */
+ parent?: (string|null);
+
+ /** ListOSPolicyAssignmentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOSPolicyAssignmentsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOSPolicyAssignmentsRequest. */
+ class ListOSPolicyAssignmentsRequest implements IListOSPolicyAssignmentsRequest {
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentsRequest);
+
+ /** ListOSPolicyAssignmentsRequest parent. */
+ public parent: string;
+
+ /** ListOSPolicyAssignmentsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOSPolicyAssignmentsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOSPolicyAssignmentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOSPolicyAssignmentsRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentsRequest): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentsRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentsRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOSPolicyAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOSPolicyAssignmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest;
+
+ /**
+ * Verifies a ListOSPolicyAssignmentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOSPolicyAssignmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOSPolicyAssignmentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest;
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentsRequest message. Also converts values to other types if specified.
+ * @param message ListOSPolicyAssignmentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOSPolicyAssignmentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOSPolicyAssignmentsResponse. */
+ interface IListOSPolicyAssignmentsResponse {
+
+ /** ListOSPolicyAssignmentsResponse osPolicyAssignments */
+ osPolicyAssignments?: (google.cloud.osconfig.v1alpha.IOSPolicyAssignment[]|null);
+
+ /** ListOSPolicyAssignmentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOSPolicyAssignmentsResponse. */
+ class ListOSPolicyAssignmentsResponse implements IListOSPolicyAssignmentsResponse {
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentsResponse);
+
+ /** ListOSPolicyAssignmentsResponse osPolicyAssignments. */
+ public osPolicyAssignments: google.cloud.osconfig.v1alpha.IOSPolicyAssignment[];
+
+ /** ListOSPolicyAssignmentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOSPolicyAssignmentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOSPolicyAssignmentsResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentsResponse): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentsResponse message. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentsResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOSPolicyAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOSPolicyAssignmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse;
+
+ /**
+ * Verifies a ListOSPolicyAssignmentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOSPolicyAssignmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOSPolicyAssignmentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse;
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentsResponse message. Also converts values to other types if specified.
+ * @param message ListOSPolicyAssignmentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOSPolicyAssignmentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOSPolicyAssignmentRevisionsRequest. */
+ interface IListOSPolicyAssignmentRevisionsRequest {
+
+ /** ListOSPolicyAssignmentRevisionsRequest name */
+ name?: (string|null);
+
+ /** ListOSPolicyAssignmentRevisionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOSPolicyAssignmentRevisionsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOSPolicyAssignmentRevisionsRequest. */
+ class ListOSPolicyAssignmentRevisionsRequest implements IListOSPolicyAssignmentRevisionsRequest {
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentRevisionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentRevisionsRequest);
+
+ /** ListOSPolicyAssignmentRevisionsRequest name. */
+ public name: string;
+
+ /** ListOSPolicyAssignmentRevisionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOSPolicyAssignmentRevisionsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOSPolicyAssignmentRevisionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOSPolicyAssignmentRevisionsRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentRevisionsRequest): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentRevisionsRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentRevisionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentRevisionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentRevisionsRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentRevisionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentRevisionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentRevisionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOSPolicyAssignmentRevisionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentRevisionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOSPolicyAssignmentRevisionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest;
+
+ /**
+ * Verifies a ListOSPolicyAssignmentRevisionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOSPolicyAssignmentRevisionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOSPolicyAssignmentRevisionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest;
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentRevisionsRequest message. Also converts values to other types if specified.
+ * @param message ListOSPolicyAssignmentRevisionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOSPolicyAssignmentRevisionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentRevisionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOSPolicyAssignmentRevisionsResponse. */
+ interface IListOSPolicyAssignmentRevisionsResponse {
+
+ /** ListOSPolicyAssignmentRevisionsResponse osPolicyAssignments */
+ osPolicyAssignments?: (google.cloud.osconfig.v1alpha.IOSPolicyAssignment[]|null);
+
+ /** ListOSPolicyAssignmentRevisionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOSPolicyAssignmentRevisionsResponse. */
+ class ListOSPolicyAssignmentRevisionsResponse implements IListOSPolicyAssignmentRevisionsResponse {
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentRevisionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentRevisionsResponse);
+
+ /** ListOSPolicyAssignmentRevisionsResponse osPolicyAssignments. */
+ public osPolicyAssignments: google.cloud.osconfig.v1alpha.IOSPolicyAssignment[];
+
+ /** ListOSPolicyAssignmentRevisionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOSPolicyAssignmentRevisionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOSPolicyAssignmentRevisionsResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentRevisionsResponse): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentRevisionsResponse message. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentRevisionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentRevisionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentRevisionsResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse.verify|verify} messages.
+ * @param message ListOSPolicyAssignmentRevisionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentRevisionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentRevisionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOSPolicyAssignmentRevisionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse;
+
+ /**
+ * Decodes a ListOSPolicyAssignmentRevisionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOSPolicyAssignmentRevisionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse;
+
+ /**
+ * Verifies a ListOSPolicyAssignmentRevisionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOSPolicyAssignmentRevisionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOSPolicyAssignmentRevisionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse;
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentRevisionsResponse message. Also converts values to other types if specified.
+ * @param message ListOSPolicyAssignmentRevisionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOSPolicyAssignmentRevisionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentRevisionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOSPolicyAssignmentRequest. */
+ interface IDeleteOSPolicyAssignmentRequest {
+
+ /** DeleteOSPolicyAssignmentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOSPolicyAssignmentRequest. */
+ class DeleteOSPolicyAssignmentRequest implements IDeleteOSPolicyAssignmentRequest {
+
+ /**
+ * Constructs a new DeleteOSPolicyAssignmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IDeleteOSPolicyAssignmentRequest);
+
+ /** DeleteOSPolicyAssignmentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOSPolicyAssignmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOSPolicyAssignmentRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IDeleteOSPolicyAssignmentRequest): google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest;
+
+ /**
+ * Encodes the specified DeleteOSPolicyAssignmentRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message DeleteOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IDeleteOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOSPolicyAssignmentRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest.verify|verify} messages.
+ * @param message DeleteOSPolicyAssignmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IDeleteOSPolicyAssignmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOSPolicyAssignmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest;
+
+ /**
+ * Decodes a DeleteOSPolicyAssignmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOSPolicyAssignmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest;
+
+ /**
+ * Verifies a DeleteOSPolicyAssignmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteOSPolicyAssignmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOSPolicyAssignmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest;
+
+ /**
+ * Creates a plain object from a DeleteOSPolicyAssignmentRequest message. Also converts values to other types if specified.
+ * @param message DeleteOSPolicyAssignmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOSPolicyAssignmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOSPolicyAssignmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FixedOrPercent. */
+ interface IFixedOrPercent {
+
+ /** FixedOrPercent fixed */
+ fixed?: (number|null);
+
+ /** FixedOrPercent percent */
+ percent?: (number|null);
+ }
+
+ /** Represents a FixedOrPercent. */
+ class FixedOrPercent implements IFixedOrPercent {
+
+ /**
+ * Constructs a new FixedOrPercent.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IFixedOrPercent);
+
+ /** FixedOrPercent fixed. */
+ public fixed?: (number|null);
+
+ /** FixedOrPercent percent. */
+ public percent?: (number|null);
+
+ /** FixedOrPercent mode. */
+ public mode?: ("fixed"|"percent");
+
+ /**
+ * Creates a new FixedOrPercent instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FixedOrPercent instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IFixedOrPercent): google.cloud.osconfig.v1alpha.FixedOrPercent;
+
+ /**
+ * Encodes the specified FixedOrPercent message. Does not implicitly {@link google.cloud.osconfig.v1alpha.FixedOrPercent.verify|verify} messages.
+ * @param message FixedOrPercent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IFixedOrPercent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FixedOrPercent message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.FixedOrPercent.verify|verify} messages.
+ * @param message FixedOrPercent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IFixedOrPercent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FixedOrPercent message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FixedOrPercent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.FixedOrPercent;
+
+ /**
+ * Decodes a FixedOrPercent message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FixedOrPercent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.FixedOrPercent;
+
+ /**
+ * Verifies a FixedOrPercent message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FixedOrPercent message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FixedOrPercent
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.FixedOrPercent;
+
+ /**
+ * Creates a plain object from a FixedOrPercent message. Also converts values to other types if specified.
+ * @param message FixedOrPercent
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.FixedOrPercent, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FixedOrPercent to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FixedOrPercent
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents an OsConfigZonalService */
+ class OsConfigZonalService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new OsConfigZonalService 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 OsConfigZonalService 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): OsConfigZonalService;
+
+ /**
+ * Calls CreateOSPolicyAssignment.
+ * @param request CreateOSPolicyAssignmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createOSPolicyAssignment(request: google.cloud.osconfig.v1alpha.ICreateOSPolicyAssignmentRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.CreateOSPolicyAssignmentCallback): void;
+
+ /**
+ * Calls CreateOSPolicyAssignment.
+ * @param request CreateOSPolicyAssignmentRequest message or plain object
+ * @returns Promise
+ */
+ public createOSPolicyAssignment(request: google.cloud.osconfig.v1alpha.ICreateOSPolicyAssignmentRequest): Promise;
+
+ /**
+ * Calls UpdateOSPolicyAssignment.
+ * @param request UpdateOSPolicyAssignmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateOSPolicyAssignment(request: google.cloud.osconfig.v1alpha.IUpdateOSPolicyAssignmentRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.UpdateOSPolicyAssignmentCallback): void;
+
+ /**
+ * Calls UpdateOSPolicyAssignment.
+ * @param request UpdateOSPolicyAssignmentRequest message or plain object
+ * @returns Promise
+ */
+ public updateOSPolicyAssignment(request: google.cloud.osconfig.v1alpha.IUpdateOSPolicyAssignmentRequest): Promise;
+
+ /**
+ * Calls GetOSPolicyAssignment.
+ * @param request GetOSPolicyAssignmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and OSPolicyAssignment
+ */
+ public getOSPolicyAssignment(request: google.cloud.osconfig.v1alpha.IGetOSPolicyAssignmentRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.GetOSPolicyAssignmentCallback): void;
+
+ /**
+ * Calls GetOSPolicyAssignment.
+ * @param request GetOSPolicyAssignmentRequest message or plain object
+ * @returns Promise
+ */
+ public getOSPolicyAssignment(request: google.cloud.osconfig.v1alpha.IGetOSPolicyAssignmentRequest): Promise;
+
+ /**
+ * Calls ListOSPolicyAssignments.
+ * @param request ListOSPolicyAssignmentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOSPolicyAssignmentsResponse
+ */
+ public listOSPolicyAssignments(request: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentsRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.ListOSPolicyAssignmentsCallback): void;
+
+ /**
+ * Calls ListOSPolicyAssignments.
+ * @param request ListOSPolicyAssignmentsRequest message or plain object
+ * @returns Promise
+ */
+ public listOSPolicyAssignments(request: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentsRequest): Promise;
+
+ /**
+ * Calls ListOSPolicyAssignmentRevisions.
+ * @param request ListOSPolicyAssignmentRevisionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOSPolicyAssignmentRevisionsResponse
+ */
+ public listOSPolicyAssignmentRevisions(request: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentRevisionsRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.ListOSPolicyAssignmentRevisionsCallback): void;
+
+ /**
+ * Calls ListOSPolicyAssignmentRevisions.
+ * @param request ListOSPolicyAssignmentRevisionsRequest message or plain object
+ * @returns Promise
+ */
+ public listOSPolicyAssignmentRevisions(request: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentRevisionsRequest): Promise;
+
+ /**
+ * Calls DeleteOSPolicyAssignment.
+ * @param request DeleteOSPolicyAssignmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteOSPolicyAssignment(request: google.cloud.osconfig.v1alpha.IDeleteOSPolicyAssignmentRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.DeleteOSPolicyAssignmentCallback): void;
+
+ /**
+ * Calls DeleteOSPolicyAssignment.
+ * @param request DeleteOSPolicyAssignmentRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOSPolicyAssignment(request: google.cloud.osconfig.v1alpha.IDeleteOSPolicyAssignmentRequest): Promise;
+
+ /**
+ * Calls GetInstanceOSPoliciesCompliance.
+ * @param request GetInstanceOSPoliciesComplianceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and InstanceOSPoliciesCompliance
+ */
+ public getInstanceOSPoliciesCompliance(request: google.cloud.osconfig.v1alpha.IGetInstanceOSPoliciesComplianceRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.GetInstanceOSPoliciesComplianceCallback): void;
+
+ /**
+ * Calls GetInstanceOSPoliciesCompliance.
+ * @param request GetInstanceOSPoliciesComplianceRequest message or plain object
+ * @returns Promise
+ */
+ public getInstanceOSPoliciesCompliance(request: google.cloud.osconfig.v1alpha.IGetInstanceOSPoliciesComplianceRequest): Promise;
+
+ /**
+ * Calls ListInstanceOSPoliciesCompliances.
+ * @param request ListInstanceOSPoliciesCompliancesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListInstanceOSPoliciesCompliancesResponse
+ */
+ public listInstanceOSPoliciesCompliances(request: google.cloud.osconfig.v1alpha.IListInstanceOSPoliciesCompliancesRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.ListInstanceOSPoliciesCompliancesCallback): void;
+
+ /**
+ * Calls ListInstanceOSPoliciesCompliances.
+ * @param request ListInstanceOSPoliciesCompliancesRequest message or plain object
+ * @returns Promise
+ */
+ public listInstanceOSPoliciesCompliances(request: google.cloud.osconfig.v1alpha.IListInstanceOSPoliciesCompliancesRequest): Promise;
+
+ /**
+ * Calls GetOSPolicyAssignmentReport.
+ * @param request GetOSPolicyAssignmentReportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and OSPolicyAssignmentReport
+ */
+ public getOSPolicyAssignmentReport(request: google.cloud.osconfig.v1alpha.IGetOSPolicyAssignmentReportRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.GetOSPolicyAssignmentReportCallback): void;
+
+ /**
+ * Calls GetOSPolicyAssignmentReport.
+ * @param request GetOSPolicyAssignmentReportRequest message or plain object
+ * @returns Promise
+ */
+ public getOSPolicyAssignmentReport(request: google.cloud.osconfig.v1alpha.IGetOSPolicyAssignmentReportRequest): Promise;
+
+ /**
+ * Calls ListOSPolicyAssignmentReports.
+ * @param request ListOSPolicyAssignmentReportsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOSPolicyAssignmentReportsResponse
+ */
+ public listOSPolicyAssignmentReports(request: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentReportsRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.ListOSPolicyAssignmentReportsCallback): void;
+
+ /**
+ * Calls ListOSPolicyAssignmentReports.
+ * @param request ListOSPolicyAssignmentReportsRequest message or plain object
+ * @returns Promise
+ */
+ public listOSPolicyAssignmentReports(request: google.cloud.osconfig.v1alpha.IListOSPolicyAssignmentReportsRequest): Promise;
+
+ /**
+ * Calls GetInventory.
+ * @param request GetInventoryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Inventory
+ */
+ public getInventory(request: google.cloud.osconfig.v1alpha.IGetInventoryRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.GetInventoryCallback): void;
+
+ /**
+ * Calls GetInventory.
+ * @param request GetInventoryRequest message or plain object
+ * @returns Promise
+ */
+ public getInventory(request: google.cloud.osconfig.v1alpha.IGetInventoryRequest): Promise;
+
+ /**
+ * Calls ListInventories.
+ * @param request ListInventoriesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListInventoriesResponse
+ */
+ public listInventories(request: google.cloud.osconfig.v1alpha.IListInventoriesRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.ListInventoriesCallback): void;
+
+ /**
+ * Calls ListInventories.
+ * @param request ListInventoriesRequest message or plain object
+ * @returns Promise
+ */
+ public listInventories(request: google.cloud.osconfig.v1alpha.IListInventoriesRequest): Promise;
+
+ /**
+ * Calls GetVulnerabilityReport.
+ * @param request GetVulnerabilityReportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and VulnerabilityReport
+ */
+ public getVulnerabilityReport(request: google.cloud.osconfig.v1alpha.IGetVulnerabilityReportRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.GetVulnerabilityReportCallback): void;
+
+ /**
+ * Calls GetVulnerabilityReport.
+ * @param request GetVulnerabilityReportRequest message or plain object
+ * @returns Promise
+ */
+ public getVulnerabilityReport(request: google.cloud.osconfig.v1alpha.IGetVulnerabilityReportRequest): Promise;
+
+ /**
+ * Calls ListVulnerabilityReports.
+ * @param request ListVulnerabilityReportsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListVulnerabilityReportsResponse
+ */
+ public listVulnerabilityReports(request: google.cloud.osconfig.v1alpha.IListVulnerabilityReportsRequest, callback: google.cloud.osconfig.v1alpha.OsConfigZonalService.ListVulnerabilityReportsCallback): void;
+
+ /**
+ * Calls ListVulnerabilityReports.
+ * @param request ListVulnerabilityReportsRequest message or plain object
+ * @returns Promise
+ */
+ public listVulnerabilityReports(request: google.cloud.osconfig.v1alpha.IListVulnerabilityReportsRequest): Promise;
+ }
+
+ namespace OsConfigZonalService {
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|createOSPolicyAssignment}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateOSPolicyAssignmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|updateOSPolicyAssignment}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateOSPolicyAssignmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|getOSPolicyAssignment}.
+ * @param error Error, if any
+ * @param [response] OSPolicyAssignment
+ */
+ type GetOSPolicyAssignmentCallback = (error: (Error|null), response?: google.cloud.osconfig.v1alpha.OSPolicyAssignment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|listOSPolicyAssignments}.
+ * @param error Error, if any
+ * @param [response] ListOSPolicyAssignmentsResponse
+ */
+ type ListOSPolicyAssignmentsCallback = (error: (Error|null), response?: google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|listOSPolicyAssignmentRevisions}.
+ * @param error Error, if any
+ * @param [response] ListOSPolicyAssignmentRevisionsResponse
+ */
+ type ListOSPolicyAssignmentRevisionsCallback = (error: (Error|null), response?: google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|deleteOSPolicyAssignment}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteOSPolicyAssignmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|getInstanceOSPoliciesCompliance}.
+ * @param error Error, if any
+ * @param [response] InstanceOSPoliciesCompliance
+ */
+ type GetInstanceOSPoliciesComplianceCallback = (error: (Error|null), response?: google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|listInstanceOSPoliciesCompliances}.
+ * @param error Error, if any
+ * @param [response] ListInstanceOSPoliciesCompliancesResponse
+ */
+ type ListInstanceOSPoliciesCompliancesCallback = (error: (Error|null), response?: google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|getOSPolicyAssignmentReport}.
+ * @param error Error, if any
+ * @param [response] OSPolicyAssignmentReport
+ */
+ type GetOSPolicyAssignmentReportCallback = (error: (Error|null), response?: google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|listOSPolicyAssignmentReports}.
+ * @param error Error, if any
+ * @param [response] ListOSPolicyAssignmentReportsResponse
+ */
+ type ListOSPolicyAssignmentReportsCallback = (error: (Error|null), response?: google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|getInventory}.
+ * @param error Error, if any
+ * @param [response] Inventory
+ */
+ type GetInventoryCallback = (error: (Error|null), response?: google.cloud.osconfig.v1alpha.Inventory) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|listInventories}.
+ * @param error Error, if any
+ * @param [response] ListInventoriesResponse
+ */
+ type ListInventoriesCallback = (error: (Error|null), response?: google.cloud.osconfig.v1alpha.ListInventoriesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|getVulnerabilityReport}.
+ * @param error Error, if any
+ * @param [response] VulnerabilityReport
+ */
+ type GetVulnerabilityReportCallback = (error: (Error|null), response?: google.cloud.osconfig.v1alpha.VulnerabilityReport) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.osconfig.v1alpha.OsConfigZonalService|listVulnerabilityReports}.
+ * @param error Error, if any
+ * @param [response] ListVulnerabilityReportsResponse
+ */
+ type ListVulnerabilityReportsCallback = (error: (Error|null), response?: google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse) => void;
+ }
+
+ /** Properties of a VulnerabilityReport. */
+ interface IVulnerabilityReport {
+
+ /** VulnerabilityReport name */
+ name?: (string|null);
+
+ /** VulnerabilityReport vulnerabilities */
+ vulnerabilities?: (google.cloud.osconfig.v1alpha.VulnerabilityReport.IVulnerability[]|null);
+
+ /** VulnerabilityReport updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a VulnerabilityReport. */
+ class VulnerabilityReport implements IVulnerabilityReport {
+
+ /**
+ * Constructs a new VulnerabilityReport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IVulnerabilityReport);
+
+ /** VulnerabilityReport name. */
+ public name: string;
+
+ /** VulnerabilityReport vulnerabilities. */
+ public vulnerabilities: google.cloud.osconfig.v1alpha.VulnerabilityReport.IVulnerability[];
+
+ /** VulnerabilityReport updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new VulnerabilityReport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VulnerabilityReport instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IVulnerabilityReport): google.cloud.osconfig.v1alpha.VulnerabilityReport;
+
+ /**
+ * Encodes the specified VulnerabilityReport message. Does not implicitly {@link google.cloud.osconfig.v1alpha.VulnerabilityReport.verify|verify} messages.
+ * @param message VulnerabilityReport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IVulnerabilityReport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VulnerabilityReport message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.VulnerabilityReport.verify|verify} messages.
+ * @param message VulnerabilityReport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IVulnerabilityReport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VulnerabilityReport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VulnerabilityReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.VulnerabilityReport;
+
+ /**
+ * Decodes a VulnerabilityReport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VulnerabilityReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.VulnerabilityReport;
+
+ /**
+ * Verifies a VulnerabilityReport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VulnerabilityReport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VulnerabilityReport
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.VulnerabilityReport;
+
+ /**
+ * Creates a plain object from a VulnerabilityReport message. Also converts values to other types if specified.
+ * @param message VulnerabilityReport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.VulnerabilityReport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VulnerabilityReport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VulnerabilityReport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VulnerabilityReport {
+
+ /** Properties of a Vulnerability. */
+ interface IVulnerability {
+
+ /** Vulnerability details */
+ details?: (google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.IDetails|null);
+
+ /** Vulnerability installedInventoryItemIds */
+ installedInventoryItemIds?: (string[]|null);
+
+ /** Vulnerability availableInventoryItemIds */
+ availableInventoryItemIds?: (string[]|null);
+
+ /** Vulnerability createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Vulnerability updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Vulnerability items */
+ items?: (google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.IItem[]|null);
+ }
+
+ /** Represents a Vulnerability. */
+ class Vulnerability implements IVulnerability {
+
+ /**
+ * Constructs a new Vulnerability.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.VulnerabilityReport.IVulnerability);
+
+ /** Vulnerability details. */
+ public details?: (google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.IDetails|null);
+
+ /** Vulnerability installedInventoryItemIds. */
+ public installedInventoryItemIds: string[];
+
+ /** Vulnerability availableInventoryItemIds. */
+ public availableInventoryItemIds: string[];
+
+ /** Vulnerability createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Vulnerability updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Vulnerability items. */
+ public items: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.IItem[];
+
+ /**
+ * Creates a new Vulnerability instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Vulnerability instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.VulnerabilityReport.IVulnerability): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability;
+
+ /**
+ * Encodes the specified Vulnerability message. Does not implicitly {@link google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.verify|verify} messages.
+ * @param message Vulnerability message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.VulnerabilityReport.IVulnerability, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Vulnerability message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.verify|verify} messages.
+ * @param message Vulnerability message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.VulnerabilityReport.IVulnerability, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Vulnerability message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Vulnerability
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability;
+
+ /**
+ * Decodes a Vulnerability message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Vulnerability
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability;
+
+ /**
+ * Verifies a Vulnerability message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Vulnerability message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Vulnerability
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability;
+
+ /**
+ * Creates a plain object from a Vulnerability message. Also converts values to other types if specified.
+ * @param message Vulnerability
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Vulnerability to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Vulnerability
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Vulnerability {
+
+ /** Properties of a Details. */
+ interface IDetails {
+
+ /** Details cve */
+ cve?: (string|null);
+
+ /** Details cvssV2Score */
+ cvssV2Score?: (number|null);
+
+ /** Details cvssV3 */
+ cvssV3?: (google.cloud.osconfig.v1alpha.ICVSSv3|null);
+
+ /** Details severity */
+ severity?: (string|null);
+
+ /** Details description */
+ description?: (string|null);
+
+ /** Details references */
+ references?: (google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.IReference[]|null);
+ }
+
+ /** Represents a Details. */
+ class Details implements IDetails {
+
+ /**
+ * Constructs a new Details.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.IDetails);
+
+ /** Details cve. */
+ public cve: string;
+
+ /** Details cvssV2Score. */
+ public cvssV2Score: number;
+
+ /** Details cvssV3. */
+ public cvssV3?: (google.cloud.osconfig.v1alpha.ICVSSv3|null);
+
+ /** Details severity. */
+ public severity: string;
+
+ /** Details description. */
+ public description: string;
+
+ /** Details references. */
+ public references: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.IReference[];
+
+ /**
+ * Creates a new Details instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Details instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.IDetails): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details;
+
+ /**
+ * Encodes the specified Details message. Does not implicitly {@link google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.verify|verify} messages.
+ * @param message Details message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.IDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Details message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.verify|verify} messages.
+ * @param message Details message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.IDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Details message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Details
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details;
+
+ /**
+ * Decodes a Details message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Details
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details;
+
+ /**
+ * Verifies a Details message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Details message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Details
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details;
+
+ /**
+ * Creates a plain object from a Details message. Also converts values to other types if specified.
+ * @param message Details
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Details to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Details
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Details {
+
+ /** Properties of a Reference. */
+ interface IReference {
+
+ /** Reference url */
+ url?: (string|null);
+
+ /** Reference source */
+ source?: (string|null);
+ }
+
+ /** Represents a Reference. */
+ class Reference implements IReference {
+
+ /**
+ * Constructs a new Reference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.IReference);
+
+ /** Reference url. */
+ public url: string;
+
+ /** Reference source. */
+ public source: string;
+
+ /**
+ * Creates a new Reference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Reference instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.IReference): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference;
+
+ /**
+ * Encodes the specified Reference message. Does not implicitly {@link google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference.verify|verify} messages.
+ * @param message Reference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.IReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Reference message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference.verify|verify} messages.
+ * @param message Reference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.IReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Reference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Reference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference;
+
+ /**
+ * Decodes a Reference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Reference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference;
+
+ /**
+ * Verifies a Reference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Reference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Reference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference;
+
+ /**
+ * Creates a plain object from a Reference message. Also converts values to other types if specified.
+ * @param message Reference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Reference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Reference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an Item. */
+ interface IItem {
+
+ /** Item installedInventoryItemId */
+ installedInventoryItemId?: (string|null);
+
+ /** Item availableInventoryItemId */
+ availableInventoryItemId?: (string|null);
+
+ /** Item fixedCpeUri */
+ fixedCpeUri?: (string|null);
+
+ /** Item upstreamFix */
+ upstreamFix?: (string|null);
+ }
+
+ /** Represents an Item. */
+ class Item implements IItem {
+
+ /**
+ * Constructs a new Item.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.IItem);
+
+ /** Item installedInventoryItemId. */
+ public installedInventoryItemId: string;
+
+ /** Item availableInventoryItemId. */
+ public availableInventoryItemId: string;
+
+ /** Item fixedCpeUri. */
+ public fixedCpeUri: string;
+
+ /** Item upstreamFix. */
+ public upstreamFix: string;
+
+ /**
+ * Creates a new Item instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Item instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.IItem): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Item;
+
+ /**
+ * Encodes the specified Item message. Does not implicitly {@link google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Item.verify|verify} messages.
+ * @param message Item message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.IItem, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Item message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Item.verify|verify} messages.
+ * @param message Item message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.IItem, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Item message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Item
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Item;
+
+ /**
+ * Decodes an Item message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Item
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Item;
+
+ /**
+ * Verifies an Item message.
+ * @param message Plain 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 Item message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Item
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Item;
+
+ /**
+ * Creates a plain object from an Item message. Also converts values to other types if specified.
+ * @param message Item
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Item, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Item to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Item
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of a GetVulnerabilityReportRequest. */
+ interface IGetVulnerabilityReportRequest {
+
+ /** GetVulnerabilityReportRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetVulnerabilityReportRequest. */
+ class GetVulnerabilityReportRequest implements IGetVulnerabilityReportRequest {
+
+ /**
+ * Constructs a new GetVulnerabilityReportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IGetVulnerabilityReportRequest);
+
+ /** GetVulnerabilityReportRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetVulnerabilityReportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetVulnerabilityReportRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IGetVulnerabilityReportRequest): google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest;
+
+ /**
+ * Encodes the specified GetVulnerabilityReportRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest.verify|verify} messages.
+ * @param message GetVulnerabilityReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IGetVulnerabilityReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetVulnerabilityReportRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest.verify|verify} messages.
+ * @param message GetVulnerabilityReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IGetVulnerabilityReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetVulnerabilityReportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetVulnerabilityReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest;
+
+ /**
+ * Decodes a GetVulnerabilityReportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetVulnerabilityReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest;
+
+ /**
+ * Verifies a GetVulnerabilityReportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetVulnerabilityReportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetVulnerabilityReportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest;
+
+ /**
+ * Creates a plain object from a GetVulnerabilityReportRequest message. Also converts values to other types if specified.
+ * @param message GetVulnerabilityReportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetVulnerabilityReportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetVulnerabilityReportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListVulnerabilityReportsRequest. */
+ interface IListVulnerabilityReportsRequest {
+
+ /** ListVulnerabilityReportsRequest parent */
+ parent?: (string|null);
+
+ /** ListVulnerabilityReportsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListVulnerabilityReportsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListVulnerabilityReportsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListVulnerabilityReportsRequest. */
+ class ListVulnerabilityReportsRequest implements IListVulnerabilityReportsRequest {
+
+ /**
+ * Constructs a new ListVulnerabilityReportsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IListVulnerabilityReportsRequest);
+
+ /** ListVulnerabilityReportsRequest parent. */
+ public parent: string;
+
+ /** ListVulnerabilityReportsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListVulnerabilityReportsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListVulnerabilityReportsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListVulnerabilityReportsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListVulnerabilityReportsRequest instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IListVulnerabilityReportsRequest): google.cloud.osconfig.v1alpha.ListVulnerabilityReportsRequest;
+
+ /**
+ * Encodes the specified ListVulnerabilityReportsRequest message. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListVulnerabilityReportsRequest.verify|verify} messages.
+ * @param message ListVulnerabilityReportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IListVulnerabilityReportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListVulnerabilityReportsRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListVulnerabilityReportsRequest.verify|verify} messages.
+ * @param message ListVulnerabilityReportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IListVulnerabilityReportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListVulnerabilityReportsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListVulnerabilityReportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.ListVulnerabilityReportsRequest;
+
+ /**
+ * Decodes a ListVulnerabilityReportsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListVulnerabilityReportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.ListVulnerabilityReportsRequest;
+
+ /**
+ * Verifies a ListVulnerabilityReportsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListVulnerabilityReportsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListVulnerabilityReportsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.ListVulnerabilityReportsRequest;
+
+ /**
+ * Creates a plain object from a ListVulnerabilityReportsRequest message. Also converts values to other types if specified.
+ * @param message ListVulnerabilityReportsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.ListVulnerabilityReportsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListVulnerabilityReportsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListVulnerabilityReportsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListVulnerabilityReportsResponse. */
+ interface IListVulnerabilityReportsResponse {
+
+ /** ListVulnerabilityReportsResponse vulnerabilityReports */
+ vulnerabilityReports?: (google.cloud.osconfig.v1alpha.IVulnerabilityReport[]|null);
+
+ /** ListVulnerabilityReportsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListVulnerabilityReportsResponse. */
+ class ListVulnerabilityReportsResponse implements IListVulnerabilityReportsResponse {
+
+ /**
+ * Constructs a new ListVulnerabilityReportsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.IListVulnerabilityReportsResponse);
+
+ /** ListVulnerabilityReportsResponse vulnerabilityReports. */
+ public vulnerabilityReports: google.cloud.osconfig.v1alpha.IVulnerabilityReport[];
+
+ /** ListVulnerabilityReportsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListVulnerabilityReportsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListVulnerabilityReportsResponse instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.IListVulnerabilityReportsResponse): google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse;
+
+ /**
+ * Encodes the specified ListVulnerabilityReportsResponse message. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse.verify|verify} messages.
+ * @param message ListVulnerabilityReportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.IListVulnerabilityReportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListVulnerabilityReportsResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse.verify|verify} messages.
+ * @param message ListVulnerabilityReportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.IListVulnerabilityReportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListVulnerabilityReportsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListVulnerabilityReportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse;
+
+ /**
+ * Decodes a ListVulnerabilityReportsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListVulnerabilityReportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse;
+
+ /**
+ * Verifies a ListVulnerabilityReportsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListVulnerabilityReportsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListVulnerabilityReportsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse;
+
+ /**
+ * Creates a plain object from a ListVulnerabilityReportsResponse message. Also converts values to other types if specified.
+ * @param message ListVulnerabilityReportsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListVulnerabilityReportsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListVulnerabilityReportsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CVSSv3. */
+ interface ICVSSv3 {
+
+ /** CVSSv3 baseScore */
+ baseScore?: (number|null);
+
+ /** CVSSv3 exploitabilityScore */
+ exploitabilityScore?: (number|null);
+
+ /** CVSSv3 impactScore */
+ impactScore?: (number|null);
+
+ /** CVSSv3 attackVector */
+ attackVector?: (google.cloud.osconfig.v1alpha.CVSSv3.AttackVector|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.AttackVector|null);
+
+ /** CVSSv3 attackComplexity */
+ attackComplexity?: (google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity|null);
+
+ /** CVSSv3 privilegesRequired */
+ privilegesRequired?: (google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired|null);
+
+ /** CVSSv3 userInteraction */
+ userInteraction?: (google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction|null);
+
+ /** CVSSv3 scope */
+ scope?: (google.cloud.osconfig.v1alpha.CVSSv3.Scope|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.Scope|null);
+
+ /** CVSSv3 confidentialityImpact */
+ confidentialityImpact?: (google.cloud.osconfig.v1alpha.CVSSv3.Impact|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.Impact|null);
+
+ /** CVSSv3 integrityImpact */
+ integrityImpact?: (google.cloud.osconfig.v1alpha.CVSSv3.Impact|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.Impact|null);
+
+ /** CVSSv3 availabilityImpact */
+ availabilityImpact?: (google.cloud.osconfig.v1alpha.CVSSv3.Impact|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.Impact|null);
+ }
+
+ /** Represents a CVSSv3. */
+ class CVSSv3 implements ICVSSv3 {
+
+ /**
+ * Constructs a new CVSSv3.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.osconfig.v1alpha.ICVSSv3);
+
+ /** CVSSv3 baseScore. */
+ public baseScore: number;
+
+ /** CVSSv3 exploitabilityScore. */
+ public exploitabilityScore: number;
+
+ /** CVSSv3 impactScore. */
+ public impactScore: number;
+
+ /** CVSSv3 attackVector. */
+ public attackVector: (google.cloud.osconfig.v1alpha.CVSSv3.AttackVector|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.AttackVector);
+
+ /** CVSSv3 attackComplexity. */
+ public attackComplexity: (google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity);
+
+ /** CVSSv3 privilegesRequired. */
+ public privilegesRequired: (google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired);
+
+ /** CVSSv3 userInteraction. */
+ public userInteraction: (google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction);
+
+ /** CVSSv3 scope. */
+ public scope: (google.cloud.osconfig.v1alpha.CVSSv3.Scope|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.Scope);
+
+ /** CVSSv3 confidentialityImpact. */
+ public confidentialityImpact: (google.cloud.osconfig.v1alpha.CVSSv3.Impact|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.Impact);
+
+ /** CVSSv3 integrityImpact. */
+ public integrityImpact: (google.cloud.osconfig.v1alpha.CVSSv3.Impact|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.Impact);
+
+ /** CVSSv3 availabilityImpact. */
+ public availabilityImpact: (google.cloud.osconfig.v1alpha.CVSSv3.Impact|keyof typeof google.cloud.osconfig.v1alpha.CVSSv3.Impact);
+
+ /**
+ * Creates a new CVSSv3 instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CVSSv3 instance
+ */
+ public static create(properties?: google.cloud.osconfig.v1alpha.ICVSSv3): google.cloud.osconfig.v1alpha.CVSSv3;
+
+ /**
+ * Encodes the specified CVSSv3 message. Does not implicitly {@link google.cloud.osconfig.v1alpha.CVSSv3.verify|verify} messages.
+ * @param message CVSSv3 message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.osconfig.v1alpha.ICVSSv3, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CVSSv3 message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1alpha.CVSSv3.verify|verify} messages.
+ * @param message CVSSv3 message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.osconfig.v1alpha.ICVSSv3, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CVSSv3 message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CVSSv3
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.osconfig.v1alpha.CVSSv3;
+
+ /**
+ * Decodes a CVSSv3 message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CVSSv3
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.osconfig.v1alpha.CVSSv3;
+
+ /**
+ * Verifies a CVSSv3 message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CVSSv3 message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CVSSv3
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.osconfig.v1alpha.CVSSv3;
+
+ /**
+ * Creates a plain object from a CVSSv3 message. Also converts values to other types if specified.
+ * @param message CVSSv3
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.osconfig.v1alpha.CVSSv3, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CVSSv3 to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CVSSv3
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CVSSv3 {
+
+ /** AttackVector enum. */
+ enum AttackVector {
+ ATTACK_VECTOR_UNSPECIFIED = 0,
+ ATTACK_VECTOR_NETWORK = 1,
+ ATTACK_VECTOR_ADJACENT = 2,
+ ATTACK_VECTOR_LOCAL = 3,
+ ATTACK_VECTOR_PHYSICAL = 4
+ }
+
+ /** AttackComplexity enum. */
+ enum AttackComplexity {
+ ATTACK_COMPLEXITY_UNSPECIFIED = 0,
+ ATTACK_COMPLEXITY_LOW = 1,
+ ATTACK_COMPLEXITY_HIGH = 2
+ }
+
+ /** PrivilegesRequired enum. */
+ enum PrivilegesRequired {
+ PRIVILEGES_REQUIRED_UNSPECIFIED = 0,
+ PRIVILEGES_REQUIRED_NONE = 1,
+ PRIVILEGES_REQUIRED_LOW = 2,
+ PRIVILEGES_REQUIRED_HIGH = 3
+ }
+
+ /** UserInteraction enum. */
+ enum UserInteraction {
+ USER_INTERACTION_UNSPECIFIED = 0,
+ USER_INTERACTION_NONE = 1,
+ USER_INTERACTION_REQUIRED = 2
+ }
+
+ /** Scope enum. */
+ enum Scope {
+ SCOPE_UNSPECIFIED = 0,
+ SCOPE_UNCHANGED = 1,
+ SCOPE_CHANGED = 2
+ }
+
+ /** Impact enum. */
+ enum Impact {
+ IMPACT_UNSPECIFIED = 0,
+ IMPACT_HIGH = 1,
+ IMPACT_LOW = 2,
+ IMPACT_NONE = 3
+ }
+ }
+ }
+ }
+ }
+
+ /** 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.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace type. */
+ namespace type {
+
+ /** 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;
+ }
+
+ /** DayOfWeek enum. */
+ enum DayOfWeek {
+ DAY_OF_WEEK_UNSPECIFIED = 0,
+ MONDAY = 1,
+ TUESDAY = 2,
+ WEDNESDAY = 3,
+ THURSDAY = 4,
+ FRIDAY = 5,
+ SATURDAY = 6,
+ SUNDAY = 7
+ }
+
+ /** Properties of a TimeOfDay. */
+ interface ITimeOfDay {
+
+ /** TimeOfDay hours */
+ hours?: (number|null);
+
+ /** TimeOfDay minutes */
+ minutes?: (number|null);
+
+ /** TimeOfDay seconds */
+ seconds?: (number|null);
+
+ /** TimeOfDay nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a TimeOfDay. */
+ class TimeOfDay implements ITimeOfDay {
+
+ /**
+ * Constructs a new TimeOfDay.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.ITimeOfDay);
+
+ /** TimeOfDay hours. */
+ public hours: number;
+
+ /** TimeOfDay minutes. */
+ public minutes: number;
+
+ /** TimeOfDay seconds. */
+ public seconds: number;
+
+ /** TimeOfDay nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new TimeOfDay instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimeOfDay instance
+ */
+ public static create(properties?: google.type.ITimeOfDay): google.type.TimeOfDay;
+
+ /**
+ * Encodes the specified TimeOfDay message. Does not implicitly {@link google.type.TimeOfDay.verify|verify} messages.
+ * @param message TimeOfDay message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.ITimeOfDay, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimeOfDay message, length delimited. Does not implicitly {@link google.type.TimeOfDay.verify|verify} messages.
+ * @param message TimeOfDay message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.ITimeOfDay, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimeOfDay message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimeOfDay
+ * @throws {Error} If the payload is not 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.TimeOfDay;
+
+ /**
+ * Decodes a TimeOfDay message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimeOfDay
+ * @throws {Error} If the payload 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.TimeOfDay;
+
+ /**
+ * Verifies a TimeOfDay message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TimeOfDay message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimeOfDay
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.TimeOfDay;
+
+ /**
+ * Creates a plain object from a TimeOfDay message. Also converts values to other types if specified.
+ * @param message TimeOfDay
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.TimeOfDay, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimeOfDay to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TimeOfDay
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace longrunning. */
+ namespace longrunning {
+
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
+
+ namespace Operations {
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
+
+ /**
+ * Verifies an Operation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
+
+ /** GetOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
+
+ /**
+ * Constructs a new GetOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IGetOperationRequest);
+
+ /** GetOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
+
+ /**
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
+
+ /**
+ * Verifies a GetOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
+
+ /**
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
+
+ /** ListOperationsRequest name */
+ name?: (string|null);
+
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
+
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
+
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
+
+ /** ListOperationsRequest name. */
+ public name: string;
+
+ /** ListOperationsRequest filter. */
+ public filter: string;
+
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Verifies a ListOperationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
+
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
+
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
+
+ /**
+ * Constructs a new ListOperationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsResponse);
+
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
+
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOperationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsResponse instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Verifies a ListOperationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
+
+ /** CancelOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
+
+ /**
+ * Constructs a new CancelOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
+
+ /** CancelOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Verifies a CancelOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
+
+ /** DeleteOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
+
+ /**
+ * Constructs a new DeleteOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
+
+ /** DeleteOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Verifies a DeleteOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
+
+ /** WaitOperationRequest name */
+ name?: (string|null);
+
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
+
+ /**
+ * Constructs a new WaitOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
+
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new WaitOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WaitOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Verifies a WaitOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WaitOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WaitOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
+ }
+
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
+
+ /**
+ * Constructs a new OperationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationInfo instance
+ */
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
+
+ /**
+ * Verifies an OperationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
+
+ /**
+ * Verifies a Status message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-osconfig/protos/protos.js b/packages/google-cloud-osconfig/protos/protos.js
new file mode 100644
index 00000000000..89b549dccc9
--- /dev/null
+++ b/packages/google-cloud-osconfig/protos/protos.js
@@ -0,0 +1,72001 @@
+// 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_os_config_protos || ($protobuf.roots._google_cloud_os_config_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.osconfig = (function() {
+
+ /**
+ * Namespace osconfig.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var osconfig = {};
+
+ osconfig.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.osconfig
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.Inventory = (function() {
+
+ /**
+ * Properties of an Inventory.
+ * @memberof google.cloud.osconfig.v1
+ * @interface IInventory
+ * @property {string|null} [name] Inventory name
+ * @property {google.cloud.osconfig.v1.Inventory.IOsInfo|null} [osInfo] Inventory osInfo
+ * @property {Object.|null} [items] Inventory items
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Inventory updateTime
+ */
+
+ /**
+ * Constructs a new Inventory.
+ * @memberof google.cloud.osconfig.v1
+ * @classdesc Represents an Inventory.
+ * @implements IInventory
+ * @constructor
+ * @param {google.cloud.osconfig.v1.IInventory=} [properties] Properties to set
+ */
+ function Inventory(properties) {
+ this.items = {};
+ 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]];
+ }
+
+ /**
+ * Inventory name.
+ * @member {string} name
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @instance
+ */
+ Inventory.prototype.name = "";
+
+ /**
+ * Inventory osInfo.
+ * @member {google.cloud.osconfig.v1.Inventory.IOsInfo|null|undefined} osInfo
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @instance
+ */
+ Inventory.prototype.osInfo = null;
+
+ /**
+ * Inventory items.
+ * @member {Object.} items
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @instance
+ */
+ Inventory.prototype.items = $util.emptyObject;
+
+ /**
+ * Inventory updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @instance
+ */
+ Inventory.prototype.updateTime = null;
+
+ /**
+ * Creates a new Inventory instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @static
+ * @param {google.cloud.osconfig.v1.IInventory=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.Inventory} Inventory instance
+ */
+ Inventory.create = function create(properties) {
+ return new Inventory(properties);
+ };
+
+ /**
+ * Encodes the specified Inventory message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @static
+ * @param {google.cloud.osconfig.v1.IInventory} message Inventory message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Inventory.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.osInfo != null && Object.hasOwnProperty.call(message, "osInfo"))
+ $root.google.cloud.osconfig.v1.Inventory.OsInfo.encode(message.osInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.items != null && Object.hasOwnProperty.call(message, "items"))
+ for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) {
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
+ $root.google.cloud.osconfig.v1.Inventory.Item.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.name);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Inventory message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @static
+ * @param {google.cloud.osconfig.v1.IInventory} message Inventory message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Inventory.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Inventory message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.Inventory} Inventory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Inventory.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.osconfig.v1.Inventory(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 3: {
+ message.name = reader.string();
+ break;
+ }
+ case 1: {
+ message.osInfo = $root.google.cloud.osconfig.v1.Inventory.OsInfo.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ if (message.items === $util.emptyObject)
+ message.items = {};
+ 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.osconfig.v1.Inventory.Item.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.items[key] = value;
+ break;
+ }
+ case 4: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Inventory message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.Inventory} Inventory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Inventory.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Inventory message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Inventory.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.osInfo != null && message.hasOwnProperty("osInfo")) {
+ var error = $root.google.cloud.osconfig.v1.Inventory.OsInfo.verify(message.osInfo);
+ if (error)
+ return "osInfo." + error;
+ }
+ if (message.items != null && message.hasOwnProperty("items")) {
+ if (!$util.isObject(message.items))
+ return "items: object expected";
+ var key = Object.keys(message.items);
+ for (var i = 0; i < key.length; ++i) {
+ var error = $root.google.cloud.osconfig.v1.Inventory.Item.verify(message.items[key[i]]);
+ if (error)
+ return "items." + error;
+ }
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Inventory message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.Inventory} Inventory
+ */
+ Inventory.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.Inventory)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.Inventory();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.osInfo != null) {
+ if (typeof object.osInfo !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.osInfo: object expected");
+ message.osInfo = $root.google.cloud.osconfig.v1.Inventory.OsInfo.fromObject(object.osInfo);
+ }
+ if (object.items) {
+ if (typeof object.items !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.items: object expected");
+ message.items = {};
+ for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) {
+ if (typeof object.items[keys[i]] !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.items: object expected");
+ message.items[keys[i]] = $root.google.cloud.osconfig.v1.Inventory.Item.fromObject(object.items[keys[i]]);
+ }
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Inventory message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory} message Inventory
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Inventory.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.items = {};
+ if (options.defaults) {
+ object.osInfo = null;
+ object.name = "";
+ object.updateTime = null;
+ }
+ if (message.osInfo != null && message.hasOwnProperty("osInfo"))
+ object.osInfo = $root.google.cloud.osconfig.v1.Inventory.OsInfo.toObject(message.osInfo, options);
+ var keys2;
+ if (message.items && (keys2 = Object.keys(message.items)).length) {
+ object.items = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.items[keys2[j]] = $root.google.cloud.osconfig.v1.Inventory.Item.toObject(message.items[keys2[j]], options);
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ return object;
+ };
+
+ /**
+ * Converts this Inventory to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Inventory.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Inventory
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Inventory.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.Inventory";
+ };
+
+ Inventory.OsInfo = (function() {
+
+ /**
+ * Properties of an OsInfo.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @interface IOsInfo
+ * @property {string|null} [hostname] OsInfo hostname
+ * @property {string|null} [longName] OsInfo longName
+ * @property {string|null} [shortName] OsInfo shortName
+ * @property {string|null} [version] OsInfo version
+ * @property {string|null} [architecture] OsInfo architecture
+ * @property {string|null} [kernelVersion] OsInfo kernelVersion
+ * @property {string|null} [kernelRelease] OsInfo kernelRelease
+ * @property {string|null} [osconfigAgentVersion] OsInfo osconfigAgentVersion
+ */
+
+ /**
+ * Constructs a new OsInfo.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @classdesc Represents an OsInfo.
+ * @implements IOsInfo
+ * @constructor
+ * @param {google.cloud.osconfig.v1.Inventory.IOsInfo=} [properties] Properties to set
+ */
+ function OsInfo(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]];
+ }
+
+ /**
+ * OsInfo hostname.
+ * @member {string} hostname
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @instance
+ */
+ OsInfo.prototype.hostname = "";
+
+ /**
+ * OsInfo longName.
+ * @member {string} longName
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @instance
+ */
+ OsInfo.prototype.longName = "";
+
+ /**
+ * OsInfo shortName.
+ * @member {string} shortName
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @instance
+ */
+ OsInfo.prototype.shortName = "";
+
+ /**
+ * OsInfo version.
+ * @member {string} version
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @instance
+ */
+ OsInfo.prototype.version = "";
+
+ /**
+ * OsInfo architecture.
+ * @member {string} architecture
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @instance
+ */
+ OsInfo.prototype.architecture = "";
+
+ /**
+ * OsInfo kernelVersion.
+ * @member {string} kernelVersion
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @instance
+ */
+ OsInfo.prototype.kernelVersion = "";
+
+ /**
+ * OsInfo kernelRelease.
+ * @member {string} kernelRelease
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @instance
+ */
+ OsInfo.prototype.kernelRelease = "";
+
+ /**
+ * OsInfo osconfigAgentVersion.
+ * @member {string} osconfigAgentVersion
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @instance
+ */
+ OsInfo.prototype.osconfigAgentVersion = "";
+
+ /**
+ * Creates a new OsInfo instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IOsInfo=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.Inventory.OsInfo} OsInfo instance
+ */
+ OsInfo.create = function create(properties) {
+ return new OsInfo(properties);
+ };
+
+ /**
+ * Encodes the specified OsInfo message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.OsInfo.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IOsInfo} message OsInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OsInfo.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.longName != null && Object.hasOwnProperty.call(message, "longName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.longName);
+ if (message.shortName != null && Object.hasOwnProperty.call(message, "shortName"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.shortName);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.version);
+ if (message.architecture != null && Object.hasOwnProperty.call(message, "architecture"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.architecture);
+ if (message.kernelVersion != null && Object.hasOwnProperty.call(message, "kernelVersion"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.kernelVersion);
+ if (message.kernelRelease != null && Object.hasOwnProperty.call(message, "kernelRelease"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.kernelRelease);
+ if (message.osconfigAgentVersion != null && Object.hasOwnProperty.call(message, "osconfigAgentVersion"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.osconfigAgentVersion);
+ if (message.hostname != null && Object.hasOwnProperty.call(message, "hostname"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.hostname);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OsInfo message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.OsInfo.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IOsInfo} message OsInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OsInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OsInfo message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.Inventory.OsInfo} OsInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OsInfo.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.osconfig.v1.Inventory.OsInfo();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 9: {
+ message.hostname = reader.string();
+ break;
+ }
+ case 2: {
+ message.longName = reader.string();
+ break;
+ }
+ case 3: {
+ message.shortName = reader.string();
+ break;
+ }
+ case 4: {
+ message.version = reader.string();
+ break;
+ }
+ case 5: {
+ message.architecture = reader.string();
+ break;
+ }
+ case 6: {
+ message.kernelVersion = reader.string();
+ break;
+ }
+ case 7: {
+ message.kernelRelease = reader.string();
+ break;
+ }
+ case 8: {
+ message.osconfigAgentVersion = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OsInfo message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.Inventory.OsInfo} OsInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OsInfo.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OsInfo message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OsInfo.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.hostname != null && message.hasOwnProperty("hostname"))
+ if (!$util.isString(message.hostname))
+ return "hostname: string expected";
+ if (message.longName != null && message.hasOwnProperty("longName"))
+ if (!$util.isString(message.longName))
+ return "longName: string expected";
+ if (message.shortName != null && message.hasOwnProperty("shortName"))
+ if (!$util.isString(message.shortName))
+ return "shortName: string expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.architecture != null && message.hasOwnProperty("architecture"))
+ if (!$util.isString(message.architecture))
+ return "architecture: string expected";
+ if (message.kernelVersion != null && message.hasOwnProperty("kernelVersion"))
+ if (!$util.isString(message.kernelVersion))
+ return "kernelVersion: string expected";
+ if (message.kernelRelease != null && message.hasOwnProperty("kernelRelease"))
+ if (!$util.isString(message.kernelRelease))
+ return "kernelRelease: string expected";
+ if (message.osconfigAgentVersion != null && message.hasOwnProperty("osconfigAgentVersion"))
+ if (!$util.isString(message.osconfigAgentVersion))
+ return "osconfigAgentVersion: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an OsInfo message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.Inventory.OsInfo} OsInfo
+ */
+ OsInfo.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.Inventory.OsInfo)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.Inventory.OsInfo();
+ if (object.hostname != null)
+ message.hostname = String(object.hostname);
+ if (object.longName != null)
+ message.longName = String(object.longName);
+ if (object.shortName != null)
+ message.shortName = String(object.shortName);
+ if (object.version != null)
+ message.version = String(object.version);
+ if (object.architecture != null)
+ message.architecture = String(object.architecture);
+ if (object.kernelVersion != null)
+ message.kernelVersion = String(object.kernelVersion);
+ if (object.kernelRelease != null)
+ message.kernelRelease = String(object.kernelRelease);
+ if (object.osconfigAgentVersion != null)
+ message.osconfigAgentVersion = String(object.osconfigAgentVersion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OsInfo message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.OsInfo} message OsInfo
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OsInfo.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.longName = "";
+ object.shortName = "";
+ object.version = "";
+ object.architecture = "";
+ object.kernelVersion = "";
+ object.kernelRelease = "";
+ object.osconfigAgentVersion = "";
+ object.hostname = "";
+ }
+ if (message.longName != null && message.hasOwnProperty("longName"))
+ object.longName = message.longName;
+ if (message.shortName != null && message.hasOwnProperty("shortName"))
+ object.shortName = message.shortName;
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.architecture != null && message.hasOwnProperty("architecture"))
+ object.architecture = message.architecture;
+ if (message.kernelVersion != null && message.hasOwnProperty("kernelVersion"))
+ object.kernelVersion = message.kernelVersion;
+ if (message.kernelRelease != null && message.hasOwnProperty("kernelRelease"))
+ object.kernelRelease = message.kernelRelease;
+ if (message.osconfigAgentVersion != null && message.hasOwnProperty("osconfigAgentVersion"))
+ object.osconfigAgentVersion = message.osconfigAgentVersion;
+ if (message.hostname != null && message.hasOwnProperty("hostname"))
+ object.hostname = message.hostname;
+ return object;
+ };
+
+ /**
+ * Converts this OsInfo to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OsInfo.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OsInfo
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.Inventory.OsInfo
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OsInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.Inventory.OsInfo";
+ };
+
+ return OsInfo;
+ })();
+
+ Inventory.Item = (function() {
+
+ /**
+ * Properties of an Item.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @interface IItem
+ * @property {string|null} [id] Item id
+ * @property {google.cloud.osconfig.v1.Inventory.Item.OriginType|null} [originType] Item originType
+ * @property {google.protobuf.ITimestamp|null} [createTime] Item createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Item updateTime
+ * @property {google.cloud.osconfig.v1.Inventory.Item.Type|null} [type] Item type
+ * @property {google.cloud.osconfig.v1.Inventory.ISoftwarePackage|null} [installedPackage] Item installedPackage
+ * @property {google.cloud.osconfig.v1.Inventory.ISoftwarePackage|null} [availablePackage] Item availablePackage
+ */
+
+ /**
+ * Constructs a new Item.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @classdesc Represents an Item.
+ * @implements IItem
+ * @constructor
+ * @param {google.cloud.osconfig.v1.Inventory.IItem=} [properties] Properties to set
+ */
+ function Item(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]];
+ }
+
+ /**
+ * Item id.
+ * @member {string} id
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @instance
+ */
+ Item.prototype.id = "";
+
+ /**
+ * Item originType.
+ * @member {google.cloud.osconfig.v1.Inventory.Item.OriginType} originType
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @instance
+ */
+ Item.prototype.originType = 0;
+
+ /**
+ * Item createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @instance
+ */
+ Item.prototype.createTime = null;
+
+ /**
+ * Item updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @instance
+ */
+ Item.prototype.updateTime = null;
+
+ /**
+ * Item type.
+ * @member {google.cloud.osconfig.v1.Inventory.Item.Type} type
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @instance
+ */
+ Item.prototype.type = 0;
+
+ /**
+ * Item installedPackage.
+ * @member {google.cloud.osconfig.v1.Inventory.ISoftwarePackage|null|undefined} installedPackage
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @instance
+ */
+ Item.prototype.installedPackage = null;
+
+ /**
+ * Item availablePackage.
+ * @member {google.cloud.osconfig.v1.Inventory.ISoftwarePackage|null|undefined} availablePackage
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @instance
+ */
+ Item.prototype.availablePackage = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Item details.
+ * @member {"installedPackage"|"availablePackage"|undefined} details
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @instance
+ */
+ Object.defineProperty(Item.prototype, "details", {
+ get: $util.oneOfGetter($oneOfFields = ["installedPackage", "availablePackage"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Item instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IItem=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.Inventory.Item} Item instance
+ */
+ Item.create = function create(properties) {
+ return new Item(properties);
+ };
+
+ /**
+ * Encodes the specified Item message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.Item.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IItem} message Item message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Item.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.originType != null && Object.hasOwnProperty.call(message, "originType"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.originType);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type);
+ if (message.installedPackage != null && Object.hasOwnProperty.call(message, "installedPackage"))
+ $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage.encode(message.installedPackage, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.availablePackage != null && Object.hasOwnProperty.call(message, "availablePackage"))
+ $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage.encode(message.availablePackage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Item message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.Item.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IItem} message Item message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Item.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Item message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.Inventory.Item} Item
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Item.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.osconfig.v1.Inventory.Item();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.id = reader.string();
+ break;
+ }
+ case 2: {
+ message.originType = reader.int32();
+ break;
+ }
+ case 8: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.type = reader.int32();
+ break;
+ }
+ case 6: {
+ message.installedPackage = $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.availablePackage = $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Item message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.Inventory.Item} Item
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Item.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Item message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Item.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.id != null && message.hasOwnProperty("id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ if (message.originType != null && message.hasOwnProperty("originType"))
+ switch (message.originType) {
+ default:
+ return "originType: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ switch (message.type) {
+ default:
+ return "type: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.installedPackage != null && message.hasOwnProperty("installedPackage")) {
+ properties.details = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage.verify(message.installedPackage);
+ if (error)
+ return "installedPackage." + error;
+ }
+ }
+ if (message.availablePackage != null && message.hasOwnProperty("availablePackage")) {
+ if (properties.details === 1)
+ return "details: multiple values";
+ properties.details = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage.verify(message.availablePackage);
+ if (error)
+ return "availablePackage." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Item message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.Inventory.Item} Item
+ */
+ Item.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.Inventory.Item)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.Inventory.Item();
+ if (object.id != null)
+ message.id = String(object.id);
+ switch (object.originType) {
+ default:
+ if (typeof object.originType === "number") {
+ message.originType = object.originType;
+ break;
+ }
+ break;
+ case "ORIGIN_TYPE_UNSPECIFIED":
+ case 0:
+ message.originType = 0;
+ break;
+ case "INVENTORY_REPORT":
+ case 1:
+ message.originType = 1;
+ break;
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.Item.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.Item.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ switch (object.type) {
+ default:
+ if (typeof object.type === "number") {
+ message.type = object.type;
+ break;
+ }
+ break;
+ case "TYPE_UNSPECIFIED":
+ case 0:
+ message.type = 0;
+ break;
+ case "INSTALLED_PACKAGE":
+ case 1:
+ message.type = 1;
+ break;
+ case "AVAILABLE_PACKAGE":
+ case 2:
+ message.type = 2;
+ break;
+ }
+ if (object.installedPackage != null) {
+ if (typeof object.installedPackage !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.Item.installedPackage: object expected");
+ message.installedPackage = $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage.fromObject(object.installedPackage);
+ }
+ if (object.availablePackage != null) {
+ if (typeof object.availablePackage !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.Item.availablePackage: object expected");
+ message.availablePackage = $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage.fromObject(object.availablePackage);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Item message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.Item} message Item
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Item.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.id = "";
+ object.originType = options.enums === String ? "ORIGIN_TYPE_UNSPECIFIED" : 0;
+ object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
+ object.createTime = null;
+ object.updateTime = null;
+ }
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.originType != null && message.hasOwnProperty("originType"))
+ object.originType = options.enums === String ? $root.google.cloud.osconfig.v1.Inventory.Item.OriginType[message.originType] === undefined ? message.originType : $root.google.cloud.osconfig.v1.Inventory.Item.OriginType[message.originType] : message.originType;
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = options.enums === String ? $root.google.cloud.osconfig.v1.Inventory.Item.Type[message.type] === undefined ? message.type : $root.google.cloud.osconfig.v1.Inventory.Item.Type[message.type] : message.type;
+ if (message.installedPackage != null && message.hasOwnProperty("installedPackage")) {
+ object.installedPackage = $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage.toObject(message.installedPackage, options);
+ if (options.oneofs)
+ object.details = "installedPackage";
+ }
+ if (message.availablePackage != null && message.hasOwnProperty("availablePackage")) {
+ object.availablePackage = $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage.toObject(message.availablePackage, options);
+ if (options.oneofs)
+ object.details = "availablePackage";
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ return object;
+ };
+
+ /**
+ * Converts this Item to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Item.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Item
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.Inventory.Item
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Item.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.Inventory.Item";
+ };
+
+ /**
+ * OriginType enum.
+ * @name google.cloud.osconfig.v1.Inventory.Item.OriginType
+ * @enum {number}
+ * @property {number} ORIGIN_TYPE_UNSPECIFIED=0 ORIGIN_TYPE_UNSPECIFIED value
+ * @property {number} INVENTORY_REPORT=1 INVENTORY_REPORT value
+ */
+ Item.OriginType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ORIGIN_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "INVENTORY_REPORT"] = 1;
+ return values;
+ })();
+
+ /**
+ * Type enum.
+ * @name google.cloud.osconfig.v1.Inventory.Item.Type
+ * @enum {number}
+ * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value
+ * @property {number} INSTALLED_PACKAGE=1 INSTALLED_PACKAGE value
+ * @property {number} AVAILABLE_PACKAGE=2 AVAILABLE_PACKAGE value
+ */
+ Item.Type = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "INSTALLED_PACKAGE"] = 1;
+ values[valuesById[2] = "AVAILABLE_PACKAGE"] = 2;
+ return values;
+ })();
+
+ return Item;
+ })();
+
+ Inventory.SoftwarePackage = (function() {
+
+ /**
+ * Properties of a SoftwarePackage.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @interface ISoftwarePackage
+ * @property {google.cloud.osconfig.v1.Inventory.IVersionedPackage|null} [yumPackage] SoftwarePackage yumPackage
+ * @property {google.cloud.osconfig.v1.Inventory.IVersionedPackage|null} [aptPackage] SoftwarePackage aptPackage
+ * @property {google.cloud.osconfig.v1.Inventory.IVersionedPackage|null} [zypperPackage] SoftwarePackage zypperPackage
+ * @property {google.cloud.osconfig.v1.Inventory.IVersionedPackage|null} [googetPackage] SoftwarePackage googetPackage
+ * @property {google.cloud.osconfig.v1.Inventory.IZypperPatch|null} [zypperPatch] SoftwarePackage zypperPatch
+ * @property {google.cloud.osconfig.v1.Inventory.IWindowsUpdatePackage|null} [wuaPackage] SoftwarePackage wuaPackage
+ * @property {google.cloud.osconfig.v1.Inventory.IWindowsQuickFixEngineeringPackage|null} [qfePackage] SoftwarePackage qfePackage
+ * @property {google.cloud.osconfig.v1.Inventory.IVersionedPackage|null} [cosPackage] SoftwarePackage cosPackage
+ * @property {google.cloud.osconfig.v1.Inventory.IWindowsApplication|null} [windowsApplication] SoftwarePackage windowsApplication
+ */
+
+ /**
+ * Constructs a new SoftwarePackage.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @classdesc Represents a SoftwarePackage.
+ * @implements ISoftwarePackage
+ * @constructor
+ * @param {google.cloud.osconfig.v1.Inventory.ISoftwarePackage=} [properties] Properties to set
+ */
+ function SoftwarePackage(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]];
+ }
+
+ /**
+ * SoftwarePackage yumPackage.
+ * @member {google.cloud.osconfig.v1.Inventory.IVersionedPackage|null|undefined} yumPackage
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @instance
+ */
+ SoftwarePackage.prototype.yumPackage = null;
+
+ /**
+ * SoftwarePackage aptPackage.
+ * @member {google.cloud.osconfig.v1.Inventory.IVersionedPackage|null|undefined} aptPackage
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @instance
+ */
+ SoftwarePackage.prototype.aptPackage = null;
+
+ /**
+ * SoftwarePackage zypperPackage.
+ * @member {google.cloud.osconfig.v1.Inventory.IVersionedPackage|null|undefined} zypperPackage
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @instance
+ */
+ SoftwarePackage.prototype.zypperPackage = null;
+
+ /**
+ * SoftwarePackage googetPackage.
+ * @member {google.cloud.osconfig.v1.Inventory.IVersionedPackage|null|undefined} googetPackage
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @instance
+ */
+ SoftwarePackage.prototype.googetPackage = null;
+
+ /**
+ * SoftwarePackage zypperPatch.
+ * @member {google.cloud.osconfig.v1.Inventory.IZypperPatch|null|undefined} zypperPatch
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @instance
+ */
+ SoftwarePackage.prototype.zypperPatch = null;
+
+ /**
+ * SoftwarePackage wuaPackage.
+ * @member {google.cloud.osconfig.v1.Inventory.IWindowsUpdatePackage|null|undefined} wuaPackage
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @instance
+ */
+ SoftwarePackage.prototype.wuaPackage = null;
+
+ /**
+ * SoftwarePackage qfePackage.
+ * @member {google.cloud.osconfig.v1.Inventory.IWindowsQuickFixEngineeringPackage|null|undefined} qfePackage
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @instance
+ */
+ SoftwarePackage.prototype.qfePackage = null;
+
+ /**
+ * SoftwarePackage cosPackage.
+ * @member {google.cloud.osconfig.v1.Inventory.IVersionedPackage|null|undefined} cosPackage
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @instance
+ */
+ SoftwarePackage.prototype.cosPackage = null;
+
+ /**
+ * SoftwarePackage windowsApplication.
+ * @member {google.cloud.osconfig.v1.Inventory.IWindowsApplication|null|undefined} windowsApplication
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @instance
+ */
+ SoftwarePackage.prototype.windowsApplication = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * SoftwarePackage details.
+ * @member {"yumPackage"|"aptPackage"|"zypperPackage"|"googetPackage"|"zypperPatch"|"wuaPackage"|"qfePackage"|"cosPackage"|"windowsApplication"|undefined} details
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @instance
+ */
+ Object.defineProperty(SoftwarePackage.prototype, "details", {
+ get: $util.oneOfGetter($oneOfFields = ["yumPackage", "aptPackage", "zypperPackage", "googetPackage", "zypperPatch", "wuaPackage", "qfePackage", "cosPackage", "windowsApplication"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new SoftwarePackage instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.ISoftwarePackage=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.Inventory.SoftwarePackage} SoftwarePackage instance
+ */
+ SoftwarePackage.create = function create(properties) {
+ return new SoftwarePackage(properties);
+ };
+
+ /**
+ * Encodes the specified SoftwarePackage message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.SoftwarePackage.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.ISoftwarePackage} message SoftwarePackage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SoftwarePackage.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.yumPackage != null && Object.hasOwnProperty.call(message, "yumPackage"))
+ $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.encode(message.yumPackage, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.aptPackage != null && Object.hasOwnProperty.call(message, "aptPackage"))
+ $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.encode(message.aptPackage, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.zypperPackage != null && Object.hasOwnProperty.call(message, "zypperPackage"))
+ $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.encode(message.zypperPackage, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.googetPackage != null && Object.hasOwnProperty.call(message, "googetPackage"))
+ $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.encode(message.googetPackage, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.zypperPatch != null && Object.hasOwnProperty.call(message, "zypperPatch"))
+ $root.google.cloud.osconfig.v1.Inventory.ZypperPatch.encode(message.zypperPatch, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.wuaPackage != null && Object.hasOwnProperty.call(message, "wuaPackage"))
+ $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.encode(message.wuaPackage, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.qfePackage != null && Object.hasOwnProperty.call(message, "qfePackage"))
+ $root.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.encode(message.qfePackage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.cosPackage != null && Object.hasOwnProperty.call(message, "cosPackage"))
+ $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.encode(message.cosPackage, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.windowsApplication != null && Object.hasOwnProperty.call(message, "windowsApplication"))
+ $root.google.cloud.osconfig.v1.Inventory.WindowsApplication.encode(message.windowsApplication, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SoftwarePackage message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.SoftwarePackage.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.ISoftwarePackage} message SoftwarePackage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SoftwarePackage.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SoftwarePackage message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.Inventory.SoftwarePackage} SoftwarePackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SoftwarePackage.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.osconfig.v1.Inventory.SoftwarePackage();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.yumPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.aptPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.zypperPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.googetPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.zypperPatch = $root.google.cloud.osconfig.v1.Inventory.ZypperPatch.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.wuaPackage = $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.qfePackage = $root.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.cosPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.windowsApplication = $root.google.cloud.osconfig.v1.Inventory.WindowsApplication.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SoftwarePackage message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.Inventory.SoftwarePackage} SoftwarePackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SoftwarePackage.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SoftwarePackage message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SoftwarePackage.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.yumPackage != null && message.hasOwnProperty("yumPackage")) {
+ properties.details = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.verify(message.yumPackage);
+ if (error)
+ return "yumPackage." + error;
+ }
+ }
+ if (message.aptPackage != null && message.hasOwnProperty("aptPackage")) {
+ if (properties.details === 1)
+ return "details: multiple values";
+ properties.details = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.verify(message.aptPackage);
+ if (error)
+ return "aptPackage." + error;
+ }
+ }
+ if (message.zypperPackage != null && message.hasOwnProperty("zypperPackage")) {
+ if (properties.details === 1)
+ return "details: multiple values";
+ properties.details = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.verify(message.zypperPackage);
+ if (error)
+ return "zypperPackage." + error;
+ }
+ }
+ if (message.googetPackage != null && message.hasOwnProperty("googetPackage")) {
+ if (properties.details === 1)
+ return "details: multiple values";
+ properties.details = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.verify(message.googetPackage);
+ if (error)
+ return "googetPackage." + error;
+ }
+ }
+ if (message.zypperPatch != null && message.hasOwnProperty("zypperPatch")) {
+ if (properties.details === 1)
+ return "details: multiple values";
+ properties.details = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.Inventory.ZypperPatch.verify(message.zypperPatch);
+ if (error)
+ return "zypperPatch." + error;
+ }
+ }
+ if (message.wuaPackage != null && message.hasOwnProperty("wuaPackage")) {
+ if (properties.details === 1)
+ return "details: multiple values";
+ properties.details = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.verify(message.wuaPackage);
+ if (error)
+ return "wuaPackage." + error;
+ }
+ }
+ if (message.qfePackage != null && message.hasOwnProperty("qfePackage")) {
+ if (properties.details === 1)
+ return "details: multiple values";
+ properties.details = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.verify(message.qfePackage);
+ if (error)
+ return "qfePackage." + error;
+ }
+ }
+ if (message.cosPackage != null && message.hasOwnProperty("cosPackage")) {
+ if (properties.details === 1)
+ return "details: multiple values";
+ properties.details = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.verify(message.cosPackage);
+ if (error)
+ return "cosPackage." + error;
+ }
+ }
+ if (message.windowsApplication != null && message.hasOwnProperty("windowsApplication")) {
+ if (properties.details === 1)
+ return "details: multiple values";
+ properties.details = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.Inventory.WindowsApplication.verify(message.windowsApplication);
+ if (error)
+ return "windowsApplication." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a SoftwarePackage message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.Inventory.SoftwarePackage} SoftwarePackage
+ */
+ SoftwarePackage.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.Inventory.SoftwarePackage();
+ if (object.yumPackage != null) {
+ if (typeof object.yumPackage !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.SoftwarePackage.yumPackage: object expected");
+ message.yumPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.fromObject(object.yumPackage);
+ }
+ if (object.aptPackage != null) {
+ if (typeof object.aptPackage !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.SoftwarePackage.aptPackage: object expected");
+ message.aptPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.fromObject(object.aptPackage);
+ }
+ if (object.zypperPackage != null) {
+ if (typeof object.zypperPackage !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.SoftwarePackage.zypperPackage: object expected");
+ message.zypperPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.fromObject(object.zypperPackage);
+ }
+ if (object.googetPackage != null) {
+ if (typeof object.googetPackage !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.SoftwarePackage.googetPackage: object expected");
+ message.googetPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.fromObject(object.googetPackage);
+ }
+ if (object.zypperPatch != null) {
+ if (typeof object.zypperPatch !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.SoftwarePackage.zypperPatch: object expected");
+ message.zypperPatch = $root.google.cloud.osconfig.v1.Inventory.ZypperPatch.fromObject(object.zypperPatch);
+ }
+ if (object.wuaPackage != null) {
+ if (typeof object.wuaPackage !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.SoftwarePackage.wuaPackage: object expected");
+ message.wuaPackage = $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.fromObject(object.wuaPackage);
+ }
+ if (object.qfePackage != null) {
+ if (typeof object.qfePackage !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.SoftwarePackage.qfePackage: object expected");
+ message.qfePackage = $root.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.fromObject(object.qfePackage);
+ }
+ if (object.cosPackage != null) {
+ if (typeof object.cosPackage !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.SoftwarePackage.cosPackage: object expected");
+ message.cosPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.fromObject(object.cosPackage);
+ }
+ if (object.windowsApplication != null) {
+ if (typeof object.windowsApplication !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.SoftwarePackage.windowsApplication: object expected");
+ message.windowsApplication = $root.google.cloud.osconfig.v1.Inventory.WindowsApplication.fromObject(object.windowsApplication);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SoftwarePackage message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.SoftwarePackage} message SoftwarePackage
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SoftwarePackage.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.yumPackage != null && message.hasOwnProperty("yumPackage")) {
+ object.yumPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.toObject(message.yumPackage, options);
+ if (options.oneofs)
+ object.details = "yumPackage";
+ }
+ if (message.aptPackage != null && message.hasOwnProperty("aptPackage")) {
+ object.aptPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.toObject(message.aptPackage, options);
+ if (options.oneofs)
+ object.details = "aptPackage";
+ }
+ if (message.zypperPackage != null && message.hasOwnProperty("zypperPackage")) {
+ object.zypperPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.toObject(message.zypperPackage, options);
+ if (options.oneofs)
+ object.details = "zypperPackage";
+ }
+ if (message.googetPackage != null && message.hasOwnProperty("googetPackage")) {
+ object.googetPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.toObject(message.googetPackage, options);
+ if (options.oneofs)
+ object.details = "googetPackage";
+ }
+ if (message.zypperPatch != null && message.hasOwnProperty("zypperPatch")) {
+ object.zypperPatch = $root.google.cloud.osconfig.v1.Inventory.ZypperPatch.toObject(message.zypperPatch, options);
+ if (options.oneofs)
+ object.details = "zypperPatch";
+ }
+ if (message.wuaPackage != null && message.hasOwnProperty("wuaPackage")) {
+ object.wuaPackage = $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.toObject(message.wuaPackage, options);
+ if (options.oneofs)
+ object.details = "wuaPackage";
+ }
+ if (message.qfePackage != null && message.hasOwnProperty("qfePackage")) {
+ object.qfePackage = $root.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.toObject(message.qfePackage, options);
+ if (options.oneofs)
+ object.details = "qfePackage";
+ }
+ if (message.cosPackage != null && message.hasOwnProperty("cosPackage")) {
+ object.cosPackage = $root.google.cloud.osconfig.v1.Inventory.VersionedPackage.toObject(message.cosPackage, options);
+ if (options.oneofs)
+ object.details = "cosPackage";
+ }
+ if (message.windowsApplication != null && message.hasOwnProperty("windowsApplication")) {
+ object.windowsApplication = $root.google.cloud.osconfig.v1.Inventory.WindowsApplication.toObject(message.windowsApplication, options);
+ if (options.oneofs)
+ object.details = "windowsApplication";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this SoftwarePackage to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SoftwarePackage.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SoftwarePackage
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.Inventory.SoftwarePackage
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SoftwarePackage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.Inventory.SoftwarePackage";
+ };
+
+ return SoftwarePackage;
+ })();
+
+ Inventory.VersionedPackage = (function() {
+
+ /**
+ * Properties of a VersionedPackage.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @interface IVersionedPackage
+ * @property {string|null} [packageName] VersionedPackage packageName
+ * @property {string|null} [architecture] VersionedPackage architecture
+ * @property {string|null} [version] VersionedPackage version
+ */
+
+ /**
+ * Constructs a new VersionedPackage.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @classdesc Represents a VersionedPackage.
+ * @implements IVersionedPackage
+ * @constructor
+ * @param {google.cloud.osconfig.v1.Inventory.IVersionedPackage=} [properties] Properties to set
+ */
+ function VersionedPackage(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]];
+ }
+
+ /**
+ * VersionedPackage packageName.
+ * @member {string} packageName
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @instance
+ */
+ VersionedPackage.prototype.packageName = "";
+
+ /**
+ * VersionedPackage architecture.
+ * @member {string} architecture
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @instance
+ */
+ VersionedPackage.prototype.architecture = "";
+
+ /**
+ * VersionedPackage version.
+ * @member {string} version
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @instance
+ */
+ VersionedPackage.prototype.version = "";
+
+ /**
+ * Creates a new VersionedPackage instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IVersionedPackage=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.Inventory.VersionedPackage} VersionedPackage instance
+ */
+ VersionedPackage.create = function create(properties) {
+ return new VersionedPackage(properties);
+ };
+
+ /**
+ * Encodes the specified VersionedPackage message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.VersionedPackage.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IVersionedPackage} message VersionedPackage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VersionedPackage.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.architecture != null && Object.hasOwnProperty.call(message, "architecture"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.architecture);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.version);
+ if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.packageName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VersionedPackage message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.VersionedPackage.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IVersionedPackage} message VersionedPackage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VersionedPackage.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VersionedPackage message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.Inventory.VersionedPackage} VersionedPackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VersionedPackage.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.osconfig.v1.Inventory.VersionedPackage();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 4: {
+ message.packageName = reader.string();
+ break;
+ }
+ case 2: {
+ message.architecture = reader.string();
+ break;
+ }
+ case 3: {
+ message.version = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VersionedPackage message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.Inventory.VersionedPackage} VersionedPackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VersionedPackage.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VersionedPackage message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VersionedPackage.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.packageName != null && message.hasOwnProperty("packageName"))
+ if (!$util.isString(message.packageName))
+ return "packageName: string expected";
+ if (message.architecture != null && message.hasOwnProperty("architecture"))
+ if (!$util.isString(message.architecture))
+ return "architecture: string expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a VersionedPackage message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.Inventory.VersionedPackage} VersionedPackage
+ */
+ VersionedPackage.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.Inventory.VersionedPackage)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.Inventory.VersionedPackage();
+ if (object.packageName != null)
+ message.packageName = String(object.packageName);
+ if (object.architecture != null)
+ message.architecture = String(object.architecture);
+ if (object.version != null)
+ message.version = String(object.version);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VersionedPackage message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.VersionedPackage} message VersionedPackage
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VersionedPackage.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.architecture = "";
+ object.version = "";
+ object.packageName = "";
+ }
+ if (message.architecture != null && message.hasOwnProperty("architecture"))
+ object.architecture = message.architecture;
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.packageName != null && message.hasOwnProperty("packageName"))
+ object.packageName = message.packageName;
+ return object;
+ };
+
+ /**
+ * Converts this VersionedPackage to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VersionedPackage.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VersionedPackage
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.Inventory.VersionedPackage
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VersionedPackage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.Inventory.VersionedPackage";
+ };
+
+ return VersionedPackage;
+ })();
+
+ Inventory.ZypperPatch = (function() {
+
+ /**
+ * Properties of a ZypperPatch.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @interface IZypperPatch
+ * @property {string|null} [patchName] ZypperPatch patchName
+ * @property {string|null} [category] ZypperPatch category
+ * @property {string|null} [severity] ZypperPatch severity
+ * @property {string|null} [summary] ZypperPatch summary
+ */
+
+ /**
+ * Constructs a new ZypperPatch.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @classdesc Represents a ZypperPatch.
+ * @implements IZypperPatch
+ * @constructor
+ * @param {google.cloud.osconfig.v1.Inventory.IZypperPatch=} [properties] Properties to set
+ */
+ function ZypperPatch(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]];
+ }
+
+ /**
+ * ZypperPatch patchName.
+ * @member {string} patchName
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @instance
+ */
+ ZypperPatch.prototype.patchName = "";
+
+ /**
+ * ZypperPatch category.
+ * @member {string} category
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @instance
+ */
+ ZypperPatch.prototype.category = "";
+
+ /**
+ * ZypperPatch severity.
+ * @member {string} severity
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @instance
+ */
+ ZypperPatch.prototype.severity = "";
+
+ /**
+ * ZypperPatch summary.
+ * @member {string} summary
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @instance
+ */
+ ZypperPatch.prototype.summary = "";
+
+ /**
+ * Creates a new ZypperPatch instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IZypperPatch=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.Inventory.ZypperPatch} ZypperPatch instance
+ */
+ ZypperPatch.create = function create(properties) {
+ return new ZypperPatch(properties);
+ };
+
+ /**
+ * Encodes the specified ZypperPatch message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.ZypperPatch.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IZypperPatch} message ZypperPatch message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ZypperPatch.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.category != null && Object.hasOwnProperty.call(message, "category"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.category);
+ if (message.severity != null && Object.hasOwnProperty.call(message, "severity"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.severity);
+ if (message.summary != null && Object.hasOwnProperty.call(message, "summary"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.summary);
+ if (message.patchName != null && Object.hasOwnProperty.call(message, "patchName"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.patchName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ZypperPatch message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.ZypperPatch.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IZypperPatch} message ZypperPatch message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ZypperPatch.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ZypperPatch message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.Inventory.ZypperPatch} ZypperPatch
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ZypperPatch.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.osconfig.v1.Inventory.ZypperPatch();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 5: {
+ message.patchName = reader.string();
+ break;
+ }
+ case 2: {
+ message.category = reader.string();
+ break;
+ }
+ case 3: {
+ message.severity = reader.string();
+ break;
+ }
+ case 4: {
+ message.summary = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ZypperPatch message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.Inventory.ZypperPatch} ZypperPatch
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ZypperPatch.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ZypperPatch message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ZypperPatch.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.patchName != null && message.hasOwnProperty("patchName"))
+ if (!$util.isString(message.patchName))
+ return "patchName: string expected";
+ if (message.category != null && message.hasOwnProperty("category"))
+ if (!$util.isString(message.category))
+ return "category: string expected";
+ if (message.severity != null && message.hasOwnProperty("severity"))
+ if (!$util.isString(message.severity))
+ return "severity: string expected";
+ if (message.summary != null && message.hasOwnProperty("summary"))
+ if (!$util.isString(message.summary))
+ return "summary: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ZypperPatch message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.Inventory.ZypperPatch} ZypperPatch
+ */
+ ZypperPatch.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.Inventory.ZypperPatch)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.Inventory.ZypperPatch();
+ if (object.patchName != null)
+ message.patchName = String(object.patchName);
+ if (object.category != null)
+ message.category = String(object.category);
+ if (object.severity != null)
+ message.severity = String(object.severity);
+ if (object.summary != null)
+ message.summary = String(object.summary);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ZypperPatch message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.ZypperPatch} message ZypperPatch
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ZypperPatch.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.category = "";
+ object.severity = "";
+ object.summary = "";
+ object.patchName = "";
+ }
+ if (message.category != null && message.hasOwnProperty("category"))
+ object.category = message.category;
+ if (message.severity != null && message.hasOwnProperty("severity"))
+ object.severity = message.severity;
+ if (message.summary != null && message.hasOwnProperty("summary"))
+ object.summary = message.summary;
+ if (message.patchName != null && message.hasOwnProperty("patchName"))
+ object.patchName = message.patchName;
+ return object;
+ };
+
+ /**
+ * Converts this ZypperPatch to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ZypperPatch.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ZypperPatch
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.Inventory.ZypperPatch
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ZypperPatch.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.Inventory.ZypperPatch";
+ };
+
+ return ZypperPatch;
+ })();
+
+ Inventory.WindowsUpdatePackage = (function() {
+
+ /**
+ * Properties of a WindowsUpdatePackage.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @interface IWindowsUpdatePackage
+ * @property {string|null} [title] WindowsUpdatePackage title
+ * @property {string|null} [description] WindowsUpdatePackage description
+ * @property {Array.|null} [categories] WindowsUpdatePackage categories
+ * @property {Array.|null} [kbArticleIds] WindowsUpdatePackage kbArticleIds
+ * @property {string|null} [supportUrl] WindowsUpdatePackage supportUrl
+ * @property {Array.|null} [moreInfoUrls] WindowsUpdatePackage moreInfoUrls
+ * @property {string|null} [updateId] WindowsUpdatePackage updateId
+ * @property {number|null} [revisionNumber] WindowsUpdatePackage revisionNumber
+ * @property {google.protobuf.ITimestamp|null} [lastDeploymentChangeTime] WindowsUpdatePackage lastDeploymentChangeTime
+ */
+
+ /**
+ * Constructs a new WindowsUpdatePackage.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @classdesc Represents a WindowsUpdatePackage.
+ * @implements IWindowsUpdatePackage
+ * @constructor
+ * @param {google.cloud.osconfig.v1.Inventory.IWindowsUpdatePackage=} [properties] Properties to set
+ */
+ function WindowsUpdatePackage(properties) {
+ this.categories = [];
+ this.kbArticleIds = [];
+ this.moreInfoUrls = [];
+ 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]];
+ }
+
+ /**
+ * WindowsUpdatePackage title.
+ * @member {string} title
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @instance
+ */
+ WindowsUpdatePackage.prototype.title = "";
+
+ /**
+ * WindowsUpdatePackage description.
+ * @member {string} description
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @instance
+ */
+ WindowsUpdatePackage.prototype.description = "";
+
+ /**
+ * WindowsUpdatePackage categories.
+ * @member {Array.} categories
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @instance
+ */
+ WindowsUpdatePackage.prototype.categories = $util.emptyArray;
+
+ /**
+ * WindowsUpdatePackage kbArticleIds.
+ * @member {Array.} kbArticleIds
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @instance
+ */
+ WindowsUpdatePackage.prototype.kbArticleIds = $util.emptyArray;
+
+ /**
+ * WindowsUpdatePackage supportUrl.
+ * @member {string} supportUrl
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @instance
+ */
+ WindowsUpdatePackage.prototype.supportUrl = "";
+
+ /**
+ * WindowsUpdatePackage moreInfoUrls.
+ * @member {Array.} moreInfoUrls
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @instance
+ */
+ WindowsUpdatePackage.prototype.moreInfoUrls = $util.emptyArray;
+
+ /**
+ * WindowsUpdatePackage updateId.
+ * @member {string} updateId
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @instance
+ */
+ WindowsUpdatePackage.prototype.updateId = "";
+
+ /**
+ * WindowsUpdatePackage revisionNumber.
+ * @member {number} revisionNumber
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @instance
+ */
+ WindowsUpdatePackage.prototype.revisionNumber = 0;
+
+ /**
+ * WindowsUpdatePackage lastDeploymentChangeTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} lastDeploymentChangeTime
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @instance
+ */
+ WindowsUpdatePackage.prototype.lastDeploymentChangeTime = null;
+
+ /**
+ * Creates a new WindowsUpdatePackage instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IWindowsUpdatePackage=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage} WindowsUpdatePackage instance
+ */
+ WindowsUpdatePackage.create = function create(properties) {
+ return new WindowsUpdatePackage(properties);
+ };
+
+ /**
+ * Encodes the specified WindowsUpdatePackage message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IWindowsUpdatePackage} message WindowsUpdatePackage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WindowsUpdatePackage.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.title != null && Object.hasOwnProperty.call(message, "title"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.title);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.categories != null && message.categories.length)
+ for (var i = 0; i < message.categories.length; ++i)
+ $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.encode(message.categories[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.kbArticleIds != null && message.kbArticleIds.length)
+ for (var i = 0; i < message.kbArticleIds.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.kbArticleIds[i]);
+ if (message.moreInfoUrls != null && message.moreInfoUrls.length)
+ for (var i = 0; i < message.moreInfoUrls.length; ++i)
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.moreInfoUrls[i]);
+ if (message.updateId != null && Object.hasOwnProperty.call(message, "updateId"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.updateId);
+ if (message.revisionNumber != null && Object.hasOwnProperty.call(message, "revisionNumber"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.revisionNumber);
+ if (message.lastDeploymentChangeTime != null && Object.hasOwnProperty.call(message, "lastDeploymentChangeTime"))
+ $root.google.protobuf.Timestamp.encode(message.lastDeploymentChangeTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.supportUrl != null && Object.hasOwnProperty.call(message, "supportUrl"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.supportUrl);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WindowsUpdatePackage message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IWindowsUpdatePackage} message WindowsUpdatePackage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WindowsUpdatePackage.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WindowsUpdatePackage message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage} WindowsUpdatePackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WindowsUpdatePackage.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.osconfig.v1.Inventory.WindowsUpdatePackage();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.title = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.categories && message.categories.length))
+ message.categories = [];
+ message.categories.push($root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.decode(reader, reader.uint32()));
+ break;
+ }
+ case 4: {
+ if (!(message.kbArticleIds && message.kbArticleIds.length))
+ message.kbArticleIds = [];
+ message.kbArticleIds.push(reader.string());
+ break;
+ }
+ case 11: {
+ message.supportUrl = reader.string();
+ break;
+ }
+ case 5: {
+ if (!(message.moreInfoUrls && message.moreInfoUrls.length))
+ message.moreInfoUrls = [];
+ message.moreInfoUrls.push(reader.string());
+ break;
+ }
+ case 6: {
+ message.updateId = reader.string();
+ break;
+ }
+ case 7: {
+ message.revisionNumber = reader.int32();
+ break;
+ }
+ case 10: {
+ message.lastDeploymentChangeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WindowsUpdatePackage message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage} WindowsUpdatePackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WindowsUpdatePackage.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WindowsUpdatePackage message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WindowsUpdatePackage.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.title != null && message.hasOwnProperty("title"))
+ if (!$util.isString(message.title))
+ return "title: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.categories != null && message.hasOwnProperty("categories")) {
+ if (!Array.isArray(message.categories))
+ return "categories: array expected";
+ for (var i = 0; i < message.categories.length; ++i) {
+ var error = $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.verify(message.categories[i]);
+ if (error)
+ return "categories." + error;
+ }
+ }
+ if (message.kbArticleIds != null && message.hasOwnProperty("kbArticleIds")) {
+ if (!Array.isArray(message.kbArticleIds))
+ return "kbArticleIds: array expected";
+ for (var i = 0; i < message.kbArticleIds.length; ++i)
+ if (!$util.isString(message.kbArticleIds[i]))
+ return "kbArticleIds: string[] expected";
+ }
+ if (message.supportUrl != null && message.hasOwnProperty("supportUrl"))
+ if (!$util.isString(message.supportUrl))
+ return "supportUrl: string expected";
+ if (message.moreInfoUrls != null && message.hasOwnProperty("moreInfoUrls")) {
+ if (!Array.isArray(message.moreInfoUrls))
+ return "moreInfoUrls: array expected";
+ for (var i = 0; i < message.moreInfoUrls.length; ++i)
+ if (!$util.isString(message.moreInfoUrls[i]))
+ return "moreInfoUrls: string[] expected";
+ }
+ if (message.updateId != null && message.hasOwnProperty("updateId"))
+ if (!$util.isString(message.updateId))
+ return "updateId: string expected";
+ if (message.revisionNumber != null && message.hasOwnProperty("revisionNumber"))
+ if (!$util.isInteger(message.revisionNumber))
+ return "revisionNumber: integer expected";
+ if (message.lastDeploymentChangeTime != null && message.hasOwnProperty("lastDeploymentChangeTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.lastDeploymentChangeTime);
+ if (error)
+ return "lastDeploymentChangeTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a WindowsUpdatePackage message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage} WindowsUpdatePackage
+ */
+ WindowsUpdatePackage.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage();
+ if (object.title != null)
+ message.title = String(object.title);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.categories) {
+ if (!Array.isArray(object.categories))
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.categories: array expected");
+ message.categories = [];
+ for (var i = 0; i < object.categories.length; ++i) {
+ if (typeof object.categories[i] !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.categories: object expected");
+ message.categories[i] = $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.fromObject(object.categories[i]);
+ }
+ }
+ if (object.kbArticleIds) {
+ if (!Array.isArray(object.kbArticleIds))
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.kbArticleIds: array expected");
+ message.kbArticleIds = [];
+ for (var i = 0; i < object.kbArticleIds.length; ++i)
+ message.kbArticleIds[i] = String(object.kbArticleIds[i]);
+ }
+ if (object.supportUrl != null)
+ message.supportUrl = String(object.supportUrl);
+ if (object.moreInfoUrls) {
+ if (!Array.isArray(object.moreInfoUrls))
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.moreInfoUrls: array expected");
+ message.moreInfoUrls = [];
+ for (var i = 0; i < object.moreInfoUrls.length; ++i)
+ message.moreInfoUrls[i] = String(object.moreInfoUrls[i]);
+ }
+ if (object.updateId != null)
+ message.updateId = String(object.updateId);
+ if (object.revisionNumber != null)
+ message.revisionNumber = object.revisionNumber | 0;
+ if (object.lastDeploymentChangeTime != null) {
+ if (typeof object.lastDeploymentChangeTime !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.lastDeploymentChangeTime: object expected");
+ message.lastDeploymentChangeTime = $root.google.protobuf.Timestamp.fromObject(object.lastDeploymentChangeTime);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a WindowsUpdatePackage message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage} message WindowsUpdatePackage
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WindowsUpdatePackage.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.categories = [];
+ object.kbArticleIds = [];
+ object.moreInfoUrls = [];
+ }
+ if (options.defaults) {
+ object.title = "";
+ object.description = "";
+ object.updateId = "";
+ object.revisionNumber = 0;
+ object.lastDeploymentChangeTime = null;
+ object.supportUrl = "";
+ }
+ if (message.title != null && message.hasOwnProperty("title"))
+ object.title = message.title;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.categories && message.categories.length) {
+ object.categories = [];
+ for (var j = 0; j < message.categories.length; ++j)
+ object.categories[j] = $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.toObject(message.categories[j], options);
+ }
+ if (message.kbArticleIds && message.kbArticleIds.length) {
+ object.kbArticleIds = [];
+ for (var j = 0; j < message.kbArticleIds.length; ++j)
+ object.kbArticleIds[j] = message.kbArticleIds[j];
+ }
+ if (message.moreInfoUrls && message.moreInfoUrls.length) {
+ object.moreInfoUrls = [];
+ for (var j = 0; j < message.moreInfoUrls.length; ++j)
+ object.moreInfoUrls[j] = message.moreInfoUrls[j];
+ }
+ if (message.updateId != null && message.hasOwnProperty("updateId"))
+ object.updateId = message.updateId;
+ if (message.revisionNumber != null && message.hasOwnProperty("revisionNumber"))
+ object.revisionNumber = message.revisionNumber;
+ if (message.lastDeploymentChangeTime != null && message.hasOwnProperty("lastDeploymentChangeTime"))
+ object.lastDeploymentChangeTime = $root.google.protobuf.Timestamp.toObject(message.lastDeploymentChangeTime, options);
+ if (message.supportUrl != null && message.hasOwnProperty("supportUrl"))
+ object.supportUrl = message.supportUrl;
+ return object;
+ };
+
+ /**
+ * Converts this WindowsUpdatePackage to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WindowsUpdatePackage.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for WindowsUpdatePackage
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WindowsUpdatePackage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage";
+ };
+
+ WindowsUpdatePackage.WindowsUpdateCategory = (function() {
+
+ /**
+ * Properties of a WindowsUpdateCategory.
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @interface IWindowsUpdateCategory
+ * @property {string|null} [id] WindowsUpdateCategory id
+ * @property {string|null} [name] WindowsUpdateCategory name
+ */
+
+ /**
+ * Constructs a new WindowsUpdateCategory.
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ * @classdesc Represents a WindowsUpdateCategory.
+ * @implements IWindowsUpdateCategory
+ * @constructor
+ * @param {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory=} [properties] Properties to set
+ */
+ function WindowsUpdateCategory(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]];
+ }
+
+ /**
+ * WindowsUpdateCategory id.
+ * @member {string} id
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ * @instance
+ */
+ WindowsUpdateCategory.prototype.id = "";
+
+ /**
+ * WindowsUpdateCategory name.
+ * @member {string} name
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ * @instance
+ */
+ WindowsUpdateCategory.prototype.name = "";
+
+ /**
+ * Creates a new WindowsUpdateCategory instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory} WindowsUpdateCategory instance
+ */
+ WindowsUpdateCategory.create = function create(properties) {
+ return new WindowsUpdateCategory(properties);
+ };
+
+ /**
+ * Encodes the specified WindowsUpdateCategory message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory} message WindowsUpdateCategory message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WindowsUpdateCategory.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.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WindowsUpdateCategory message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.IWindowsUpdateCategory} message WindowsUpdateCategory message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WindowsUpdateCategory.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WindowsUpdateCategory message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory} WindowsUpdateCategory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WindowsUpdateCategory.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.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.id = reader.string();
+ break;
+ }
+ case 2: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WindowsUpdateCategory message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory} WindowsUpdateCategory
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WindowsUpdateCategory.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WindowsUpdateCategory message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WindowsUpdateCategory.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.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a WindowsUpdateCategory message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory} WindowsUpdateCategory
+ */
+ WindowsUpdateCategory.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory();
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a WindowsUpdateCategory message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory} message WindowsUpdateCategory
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WindowsUpdateCategory.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.id = "";
+ object.name = "";
+ }
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this WindowsUpdateCategory to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WindowsUpdateCategory.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for WindowsUpdateCategory
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WindowsUpdateCategory.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory";
+ };
+
+ return WindowsUpdateCategory;
+ })();
+
+ return WindowsUpdatePackage;
+ })();
+
+ Inventory.WindowsQuickFixEngineeringPackage = (function() {
+
+ /**
+ * Properties of a WindowsQuickFixEngineeringPackage.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @interface IWindowsQuickFixEngineeringPackage
+ * @property {string|null} [caption] WindowsQuickFixEngineeringPackage caption
+ * @property {string|null} [description] WindowsQuickFixEngineeringPackage description
+ * @property {string|null} [hotFixId] WindowsQuickFixEngineeringPackage hotFixId
+ * @property {google.protobuf.ITimestamp|null} [installTime] WindowsQuickFixEngineeringPackage installTime
+ */
+
+ /**
+ * Constructs a new WindowsQuickFixEngineeringPackage.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @classdesc Represents a WindowsQuickFixEngineeringPackage.
+ * @implements IWindowsQuickFixEngineeringPackage
+ * @constructor
+ * @param {google.cloud.osconfig.v1.Inventory.IWindowsQuickFixEngineeringPackage=} [properties] Properties to set
+ */
+ function WindowsQuickFixEngineeringPackage(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]];
+ }
+
+ /**
+ * WindowsQuickFixEngineeringPackage caption.
+ * @member {string} caption
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @instance
+ */
+ WindowsQuickFixEngineeringPackage.prototype.caption = "";
+
+ /**
+ * WindowsQuickFixEngineeringPackage description.
+ * @member {string} description
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @instance
+ */
+ WindowsQuickFixEngineeringPackage.prototype.description = "";
+
+ /**
+ * WindowsQuickFixEngineeringPackage hotFixId.
+ * @member {string} hotFixId
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @instance
+ */
+ WindowsQuickFixEngineeringPackage.prototype.hotFixId = "";
+
+ /**
+ * WindowsQuickFixEngineeringPackage installTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} installTime
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @instance
+ */
+ WindowsQuickFixEngineeringPackage.prototype.installTime = null;
+
+ /**
+ * Creates a new WindowsQuickFixEngineeringPackage instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IWindowsQuickFixEngineeringPackage=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage} WindowsQuickFixEngineeringPackage instance
+ */
+ WindowsQuickFixEngineeringPackage.create = function create(properties) {
+ return new WindowsQuickFixEngineeringPackage(properties);
+ };
+
+ /**
+ * Encodes the specified WindowsQuickFixEngineeringPackage message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IWindowsQuickFixEngineeringPackage} message WindowsQuickFixEngineeringPackage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WindowsQuickFixEngineeringPackage.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.caption != null && Object.hasOwnProperty.call(message, "caption"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.caption);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.hotFixId != null && Object.hasOwnProperty.call(message, "hotFixId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.hotFixId);
+ if (message.installTime != null && Object.hasOwnProperty.call(message, "installTime"))
+ $root.google.protobuf.Timestamp.encode(message.installTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WindowsQuickFixEngineeringPackage message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IWindowsQuickFixEngineeringPackage} message WindowsQuickFixEngineeringPackage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WindowsQuickFixEngineeringPackage.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WindowsQuickFixEngineeringPackage message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage} WindowsQuickFixEngineeringPackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WindowsQuickFixEngineeringPackage.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.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.caption = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.hotFixId = reader.string();
+ break;
+ }
+ case 5: {
+ message.installTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WindowsQuickFixEngineeringPackage message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage} WindowsQuickFixEngineeringPackage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WindowsQuickFixEngineeringPackage.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WindowsQuickFixEngineeringPackage message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WindowsQuickFixEngineeringPackage.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.caption != null && message.hasOwnProperty("caption"))
+ if (!$util.isString(message.caption))
+ return "caption: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.hotFixId != null && message.hasOwnProperty("hotFixId"))
+ if (!$util.isString(message.hotFixId))
+ return "hotFixId: string expected";
+ if (message.installTime != null && message.hasOwnProperty("installTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.installTime);
+ if (error)
+ return "installTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a WindowsQuickFixEngineeringPackage message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage} WindowsQuickFixEngineeringPackage
+ */
+ WindowsQuickFixEngineeringPackage.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage();
+ if (object.caption != null)
+ message.caption = String(object.caption);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.hotFixId != null)
+ message.hotFixId = String(object.hotFixId);
+ if (object.installTime != null) {
+ if (typeof object.installTime !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.installTime: object expected");
+ message.installTime = $root.google.protobuf.Timestamp.fromObject(object.installTime);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a WindowsQuickFixEngineeringPackage message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage} message WindowsQuickFixEngineeringPackage
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WindowsQuickFixEngineeringPackage.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.caption = "";
+ object.description = "";
+ object.hotFixId = "";
+ object.installTime = null;
+ }
+ if (message.caption != null && message.hasOwnProperty("caption"))
+ object.caption = message.caption;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.hotFixId != null && message.hasOwnProperty("hotFixId"))
+ object.hotFixId = message.hotFixId;
+ if (message.installTime != null && message.hasOwnProperty("installTime"))
+ object.installTime = $root.google.protobuf.Timestamp.toObject(message.installTime, options);
+ return object;
+ };
+
+ /**
+ * Converts this WindowsQuickFixEngineeringPackage to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WindowsQuickFixEngineeringPackage.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for WindowsQuickFixEngineeringPackage
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WindowsQuickFixEngineeringPackage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage";
+ };
+
+ return WindowsQuickFixEngineeringPackage;
+ })();
+
+ Inventory.WindowsApplication = (function() {
+
+ /**
+ * Properties of a WindowsApplication.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @interface IWindowsApplication
+ * @property {string|null} [displayName] WindowsApplication displayName
+ * @property {string|null} [displayVersion] WindowsApplication displayVersion
+ * @property {string|null} [publisher] WindowsApplication publisher
+ * @property {google.type.IDate|null} [installDate] WindowsApplication installDate
+ * @property {string|null} [helpLink] WindowsApplication helpLink
+ */
+
+ /**
+ * Constructs a new WindowsApplication.
+ * @memberof google.cloud.osconfig.v1.Inventory
+ * @classdesc Represents a WindowsApplication.
+ * @implements IWindowsApplication
+ * @constructor
+ * @param {google.cloud.osconfig.v1.Inventory.IWindowsApplication=} [properties] Properties to set
+ */
+ function WindowsApplication(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]];
+ }
+
+ /**
+ * WindowsApplication displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @instance
+ */
+ WindowsApplication.prototype.displayName = "";
+
+ /**
+ * WindowsApplication displayVersion.
+ * @member {string} displayVersion
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @instance
+ */
+ WindowsApplication.prototype.displayVersion = "";
+
+ /**
+ * WindowsApplication publisher.
+ * @member {string} publisher
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @instance
+ */
+ WindowsApplication.prototype.publisher = "";
+
+ /**
+ * WindowsApplication installDate.
+ * @member {google.type.IDate|null|undefined} installDate
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @instance
+ */
+ WindowsApplication.prototype.installDate = null;
+
+ /**
+ * WindowsApplication helpLink.
+ * @member {string} helpLink
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @instance
+ */
+ WindowsApplication.prototype.helpLink = "";
+
+ /**
+ * Creates a new WindowsApplication instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IWindowsApplication=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsApplication} WindowsApplication instance
+ */
+ WindowsApplication.create = function create(properties) {
+ return new WindowsApplication(properties);
+ };
+
+ /**
+ * Encodes the specified WindowsApplication message. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsApplication.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IWindowsApplication} message WindowsApplication message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WindowsApplication.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName);
+ if (message.displayVersion != null && Object.hasOwnProperty.call(message, "displayVersion"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayVersion);
+ if (message.publisher != null && Object.hasOwnProperty.call(message, "publisher"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.publisher);
+ if (message.installDate != null && Object.hasOwnProperty.call(message, "installDate"))
+ $root.google.type.Date.encode(message.installDate, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.helpLink != null && Object.hasOwnProperty.call(message, "helpLink"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.helpLink);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WindowsApplication message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.Inventory.WindowsApplication.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.IWindowsApplication} message WindowsApplication message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WindowsApplication.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WindowsApplication message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsApplication} WindowsApplication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WindowsApplication.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.osconfig.v1.Inventory.WindowsApplication();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayVersion = reader.string();
+ break;
+ }
+ case 3: {
+ message.publisher = reader.string();
+ break;
+ }
+ case 4: {
+ message.installDate = $root.google.type.Date.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.helpLink = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WindowsApplication message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsApplication} WindowsApplication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WindowsApplication.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WindowsApplication message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WindowsApplication.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.displayVersion != null && message.hasOwnProperty("displayVersion"))
+ if (!$util.isString(message.displayVersion))
+ return "displayVersion: string expected";
+ if (message.publisher != null && message.hasOwnProperty("publisher"))
+ if (!$util.isString(message.publisher))
+ return "publisher: string expected";
+ if (message.installDate != null && message.hasOwnProperty("installDate")) {
+ var error = $root.google.type.Date.verify(message.installDate);
+ if (error)
+ return "installDate." + error;
+ }
+ if (message.helpLink != null && message.hasOwnProperty("helpLink"))
+ if (!$util.isString(message.helpLink))
+ return "helpLink: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a WindowsApplication message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.Inventory.WindowsApplication} WindowsApplication
+ */
+ WindowsApplication.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.Inventory.WindowsApplication)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.Inventory.WindowsApplication();
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.displayVersion != null)
+ message.displayVersion = String(object.displayVersion);
+ if (object.publisher != null)
+ message.publisher = String(object.publisher);
+ if (object.installDate != null) {
+ if (typeof object.installDate !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.Inventory.WindowsApplication.installDate: object expected");
+ message.installDate = $root.google.type.Date.fromObject(object.installDate);
+ }
+ if (object.helpLink != null)
+ message.helpLink = String(object.helpLink);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a WindowsApplication message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @static
+ * @param {google.cloud.osconfig.v1.Inventory.WindowsApplication} message WindowsApplication
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WindowsApplication.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.displayName = "";
+ object.displayVersion = "";
+ object.publisher = "";
+ object.installDate = null;
+ object.helpLink = "";
+ }
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.displayVersion != null && message.hasOwnProperty("displayVersion"))
+ object.displayVersion = message.displayVersion;
+ if (message.publisher != null && message.hasOwnProperty("publisher"))
+ object.publisher = message.publisher;
+ if (message.installDate != null && message.hasOwnProperty("installDate"))
+ object.installDate = $root.google.type.Date.toObject(message.installDate, options);
+ if (message.helpLink != null && message.hasOwnProperty("helpLink"))
+ object.helpLink = message.helpLink;
+ return object;
+ };
+
+ /**
+ * Converts this WindowsApplication to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WindowsApplication.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for WindowsApplication
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.Inventory.WindowsApplication
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WindowsApplication.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.Inventory.WindowsApplication";
+ };
+
+ return WindowsApplication;
+ })();
+
+ return Inventory;
+ })();
+
+ v1.GetInventoryRequest = (function() {
+
+ /**
+ * Properties of a GetInventoryRequest.
+ * @memberof google.cloud.osconfig.v1
+ * @interface IGetInventoryRequest
+ * @property {string|null} [name] GetInventoryRequest name
+ * @property {google.cloud.osconfig.v1.InventoryView|null} [view] GetInventoryRequest view
+ */
+
+ /**
+ * Constructs a new GetInventoryRequest.
+ * @memberof google.cloud.osconfig.v1
+ * @classdesc Represents a GetInventoryRequest.
+ * @implements IGetInventoryRequest
+ * @constructor
+ * @param {google.cloud.osconfig.v1.IGetInventoryRequest=} [properties] Properties to set
+ */
+ function GetInventoryRequest(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]];
+ }
+
+ /**
+ * GetInventoryRequest name.
+ * @member {string} name
+ * @memberof google.cloud.osconfig.v1.GetInventoryRequest
+ * @instance
+ */
+ GetInventoryRequest.prototype.name = "";
+
+ /**
+ * GetInventoryRequest view.
+ * @member {google.cloud.osconfig.v1.InventoryView} view
+ * @memberof google.cloud.osconfig.v1.GetInventoryRequest
+ * @instance
+ */
+ GetInventoryRequest.prototype.view = 0;
+
+ /**
+ * Creates a new GetInventoryRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.GetInventoryRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.IGetInventoryRequest=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.GetInventoryRequest} GetInventoryRequest instance
+ */
+ GetInventoryRequest.create = function create(properties) {
+ return new GetInventoryRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetInventoryRequest message. Does not implicitly {@link google.cloud.osconfig.v1.GetInventoryRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.GetInventoryRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.IGetInventoryRequest} message GetInventoryRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetInventoryRequest.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.view != null && Object.hasOwnProperty.call(message, "view"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.view);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetInventoryRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.GetInventoryRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.GetInventoryRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.IGetInventoryRequest} message GetInventoryRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetInventoryRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetInventoryRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.GetInventoryRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.GetInventoryRequest} GetInventoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetInventoryRequest.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.osconfig.v1.GetInventoryRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.view = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetInventoryRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.GetInventoryRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.GetInventoryRequest} GetInventoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetInventoryRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetInventoryRequest message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.GetInventoryRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetInventoryRequest.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.view != null && message.hasOwnProperty("view"))
+ switch (message.view) {
+ default:
+ return "view: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a GetInventoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.GetInventoryRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.GetInventoryRequest} GetInventoryRequest
+ */
+ GetInventoryRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.GetInventoryRequest)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.GetInventoryRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.view) {
+ default:
+ if (typeof object.view === "number") {
+ message.view = object.view;
+ break;
+ }
+ break;
+ case "INVENTORY_VIEW_UNSPECIFIED":
+ case 0:
+ message.view = 0;
+ break;
+ case "BASIC":
+ case 1:
+ message.view = 1;
+ break;
+ case "FULL":
+ case 2:
+ message.view = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetInventoryRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.GetInventoryRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.GetInventoryRequest} message GetInventoryRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetInventoryRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.view = options.enums === String ? "INVENTORY_VIEW_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.view != null && message.hasOwnProperty("view"))
+ object.view = options.enums === String ? $root.google.cloud.osconfig.v1.InventoryView[message.view] === undefined ? message.view : $root.google.cloud.osconfig.v1.InventoryView[message.view] : message.view;
+ return object;
+ };
+
+ /**
+ * Converts this GetInventoryRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.GetInventoryRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetInventoryRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetInventoryRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.GetInventoryRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetInventoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.GetInventoryRequest";
+ };
+
+ return GetInventoryRequest;
+ })();
+
+ v1.ListInventoriesRequest = (function() {
+
+ /**
+ * Properties of a ListInventoriesRequest.
+ * @memberof google.cloud.osconfig.v1
+ * @interface IListInventoriesRequest
+ * @property {string|null} [parent] ListInventoriesRequest parent
+ * @property {google.cloud.osconfig.v1.InventoryView|null} [view] ListInventoriesRequest view
+ * @property {number|null} [pageSize] ListInventoriesRequest pageSize
+ * @property {string|null} [pageToken] ListInventoriesRequest pageToken
+ * @property {string|null} [filter] ListInventoriesRequest filter
+ */
+
+ /**
+ * Constructs a new ListInventoriesRequest.
+ * @memberof google.cloud.osconfig.v1
+ * @classdesc Represents a ListInventoriesRequest.
+ * @implements IListInventoriesRequest
+ * @constructor
+ * @param {google.cloud.osconfig.v1.IListInventoriesRequest=} [properties] Properties to set
+ */
+ function ListInventoriesRequest(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]];
+ }
+
+ /**
+ * ListInventoriesRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @instance
+ */
+ ListInventoriesRequest.prototype.parent = "";
+
+ /**
+ * ListInventoriesRequest view.
+ * @member {google.cloud.osconfig.v1.InventoryView} view
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @instance
+ */
+ ListInventoriesRequest.prototype.view = 0;
+
+ /**
+ * ListInventoriesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @instance
+ */
+ ListInventoriesRequest.prototype.pageSize = 0;
+
+ /**
+ * ListInventoriesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @instance
+ */
+ ListInventoriesRequest.prototype.pageToken = "";
+
+ /**
+ * ListInventoriesRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @instance
+ */
+ ListInventoriesRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListInventoriesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.IListInventoriesRequest=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.ListInventoriesRequest} ListInventoriesRequest instance
+ */
+ ListInventoriesRequest.create = function create(properties) {
+ return new ListInventoriesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListInventoriesRequest message. Does not implicitly {@link google.cloud.osconfig.v1.ListInventoriesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.IListInventoriesRequest} message ListInventoriesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListInventoriesRequest.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.view != null && Object.hasOwnProperty.call(message, "view"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.view);
+ 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);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListInventoriesRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListInventoriesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.IListInventoriesRequest} message ListInventoriesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListInventoriesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListInventoriesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.ListInventoriesRequest} ListInventoriesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListInventoriesRequest.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.osconfig.v1.ListInventoriesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.view = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 4: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 5: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListInventoriesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.ListInventoriesRequest} ListInventoriesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListInventoriesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListInventoriesRequest message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListInventoriesRequest.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.view != null && message.hasOwnProperty("view"))
+ switch (message.view) {
+ default:
+ return "view: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListInventoriesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.ListInventoriesRequest} ListInventoriesRequest
+ */
+ ListInventoriesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.ListInventoriesRequest)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.ListInventoriesRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ switch (object.view) {
+ default:
+ if (typeof object.view === "number") {
+ message.view = object.view;
+ break;
+ }
+ break;
+ case "INVENTORY_VIEW_UNSPECIFIED":
+ case 0:
+ message.view = 0;
+ break;
+ case "BASIC":
+ case 1:
+ message.view = 1;
+ break;
+ case "FULL":
+ case 2:
+ message.view = 2;
+ break;
+ }
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListInventoriesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.ListInventoriesRequest} message ListInventoriesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListInventoriesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.view = options.enums === String ? "INVENTORY_VIEW_UNSPECIFIED" : 0;
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.view != null && message.hasOwnProperty("view"))
+ object.view = options.enums === String ? $root.google.cloud.osconfig.v1.InventoryView[message.view] === undefined ? message.view : $root.google.cloud.osconfig.v1.InventoryView[message.view] : message.view;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListInventoriesRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListInventoriesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListInventoriesRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.ListInventoriesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListInventoriesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.ListInventoriesRequest";
+ };
+
+ return ListInventoriesRequest;
+ })();
+
+ v1.ListInventoriesResponse = (function() {
+
+ /**
+ * Properties of a ListInventoriesResponse.
+ * @memberof google.cloud.osconfig.v1
+ * @interface IListInventoriesResponse
+ * @property {Array.|null} [inventories] ListInventoriesResponse inventories
+ * @property {string|null} [nextPageToken] ListInventoriesResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListInventoriesResponse.
+ * @memberof google.cloud.osconfig.v1
+ * @classdesc Represents a ListInventoriesResponse.
+ * @implements IListInventoriesResponse
+ * @constructor
+ * @param {google.cloud.osconfig.v1.IListInventoriesResponse=} [properties] Properties to set
+ */
+ function ListInventoriesResponse(properties) {
+ this.inventories = [];
+ 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]];
+ }
+
+ /**
+ * ListInventoriesResponse inventories.
+ * @member {Array.} inventories
+ * @memberof google.cloud.osconfig.v1.ListInventoriesResponse
+ * @instance
+ */
+ ListInventoriesResponse.prototype.inventories = $util.emptyArray;
+
+ /**
+ * ListInventoriesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.osconfig.v1.ListInventoriesResponse
+ * @instance
+ */
+ ListInventoriesResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListInventoriesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.ListInventoriesResponse
+ * @static
+ * @param {google.cloud.osconfig.v1.IListInventoriesResponse=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.ListInventoriesResponse} ListInventoriesResponse instance
+ */
+ ListInventoriesResponse.create = function create(properties) {
+ return new ListInventoriesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListInventoriesResponse message. Does not implicitly {@link google.cloud.osconfig.v1.ListInventoriesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.ListInventoriesResponse
+ * @static
+ * @param {google.cloud.osconfig.v1.IListInventoriesResponse} message ListInventoriesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListInventoriesResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.inventories != null && message.inventories.length)
+ for (var i = 0; i < message.inventories.length; ++i)
+ $root.google.cloud.osconfig.v1.Inventory.encode(message.inventories[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 ListInventoriesResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListInventoriesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.ListInventoriesResponse
+ * @static
+ * @param {google.cloud.osconfig.v1.IListInventoriesResponse} message ListInventoriesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListInventoriesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListInventoriesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.ListInventoriesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.ListInventoriesResponse} ListInventoriesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListInventoriesResponse.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.osconfig.v1.ListInventoriesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.inventories && message.inventories.length))
+ message.inventories = [];
+ message.inventories.push($root.google.cloud.osconfig.v1.Inventory.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListInventoriesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.ListInventoriesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.ListInventoriesResponse} ListInventoriesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListInventoriesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListInventoriesResponse message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.ListInventoriesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListInventoriesResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.inventories != null && message.hasOwnProperty("inventories")) {
+ if (!Array.isArray(message.inventories))
+ return "inventories: array expected";
+ for (var i = 0; i < message.inventories.length; ++i) {
+ var error = $root.google.cloud.osconfig.v1.Inventory.verify(message.inventories[i]);
+ if (error)
+ return "inventories." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListInventoriesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.ListInventoriesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.ListInventoriesResponse} ListInventoriesResponse
+ */
+ ListInventoriesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.ListInventoriesResponse)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.ListInventoriesResponse();
+ if (object.inventories) {
+ if (!Array.isArray(object.inventories))
+ throw TypeError(".google.cloud.osconfig.v1.ListInventoriesResponse.inventories: array expected");
+ message.inventories = [];
+ for (var i = 0; i < object.inventories.length; ++i) {
+ if (typeof object.inventories[i] !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.ListInventoriesResponse.inventories: object expected");
+ message.inventories[i] = $root.google.cloud.osconfig.v1.Inventory.fromObject(object.inventories[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListInventoriesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.ListInventoriesResponse
+ * @static
+ * @param {google.cloud.osconfig.v1.ListInventoriesResponse} message ListInventoriesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListInventoriesResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.inventories = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.inventories && message.inventories.length) {
+ object.inventories = [];
+ for (var j = 0; j < message.inventories.length; ++j)
+ object.inventories[j] = $root.google.cloud.osconfig.v1.Inventory.toObject(message.inventories[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListInventoriesResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.ListInventoriesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListInventoriesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListInventoriesResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.ListInventoriesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListInventoriesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.ListInventoriesResponse";
+ };
+
+ return ListInventoriesResponse;
+ })();
+
+ /**
+ * InventoryView enum.
+ * @name google.cloud.osconfig.v1.InventoryView
+ * @enum {number}
+ * @property {number} INVENTORY_VIEW_UNSPECIFIED=0 INVENTORY_VIEW_UNSPECIFIED value
+ * @property {number} BASIC=1 BASIC value
+ * @property {number} FULL=2 FULL value
+ */
+ v1.InventoryView = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "INVENTORY_VIEW_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "BASIC"] = 1;
+ values[valuesById[2] = "FULL"] = 2;
+ return values;
+ })();
+
+ v1.OSPolicy = (function() {
+
+ /**
+ * Properties of a OSPolicy.
+ * @memberof google.cloud.osconfig.v1
+ * @interface IOSPolicy
+ * @property {string|null} [id] OSPolicy id
+ * @property {string|null} [description] OSPolicy description
+ * @property {google.cloud.osconfig.v1.OSPolicy.Mode|null} [mode] OSPolicy mode
+ * @property {Array.|null} [resourceGroups] OSPolicy resourceGroups
+ * @property {boolean|null} [allowNoResourceGroupMatch] OSPolicy allowNoResourceGroupMatch
+ */
+
+ /**
+ * Constructs a new OSPolicy.
+ * @memberof google.cloud.osconfig.v1
+ * @classdesc Represents a OSPolicy.
+ * @implements IOSPolicy
+ * @constructor
+ * @param {google.cloud.osconfig.v1.IOSPolicy=} [properties] Properties to set
+ */
+ function OSPolicy(properties) {
+ this.resourceGroups = [];
+ 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]];
+ }
+
+ /**
+ * OSPolicy id.
+ * @member {string} id
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @instance
+ */
+ OSPolicy.prototype.id = "";
+
+ /**
+ * OSPolicy description.
+ * @member {string} description
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @instance
+ */
+ OSPolicy.prototype.description = "";
+
+ /**
+ * OSPolicy mode.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Mode} mode
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @instance
+ */
+ OSPolicy.prototype.mode = 0;
+
+ /**
+ * OSPolicy resourceGroups.
+ * @member {Array.} resourceGroups
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @instance
+ */
+ OSPolicy.prototype.resourceGroups = $util.emptyArray;
+
+ /**
+ * OSPolicy allowNoResourceGroupMatch.
+ * @member {boolean} allowNoResourceGroupMatch
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @instance
+ */
+ OSPolicy.prototype.allowNoResourceGroupMatch = false;
+
+ /**
+ * Creates a new OSPolicy instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @static
+ * @param {google.cloud.osconfig.v1.IOSPolicy=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy} OSPolicy instance
+ */
+ OSPolicy.create = function create(properties) {
+ return new OSPolicy(properties);
+ };
+
+ /**
+ * Encodes the specified OSPolicy message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @static
+ * @param {google.cloud.osconfig.v1.IOSPolicy} message OSPolicy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OSPolicy.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.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.mode);
+ if (message.resourceGroups != null && message.resourceGroups.length)
+ for (var i = 0; i < message.resourceGroups.length; ++i)
+ $root.google.cloud.osconfig.v1.OSPolicy.ResourceGroup.encode(message.resourceGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.allowNoResourceGroupMatch != null && Object.hasOwnProperty.call(message, "allowNoResourceGroupMatch"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.allowNoResourceGroupMatch);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OSPolicy message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @static
+ * @param {google.cloud.osconfig.v1.IOSPolicy} message OSPolicy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OSPolicy.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a OSPolicy message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy} OSPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OSPolicy.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.osconfig.v1.OSPolicy();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.id = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.mode = reader.int32();
+ break;
+ }
+ case 4: {
+ if (!(message.resourceGroups && message.resourceGroups.length))
+ message.resourceGroups = [];
+ message.resourceGroups.push($root.google.cloud.osconfig.v1.OSPolicy.ResourceGroup.decode(reader, reader.uint32()));
+ break;
+ }
+ case 5: {
+ message.allowNoResourceGroupMatch = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a OSPolicy message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy} OSPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OSPolicy.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a OSPolicy message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OSPolicy.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.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.mode != null && message.hasOwnProperty("mode"))
+ switch (message.mode) {
+ default:
+ return "mode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.resourceGroups != null && message.hasOwnProperty("resourceGroups")) {
+ if (!Array.isArray(message.resourceGroups))
+ return "resourceGroups: array expected";
+ for (var i = 0; i < message.resourceGroups.length; ++i) {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.ResourceGroup.verify(message.resourceGroups[i]);
+ if (error)
+ return "resourceGroups." + error;
+ }
+ }
+ if (message.allowNoResourceGroupMatch != null && message.hasOwnProperty("allowNoResourceGroupMatch"))
+ if (typeof message.allowNoResourceGroupMatch !== "boolean")
+ return "allowNoResourceGroupMatch: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a OSPolicy message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy} OSPolicy
+ */
+ OSPolicy.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy();
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.description != null)
+ message.description = String(object.description);
+ switch (object.mode) {
+ default:
+ if (typeof object.mode === "number") {
+ message.mode = object.mode;
+ break;
+ }
+ break;
+ case "MODE_UNSPECIFIED":
+ case 0:
+ message.mode = 0;
+ break;
+ case "VALIDATION":
+ case 1:
+ message.mode = 1;
+ break;
+ case "ENFORCEMENT":
+ case 2:
+ message.mode = 2;
+ break;
+ }
+ if (object.resourceGroups) {
+ if (!Array.isArray(object.resourceGroups))
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.resourceGroups: array expected");
+ message.resourceGroups = [];
+ for (var i = 0; i < object.resourceGroups.length; ++i) {
+ if (typeof object.resourceGroups[i] !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.resourceGroups: object expected");
+ message.resourceGroups[i] = $root.google.cloud.osconfig.v1.OSPolicy.ResourceGroup.fromObject(object.resourceGroups[i]);
+ }
+ }
+ if (object.allowNoResourceGroupMatch != null)
+ message.allowNoResourceGroupMatch = Boolean(object.allowNoResourceGroupMatch);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a OSPolicy message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy} message OSPolicy
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OSPolicy.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.resourceGroups = [];
+ if (options.defaults) {
+ object.id = "";
+ object.description = "";
+ object.mode = options.enums === String ? "MODE_UNSPECIFIED" : 0;
+ object.allowNoResourceGroupMatch = false;
+ }
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.mode != null && message.hasOwnProperty("mode"))
+ object.mode = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Mode[message.mode] === undefined ? message.mode : $root.google.cloud.osconfig.v1.OSPolicy.Mode[message.mode] : message.mode;
+ if (message.resourceGroups && message.resourceGroups.length) {
+ object.resourceGroups = [];
+ for (var j = 0; j < message.resourceGroups.length; ++j)
+ object.resourceGroups[j] = $root.google.cloud.osconfig.v1.OSPolicy.ResourceGroup.toObject(message.resourceGroups[j], options);
+ }
+ if (message.allowNoResourceGroupMatch != null && message.hasOwnProperty("allowNoResourceGroupMatch"))
+ object.allowNoResourceGroupMatch = message.allowNoResourceGroupMatch;
+ return object;
+ };
+
+ /**
+ * Converts this OSPolicy to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OSPolicy.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OSPolicy
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OSPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy";
+ };
+
+ /**
+ * Mode enum.
+ * @name google.cloud.osconfig.v1.OSPolicy.Mode
+ * @enum {number}
+ * @property {number} MODE_UNSPECIFIED=0 MODE_UNSPECIFIED value
+ * @property {number} VALIDATION=1 VALIDATION value
+ * @property {number} ENFORCEMENT=2 ENFORCEMENT value
+ */
+ OSPolicy.Mode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "VALIDATION"] = 1;
+ values[valuesById[2] = "ENFORCEMENT"] = 2;
+ return values;
+ })();
+
+ OSPolicy.InventoryFilter = (function() {
+
+ /**
+ * Properties of an InventoryFilter.
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @interface IInventoryFilter
+ * @property {string|null} [osShortName] InventoryFilter osShortName
+ * @property {string|null} [osVersion] InventoryFilter osVersion
+ */
+
+ /**
+ * Constructs a new InventoryFilter.
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @classdesc Represents an InventoryFilter.
+ * @implements IInventoryFilter
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.IInventoryFilter=} [properties] Properties to set
+ */
+ function InventoryFilter(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]];
+ }
+
+ /**
+ * InventoryFilter osShortName.
+ * @member {string} osShortName
+ * @memberof google.cloud.osconfig.v1.OSPolicy.InventoryFilter
+ * @instance
+ */
+ InventoryFilter.prototype.osShortName = "";
+
+ /**
+ * InventoryFilter osVersion.
+ * @member {string} osVersion
+ * @memberof google.cloud.osconfig.v1.OSPolicy.InventoryFilter
+ * @instance
+ */
+ InventoryFilter.prototype.osVersion = "";
+
+ /**
+ * Creates a new InventoryFilter instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.InventoryFilter
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.IInventoryFilter=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.InventoryFilter} InventoryFilter instance
+ */
+ InventoryFilter.create = function create(properties) {
+ return new InventoryFilter(properties);
+ };
+
+ /**
+ * Encodes the specified InventoryFilter message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.InventoryFilter.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.InventoryFilter
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.IInventoryFilter} message InventoryFilter message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ InventoryFilter.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.osShortName != null && Object.hasOwnProperty.call(message, "osShortName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.osShortName);
+ if (message.osVersion != null && Object.hasOwnProperty.call(message, "osVersion"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.osVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified InventoryFilter message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.InventoryFilter.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.InventoryFilter
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.IInventoryFilter} message InventoryFilter message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ InventoryFilter.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an InventoryFilter message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.InventoryFilter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.InventoryFilter} InventoryFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ InventoryFilter.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.osconfig.v1.OSPolicy.InventoryFilter();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.osShortName = reader.string();
+ break;
+ }
+ case 2: {
+ message.osVersion = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an InventoryFilter message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.InventoryFilter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.InventoryFilter} InventoryFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ InventoryFilter.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an InventoryFilter message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.InventoryFilter
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ InventoryFilter.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.osShortName != null && message.hasOwnProperty("osShortName"))
+ if (!$util.isString(message.osShortName))
+ return "osShortName: string expected";
+ if (message.osVersion != null && message.hasOwnProperty("osVersion"))
+ if (!$util.isString(message.osVersion))
+ return "osVersion: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an InventoryFilter message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.InventoryFilter
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.InventoryFilter} InventoryFilter
+ */
+ InventoryFilter.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.InventoryFilter)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.InventoryFilter();
+ if (object.osShortName != null)
+ message.osShortName = String(object.osShortName);
+ if (object.osVersion != null)
+ message.osVersion = String(object.osVersion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an InventoryFilter message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.InventoryFilter
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.InventoryFilter} message InventoryFilter
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ InventoryFilter.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.osShortName = "";
+ object.osVersion = "";
+ }
+ if (message.osShortName != null && message.hasOwnProperty("osShortName"))
+ object.osShortName = message.osShortName;
+ if (message.osVersion != null && message.hasOwnProperty("osVersion"))
+ object.osVersion = message.osVersion;
+ return object;
+ };
+
+ /**
+ * Converts this InventoryFilter to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.InventoryFilter
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ InventoryFilter.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for InventoryFilter
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.InventoryFilter
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ InventoryFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.InventoryFilter";
+ };
+
+ return InventoryFilter;
+ })();
+
+ OSPolicy.Resource = (function() {
+
+ /**
+ * Properties of a Resource.
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @interface IResource
+ * @property {string|null} [id] Resource id
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.IPackageResource|null} [pkg] Resource pkg
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.IRepositoryResource|null} [repository] Resource repository
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.IExecResource|null} [exec] Resource exec
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.IFileResource|null} [file] Resource file
+ */
+
+ /**
+ * Constructs a new Resource.
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @classdesc Represents a Resource.
+ * @implements IResource
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.IResource=} [properties] Properties to set
+ */
+ function Resource(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]];
+ }
+
+ /**
+ * Resource id.
+ * @member {string} id
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @instance
+ */
+ Resource.prototype.id = "";
+
+ /**
+ * Resource pkg.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.IPackageResource|null|undefined} pkg
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @instance
+ */
+ Resource.prototype.pkg = null;
+
+ /**
+ * Resource repository.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.IRepositoryResource|null|undefined} repository
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @instance
+ */
+ Resource.prototype.repository = null;
+
+ /**
+ * Resource exec.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.IExecResource|null|undefined} exec
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @instance
+ */
+ Resource.prototype.exec = null;
+
+ /**
+ * Resource file.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.IFileResource|null|undefined} file
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @instance
+ */
+ Resource.prototype.file = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Resource resourceType.
+ * @member {"pkg"|"repository"|"exec"|"file"|undefined} resourceType
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @instance
+ */
+ Object.defineProperty(Resource.prototype, "resourceType", {
+ get: $util.oneOfGetter($oneOfFields = ["pkg", "repository", "exec", "file"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Resource instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.IResource=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource} Resource instance
+ */
+ Resource.create = function create(properties) {
+ return new Resource(properties);
+ };
+
+ /**
+ * Encodes the specified Resource message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.IResource} message Resource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Resource.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.pkg != null && Object.hasOwnProperty.call(message, "pkg"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.encode(message.pkg, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.repository != null && Object.hasOwnProperty.call(message, "repository"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.encode(message.repository, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.exec != null && Object.hasOwnProperty.call(message, "exec"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.encode(message.exec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.file != null && Object.hasOwnProperty.call(message, "file"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.encode(message.file, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Resource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.IResource} message Resource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Resource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Resource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource} Resource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Resource.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.osconfig.v1.OSPolicy.Resource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.id = reader.string();
+ break;
+ }
+ case 2: {
+ message.pkg = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.repository = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.exec = $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.file = $root.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Resource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource} Resource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Resource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Resource message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Resource.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.id != null && message.hasOwnProperty("id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ if (message.pkg != null && message.hasOwnProperty("pkg")) {
+ properties.resourceType = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.verify(message.pkg);
+ if (error)
+ return "pkg." + error;
+ }
+ }
+ if (message.repository != null && message.hasOwnProperty("repository")) {
+ if (properties.resourceType === 1)
+ return "resourceType: multiple values";
+ properties.resourceType = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.verify(message.repository);
+ if (error)
+ return "repository." + error;
+ }
+ }
+ if (message.exec != null && message.hasOwnProperty("exec")) {
+ if (properties.resourceType === 1)
+ return "resourceType: multiple values";
+ properties.resourceType = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.verify(message.exec);
+ if (error)
+ return "exec." + error;
+ }
+ }
+ if (message.file != null && message.hasOwnProperty("file")) {
+ if (properties.resourceType === 1)
+ return "resourceType: multiple values";
+ properties.resourceType = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.verify(message.file);
+ if (error)
+ return "file." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Resource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource} Resource
+ */
+ Resource.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource();
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.pkg != null) {
+ if (typeof object.pkg !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.pkg: object expected");
+ message.pkg = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.fromObject(object.pkg);
+ }
+ if (object.repository != null) {
+ if (typeof object.repository !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.repository: object expected");
+ message.repository = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.fromObject(object.repository);
+ }
+ if (object.exec != null) {
+ if (typeof object.exec !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.exec: object expected");
+ message.exec = $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.fromObject(object.exec);
+ }
+ if (object.file != null) {
+ if (typeof object.file !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.file: object expected");
+ message.file = $root.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.fromObject(object.file);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Resource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource} message Resource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Resource.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.id = "";
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.pkg != null && message.hasOwnProperty("pkg")) {
+ object.pkg = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.toObject(message.pkg, options);
+ if (options.oneofs)
+ object.resourceType = "pkg";
+ }
+ if (message.repository != null && message.hasOwnProperty("repository")) {
+ object.repository = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.toObject(message.repository, options);
+ if (options.oneofs)
+ object.resourceType = "repository";
+ }
+ if (message.exec != null && message.hasOwnProperty("exec")) {
+ object.exec = $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.toObject(message.exec, options);
+ if (options.oneofs)
+ object.resourceType = "exec";
+ }
+ if (message.file != null && message.hasOwnProperty("file")) {
+ object.file = $root.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.toObject(message.file, options);
+ if (options.oneofs)
+ object.resourceType = "file";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Resource to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Resource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Resource
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Resource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource";
+ };
+
+ Resource.File = (function() {
+
+ /**
+ * Properties of a File.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @interface IFile
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.File.IRemote|null} [remote] File remote
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.File.IGcs|null} [gcs] File gcs
+ * @property {string|null} [localPath] File localPath
+ * @property {boolean|null} [allowInsecure] File allowInsecure
+ */
+
+ /**
+ * Constructs a new File.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @classdesc Represents a File.
+ * @implements IFile
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IFile=} [properties] Properties to set
+ */
+ function File(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]];
+ }
+
+ /**
+ * File remote.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.File.IRemote|null|undefined} remote
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @instance
+ */
+ File.prototype.remote = null;
+
+ /**
+ * File gcs.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.File.IGcs|null|undefined} gcs
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @instance
+ */
+ File.prototype.gcs = null;
+
+ /**
+ * File localPath.
+ * @member {string|null|undefined} localPath
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @instance
+ */
+ File.prototype.localPath = null;
+
+ /**
+ * File allowInsecure.
+ * @member {boolean} allowInsecure
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @instance
+ */
+ File.prototype.allowInsecure = false;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * File type.
+ * @member {"remote"|"gcs"|"localPath"|undefined} type
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @instance
+ */
+ Object.defineProperty(File.prototype, "type", {
+ get: $util.oneOfGetter($oneOfFields = ["remote", "gcs", "localPath"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new File instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IFile=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.File} File instance
+ */
+ File.create = function create(properties) {
+ return new File(properties);
+ };
+
+ /**
+ * Encodes the specified File message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.File.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IFile} message File message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ File.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.remote != null && Object.hasOwnProperty.call(message, "remote"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote.encode(message.remote, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs.encode(message.gcs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.localPath != null && Object.hasOwnProperty.call(message, "localPath"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.localPath);
+ if (message.allowInsecure != null && Object.hasOwnProperty.call(message, "allowInsecure"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.allowInsecure);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified File message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.File.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IFile} message File message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ File.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a File message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.File} File
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ File.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.osconfig.v1.OSPolicy.Resource.File();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.remote = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.gcs = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.localPath = reader.string();
+ break;
+ }
+ case 4: {
+ message.allowInsecure = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a File message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.File} File
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ File.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a File message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ File.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.remote != null && message.hasOwnProperty("remote")) {
+ properties.type = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote.verify(message.remote);
+ if (error)
+ return "remote." + error;
+ }
+ }
+ if (message.gcs != null && message.hasOwnProperty("gcs")) {
+ if (properties.type === 1)
+ return "type: multiple values";
+ properties.type = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs.verify(message.gcs);
+ if (error)
+ return "gcs." + error;
+ }
+ }
+ if (message.localPath != null && message.hasOwnProperty("localPath")) {
+ if (properties.type === 1)
+ return "type: multiple values";
+ properties.type = 1;
+ if (!$util.isString(message.localPath))
+ return "localPath: string expected";
+ }
+ if (message.allowInsecure != null && message.hasOwnProperty("allowInsecure"))
+ if (typeof message.allowInsecure !== "boolean")
+ return "allowInsecure: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a File message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.File} File
+ */
+ File.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.File)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.File();
+ if (object.remote != null) {
+ if (typeof object.remote !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.File.remote: object expected");
+ message.remote = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote.fromObject(object.remote);
+ }
+ if (object.gcs != null) {
+ if (typeof object.gcs !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.File.gcs: object expected");
+ message.gcs = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs.fromObject(object.gcs);
+ }
+ if (object.localPath != null)
+ message.localPath = String(object.localPath);
+ if (object.allowInsecure != null)
+ message.allowInsecure = Boolean(object.allowInsecure);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a File message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.File} message File
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ File.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.allowInsecure = false;
+ if (message.remote != null && message.hasOwnProperty("remote")) {
+ object.remote = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote.toObject(message.remote, options);
+ if (options.oneofs)
+ object.type = "remote";
+ }
+ if (message.gcs != null && message.hasOwnProperty("gcs")) {
+ object.gcs = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs.toObject(message.gcs, options);
+ if (options.oneofs)
+ object.type = "gcs";
+ }
+ if (message.localPath != null && message.hasOwnProperty("localPath")) {
+ object.localPath = message.localPath;
+ if (options.oneofs)
+ object.type = "localPath";
+ }
+ if (message.allowInsecure != null && message.hasOwnProperty("allowInsecure"))
+ object.allowInsecure = message.allowInsecure;
+ return object;
+ };
+
+ /**
+ * Converts this File to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ File.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for File
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ File.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.File";
+ };
+
+ File.Remote = (function() {
+
+ /**
+ * Properties of a Remote.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @interface IRemote
+ * @property {string|null} [uri] Remote uri
+ * @property {string|null} [sha256Checksum] Remote sha256Checksum
+ */
+
+ /**
+ * Constructs a new Remote.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @classdesc Represents a Remote.
+ * @implements IRemote
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.File.IRemote=} [properties] Properties to set
+ */
+ function Remote(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]];
+ }
+
+ /**
+ * Remote uri.
+ * @member {string} uri
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
+ * @instance
+ */
+ Remote.prototype.uri = "";
+
+ /**
+ * Remote sha256Checksum.
+ * @member {string} sha256Checksum
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
+ * @instance
+ */
+ Remote.prototype.sha256Checksum = "";
+
+ /**
+ * Creates a new Remote instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.File.IRemote=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote} Remote instance
+ */
+ Remote.create = function create(properties) {
+ return new Remote(properties);
+ };
+
+ /**
+ * Encodes the specified Remote message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.File.IRemote} message Remote message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Remote.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri);
+ if (message.sha256Checksum != null && Object.hasOwnProperty.call(message, "sha256Checksum"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.sha256Checksum);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Remote message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.File.IRemote} message Remote message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Remote.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Remote message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote} Remote
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Remote.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.osconfig.v1.OSPolicy.Resource.File.Remote();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.uri = reader.string();
+ break;
+ }
+ case 2: {
+ message.sha256Checksum = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Remote message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote} Remote
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Remote.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Remote message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Remote.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.uri != null && message.hasOwnProperty("uri"))
+ if (!$util.isString(message.uri))
+ return "uri: string expected";
+ if (message.sha256Checksum != null && message.hasOwnProperty("sha256Checksum"))
+ if (!$util.isString(message.sha256Checksum))
+ return "sha256Checksum: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Remote message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote} Remote
+ */
+ Remote.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote();
+ if (object.uri != null)
+ message.uri = String(object.uri);
+ if (object.sha256Checksum != null)
+ message.sha256Checksum = String(object.sha256Checksum);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Remote message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote} message Remote
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Remote.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.uri = "";
+ object.sha256Checksum = "";
+ }
+ if (message.uri != null && message.hasOwnProperty("uri"))
+ object.uri = message.uri;
+ if (message.sha256Checksum != null && message.hasOwnProperty("sha256Checksum"))
+ object.sha256Checksum = message.sha256Checksum;
+ return object;
+ };
+
+ /**
+ * Converts this Remote to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Remote.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Remote
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Remote.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote";
+ };
+
+ return Remote;
+ })();
+
+ File.Gcs = (function() {
+
+ /**
+ * Properties of a Gcs.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @interface IGcs
+ * @property {string|null} [bucket] Gcs bucket
+ * @property {string|null} [object] Gcs object
+ * @property {number|Long|null} [generation] Gcs generation
+ */
+
+ /**
+ * Constructs a new Gcs.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File
+ * @classdesc Represents a Gcs.
+ * @implements IGcs
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.File.IGcs=} [properties] Properties to set
+ */
+ function Gcs(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]];
+ }
+
+ /**
+ * Gcs bucket.
+ * @member {string} bucket
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @instance
+ */
+ Gcs.prototype.bucket = "";
+
+ /**
+ * Gcs object.
+ * @member {string} object
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @instance
+ */
+ Gcs.prototype.object = "";
+
+ /**
+ * Gcs generation.
+ * @member {number|Long} generation
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @instance
+ */
+ Gcs.prototype.generation = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new Gcs instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.File.IGcs=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs} Gcs instance
+ */
+ Gcs.create = function create(properties) {
+ return new Gcs(properties);
+ };
+
+ /**
+ * Encodes the specified Gcs message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.File.IGcs} message Gcs message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Gcs.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.bucket != null && Object.hasOwnProperty.call(message, "bucket"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.bucket);
+ if (message.object != null && Object.hasOwnProperty.call(message, "object"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.object);
+ if (message.generation != null && Object.hasOwnProperty.call(message, "generation"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.generation);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Gcs message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.File.IGcs} message Gcs message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Gcs.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Gcs message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs} Gcs
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Gcs.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.osconfig.v1.OSPolicy.Resource.File.Gcs();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.bucket = reader.string();
+ break;
+ }
+ case 2: {
+ message.object = reader.string();
+ break;
+ }
+ case 3: {
+ message.generation = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Gcs message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs} Gcs
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Gcs.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Gcs message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Gcs.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.bucket != null && message.hasOwnProperty("bucket"))
+ if (!$util.isString(message.bucket))
+ return "bucket: string expected";
+ if (message.object != null && message.hasOwnProperty("object"))
+ if (!$util.isString(message.object))
+ return "object: string expected";
+ if (message.generation != null && message.hasOwnProperty("generation"))
+ if (!$util.isInteger(message.generation) && !(message.generation && $util.isInteger(message.generation.low) && $util.isInteger(message.generation.high)))
+ return "generation: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a Gcs message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs} Gcs
+ */
+ Gcs.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs();
+ if (object.bucket != null)
+ message.bucket = String(object.bucket);
+ if (object.object != null)
+ message.object = String(object.object);
+ if (object.generation != null)
+ if ($util.Long)
+ (message.generation = $util.Long.fromValue(object.generation)).unsigned = false;
+ else if (typeof object.generation === "string")
+ message.generation = parseInt(object.generation, 10);
+ else if (typeof object.generation === "number")
+ message.generation = object.generation;
+ else if (typeof object.generation === "object")
+ message.generation = new $util.LongBits(object.generation.low >>> 0, object.generation.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Gcs message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs} message Gcs
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Gcs.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.bucket = "";
+ object.object = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.generation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.generation = options.longs === String ? "0" : 0;
+ }
+ if (message.bucket != null && message.hasOwnProperty("bucket"))
+ object.bucket = message.bucket;
+ if (message.object != null && message.hasOwnProperty("object"))
+ object.object = message.object;
+ if (message.generation != null && message.hasOwnProperty("generation"))
+ if (typeof message.generation === "number")
+ object.generation = options.longs === String ? String(message.generation) : message.generation;
+ else
+ object.generation = options.longs === String ? $util.Long.prototype.toString.call(message.generation) : options.longs === Number ? new $util.LongBits(message.generation.low >>> 0, message.generation.high >>> 0).toNumber() : message.generation;
+ return object;
+ };
+
+ /**
+ * Converts this Gcs to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Gcs.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Gcs
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Gcs.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs";
+ };
+
+ return Gcs;
+ })();
+
+ return File;
+ })();
+
+ Resource.PackageResource = (function() {
+
+ /**
+ * Properties of a PackageResource.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @interface IPackageResource
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState|null} [desiredState] PackageResource desiredState
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IAPT|null} [apt] PackageResource apt
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IDeb|null} [deb] PackageResource deb
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IYUM|null} [yum] PackageResource yum
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IZypper|null} [zypper] PackageResource zypper
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IRPM|null} [rpm] PackageResource rpm
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IGooGet|null} [googet] PackageResource googet
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IMSI|null} [msi] PackageResource msi
+ */
+
+ /**
+ * Constructs a new PackageResource.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @classdesc Represents a PackageResource.
+ * @implements IPackageResource
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IPackageResource=} [properties] Properties to set
+ */
+ function PackageResource(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]];
+ }
+
+ /**
+ * PackageResource desiredState.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState} desiredState
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @instance
+ */
+ PackageResource.prototype.desiredState = 0;
+
+ /**
+ * PackageResource apt.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IAPT|null|undefined} apt
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @instance
+ */
+ PackageResource.prototype.apt = null;
+
+ /**
+ * PackageResource deb.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IDeb|null|undefined} deb
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @instance
+ */
+ PackageResource.prototype.deb = null;
+
+ /**
+ * PackageResource yum.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IYUM|null|undefined} yum
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @instance
+ */
+ PackageResource.prototype.yum = null;
+
+ /**
+ * PackageResource zypper.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IZypper|null|undefined} zypper
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @instance
+ */
+ PackageResource.prototype.zypper = null;
+
+ /**
+ * PackageResource rpm.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IRPM|null|undefined} rpm
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @instance
+ */
+ PackageResource.prototype.rpm = null;
+
+ /**
+ * PackageResource googet.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IGooGet|null|undefined} googet
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @instance
+ */
+ PackageResource.prototype.googet = null;
+
+ /**
+ * PackageResource msi.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IMSI|null|undefined} msi
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @instance
+ */
+ PackageResource.prototype.msi = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * PackageResource systemPackage.
+ * @member {"apt"|"deb"|"yum"|"zypper"|"rpm"|"googet"|"msi"|undefined} systemPackage
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @instance
+ */
+ Object.defineProperty(PackageResource.prototype, "systemPackage", {
+ get: $util.oneOfGetter($oneOfFields = ["apt", "deb", "yum", "zypper", "rpm", "googet", "msi"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new PackageResource instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IPackageResource=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource} PackageResource instance
+ */
+ PackageResource.create = function create(properties) {
+ return new PackageResource(properties);
+ };
+
+ /**
+ * Encodes the specified PackageResource message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IPackageResource} message PackageResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PackageResource.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.desiredState != null && Object.hasOwnProperty.call(message, "desiredState"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.desiredState);
+ if (message.apt != null && Object.hasOwnProperty.call(message, "apt"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT.encode(message.apt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.deb != null && Object.hasOwnProperty.call(message, "deb"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb.encode(message.deb, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.yum != null && Object.hasOwnProperty.call(message, "yum"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM.encode(message.yum, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.zypper != null && Object.hasOwnProperty.call(message, "zypper"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper.encode(message.zypper, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.rpm != null && Object.hasOwnProperty.call(message, "rpm"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM.encode(message.rpm, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.googet != null && Object.hasOwnProperty.call(message, "googet"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet.encode(message.googet, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.msi != null && Object.hasOwnProperty.call(message, "msi"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI.encode(message.msi, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PackageResource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IPackageResource} message PackageResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PackageResource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PackageResource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource} PackageResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PackageResource.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.osconfig.v1.OSPolicy.Resource.PackageResource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.desiredState = reader.int32();
+ break;
+ }
+ case 2: {
+ message.apt = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.deb = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.yum = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.zypper = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.rpm = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.googet = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.msi = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PackageResource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource} PackageResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PackageResource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PackageResource message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PackageResource.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.desiredState != null && message.hasOwnProperty("desiredState"))
+ switch (message.desiredState) {
+ default:
+ return "desiredState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.apt != null && message.hasOwnProperty("apt")) {
+ properties.systemPackage = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT.verify(message.apt);
+ if (error)
+ return "apt." + error;
+ }
+ }
+ if (message.deb != null && message.hasOwnProperty("deb")) {
+ if (properties.systemPackage === 1)
+ return "systemPackage: multiple values";
+ properties.systemPackage = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb.verify(message.deb);
+ if (error)
+ return "deb." + error;
+ }
+ }
+ if (message.yum != null && message.hasOwnProperty("yum")) {
+ if (properties.systemPackage === 1)
+ return "systemPackage: multiple values";
+ properties.systemPackage = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM.verify(message.yum);
+ if (error)
+ return "yum." + error;
+ }
+ }
+ if (message.zypper != null && message.hasOwnProperty("zypper")) {
+ if (properties.systemPackage === 1)
+ return "systemPackage: multiple values";
+ properties.systemPackage = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper.verify(message.zypper);
+ if (error)
+ return "zypper." + error;
+ }
+ }
+ if (message.rpm != null && message.hasOwnProperty("rpm")) {
+ if (properties.systemPackage === 1)
+ return "systemPackage: multiple values";
+ properties.systemPackage = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM.verify(message.rpm);
+ if (error)
+ return "rpm." + error;
+ }
+ }
+ if (message.googet != null && message.hasOwnProperty("googet")) {
+ if (properties.systemPackage === 1)
+ return "systemPackage: multiple values";
+ properties.systemPackage = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet.verify(message.googet);
+ if (error)
+ return "googet." + error;
+ }
+ }
+ if (message.msi != null && message.hasOwnProperty("msi")) {
+ if (properties.systemPackage === 1)
+ return "systemPackage: multiple values";
+ properties.systemPackage = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI.verify(message.msi);
+ if (error)
+ return "msi." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a PackageResource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource} PackageResource
+ */
+ PackageResource.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource();
+ switch (object.desiredState) {
+ default:
+ if (typeof object.desiredState === "number") {
+ message.desiredState = object.desiredState;
+ break;
+ }
+ break;
+ case "DESIRED_STATE_UNSPECIFIED":
+ case 0:
+ message.desiredState = 0;
+ break;
+ case "INSTALLED":
+ case 1:
+ message.desiredState = 1;
+ break;
+ case "REMOVED":
+ case 2:
+ message.desiredState = 2;
+ break;
+ }
+ if (object.apt != null) {
+ if (typeof object.apt !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.apt: object expected");
+ message.apt = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT.fromObject(object.apt);
+ }
+ if (object.deb != null) {
+ if (typeof object.deb !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.deb: object expected");
+ message.deb = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb.fromObject(object.deb);
+ }
+ if (object.yum != null) {
+ if (typeof object.yum !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.yum: object expected");
+ message.yum = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM.fromObject(object.yum);
+ }
+ if (object.zypper != null) {
+ if (typeof object.zypper !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.zypper: object expected");
+ message.zypper = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper.fromObject(object.zypper);
+ }
+ if (object.rpm != null) {
+ if (typeof object.rpm !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.rpm: object expected");
+ message.rpm = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM.fromObject(object.rpm);
+ }
+ if (object.googet != null) {
+ if (typeof object.googet !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.googet: object expected");
+ message.googet = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet.fromObject(object.googet);
+ }
+ if (object.msi != null) {
+ if (typeof object.msi !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.msi: object expected");
+ message.msi = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI.fromObject(object.msi);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PackageResource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource} message PackageResource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PackageResource.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.desiredState = options.enums === String ? "DESIRED_STATE_UNSPECIFIED" : 0;
+ if (message.desiredState != null && message.hasOwnProperty("desiredState"))
+ object.desiredState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState[message.desiredState] === undefined ? message.desiredState : $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState[message.desiredState] : message.desiredState;
+ if (message.apt != null && message.hasOwnProperty("apt")) {
+ object.apt = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT.toObject(message.apt, options);
+ if (options.oneofs)
+ object.systemPackage = "apt";
+ }
+ if (message.deb != null && message.hasOwnProperty("deb")) {
+ object.deb = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb.toObject(message.deb, options);
+ if (options.oneofs)
+ object.systemPackage = "deb";
+ }
+ if (message.yum != null && message.hasOwnProperty("yum")) {
+ object.yum = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM.toObject(message.yum, options);
+ if (options.oneofs)
+ object.systemPackage = "yum";
+ }
+ if (message.zypper != null && message.hasOwnProperty("zypper")) {
+ object.zypper = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper.toObject(message.zypper, options);
+ if (options.oneofs)
+ object.systemPackage = "zypper";
+ }
+ if (message.rpm != null && message.hasOwnProperty("rpm")) {
+ object.rpm = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM.toObject(message.rpm, options);
+ if (options.oneofs)
+ object.systemPackage = "rpm";
+ }
+ if (message.googet != null && message.hasOwnProperty("googet")) {
+ object.googet = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet.toObject(message.googet, options);
+ if (options.oneofs)
+ object.systemPackage = "googet";
+ }
+ if (message.msi != null && message.hasOwnProperty("msi")) {
+ object.msi = $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI.toObject(message.msi, options);
+ if (options.oneofs)
+ object.systemPackage = "msi";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this PackageResource to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PackageResource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PackageResource
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PackageResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource";
+ };
+
+ /**
+ * DesiredState enum.
+ * @name google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState
+ * @enum {number}
+ * @property {number} DESIRED_STATE_UNSPECIFIED=0 DESIRED_STATE_UNSPECIFIED value
+ * @property {number} INSTALLED=1 INSTALLED value
+ * @property {number} REMOVED=2 REMOVED value
+ */
+ PackageResource.DesiredState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DESIRED_STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "INSTALLED"] = 1;
+ values[valuesById[2] = "REMOVED"] = 2;
+ return values;
+ })();
+
+ PackageResource.Deb = (function() {
+
+ /**
+ * Properties of a Deb.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @interface IDeb
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null} [source] Deb source
+ * @property {boolean|null} [pullDeps] Deb pullDeps
+ */
+
+ /**
+ * Constructs a new Deb.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @classdesc Represents a Deb.
+ * @implements IDeb
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IDeb=} [properties] Properties to set
+ */
+ function Deb(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]];
+ }
+
+ /**
+ * Deb source.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null|undefined} source
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
+ * @instance
+ */
+ Deb.prototype.source = null;
+
+ /**
+ * Deb pullDeps.
+ * @member {boolean} pullDeps
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
+ * @instance
+ */
+ Deb.prototype.pullDeps = false;
+
+ /**
+ * Creates a new Deb instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IDeb=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb} Deb instance
+ */
+ Deb.create = function create(properties) {
+ return new Deb(properties);
+ };
+
+ /**
+ * Encodes the specified Deb message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IDeb} message Deb message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Deb.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.encode(message.source, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.pullDeps != null && Object.hasOwnProperty.call(message, "pullDeps"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.pullDeps);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Deb message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IDeb} message Deb message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Deb.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Deb message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb} Deb
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Deb.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.osconfig.v1.OSPolicy.Resource.PackageResource.Deb();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.source = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.pullDeps = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Deb message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb} Deb
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Deb.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Deb message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Deb.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.source != null && message.hasOwnProperty("source")) {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.verify(message.source);
+ if (error)
+ return "source." + error;
+ }
+ if (message.pullDeps != null && message.hasOwnProperty("pullDeps"))
+ if (typeof message.pullDeps !== "boolean")
+ return "pullDeps: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a Deb message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb} Deb
+ */
+ Deb.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb();
+ if (object.source != null) {
+ if (typeof object.source !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb.source: object expected");
+ message.source = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.fromObject(object.source);
+ }
+ if (object.pullDeps != null)
+ message.pullDeps = Boolean(object.pullDeps);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Deb message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb} message Deb
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Deb.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.source = null;
+ object.pullDeps = false;
+ }
+ if (message.source != null && message.hasOwnProperty("source"))
+ object.source = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.toObject(message.source, options);
+ if (message.pullDeps != null && message.hasOwnProperty("pullDeps"))
+ object.pullDeps = message.pullDeps;
+ return object;
+ };
+
+ /**
+ * Converts this Deb to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Deb.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Deb
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Deb.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb";
+ };
+
+ return Deb;
+ })();
+
+ PackageResource.APT = (function() {
+
+ /**
+ * Properties of a APT.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @interface IAPT
+ * @property {string|null} [name] APT name
+ */
+
+ /**
+ * Constructs a new APT.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @classdesc Represents a APT.
+ * @implements IAPT
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IAPT=} [properties] Properties to set
+ */
+ function APT(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]];
+ }
+
+ /**
+ * APT name.
+ * @member {string} name
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
+ * @instance
+ */
+ APT.prototype.name = "";
+
+ /**
+ * Creates a new APT instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IAPT=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT} APT instance
+ */
+ APT.create = function create(properties) {
+ return new APT(properties);
+ };
+
+ /**
+ * Encodes the specified APT message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IAPT} message APT message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ APT.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 APT message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IAPT} message APT message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ APT.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a APT message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT} APT
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ APT.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.osconfig.v1.OSPolicy.Resource.PackageResource.APT();
+ 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 APT message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT} APT
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ APT.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a APT message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ APT.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 APT message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT} APT
+ */
+ APT.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a APT message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT} message APT
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ APT.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 APT to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ APT.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for APT
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ APT.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT";
+ };
+
+ return APT;
+ })();
+
+ PackageResource.RPM = (function() {
+
+ /**
+ * Properties of a RPM.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @interface IRPM
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null} [source] RPM source
+ * @property {boolean|null} [pullDeps] RPM pullDeps
+ */
+
+ /**
+ * Constructs a new RPM.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @classdesc Represents a RPM.
+ * @implements IRPM
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IRPM=} [properties] Properties to set
+ */
+ function RPM(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]];
+ }
+
+ /**
+ * RPM source.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null|undefined} source
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
+ * @instance
+ */
+ RPM.prototype.source = null;
+
+ /**
+ * RPM pullDeps.
+ * @member {boolean} pullDeps
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
+ * @instance
+ */
+ RPM.prototype.pullDeps = false;
+
+ /**
+ * Creates a new RPM instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IRPM=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM} RPM instance
+ */
+ RPM.create = function create(properties) {
+ return new RPM(properties);
+ };
+
+ /**
+ * Encodes the specified RPM message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IRPM} message RPM message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RPM.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.encode(message.source, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.pullDeps != null && Object.hasOwnProperty.call(message, "pullDeps"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.pullDeps);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RPM message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IRPM} message RPM message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RPM.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RPM message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM} RPM
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RPM.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.osconfig.v1.OSPolicy.Resource.PackageResource.RPM();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.source = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.pullDeps = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RPM message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM} RPM
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RPM.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RPM message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RPM.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.source != null && message.hasOwnProperty("source")) {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.verify(message.source);
+ if (error)
+ return "source." + error;
+ }
+ if (message.pullDeps != null && message.hasOwnProperty("pullDeps"))
+ if (typeof message.pullDeps !== "boolean")
+ return "pullDeps: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a RPM message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM} RPM
+ */
+ RPM.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM();
+ if (object.source != null) {
+ if (typeof object.source !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM.source: object expected");
+ message.source = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.fromObject(object.source);
+ }
+ if (object.pullDeps != null)
+ message.pullDeps = Boolean(object.pullDeps);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RPM message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM} message RPM
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RPM.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.source = null;
+ object.pullDeps = false;
+ }
+ if (message.source != null && message.hasOwnProperty("source"))
+ object.source = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.toObject(message.source, options);
+ if (message.pullDeps != null && message.hasOwnProperty("pullDeps"))
+ object.pullDeps = message.pullDeps;
+ return object;
+ };
+
+ /**
+ * Converts this RPM to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RPM.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RPM
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RPM.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM";
+ };
+
+ return RPM;
+ })();
+
+ PackageResource.YUM = (function() {
+
+ /**
+ * Properties of a YUM.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @interface IYUM
+ * @property {string|null} [name] YUM name
+ */
+
+ /**
+ * Constructs a new YUM.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @classdesc Represents a YUM.
+ * @implements IYUM
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IYUM=} [properties] Properties to set
+ */
+ function YUM(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]];
+ }
+
+ /**
+ * YUM name.
+ * @member {string} name
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
+ * @instance
+ */
+ YUM.prototype.name = "";
+
+ /**
+ * Creates a new YUM instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IYUM=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM} YUM instance
+ */
+ YUM.create = function create(properties) {
+ return new YUM(properties);
+ };
+
+ /**
+ * Encodes the specified YUM message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IYUM} message YUM message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ YUM.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 YUM message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IYUM} message YUM message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ YUM.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a YUM message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM} YUM
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ YUM.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.osconfig.v1.OSPolicy.Resource.PackageResource.YUM();
+ 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 YUM message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM} YUM
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ YUM.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a YUM message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ YUM.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 YUM message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM} YUM
+ */
+ YUM.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a YUM message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM} message YUM
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ YUM.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 YUM to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ YUM.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for YUM
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ YUM.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM";
+ };
+
+ return YUM;
+ })();
+
+ PackageResource.Zypper = (function() {
+
+ /**
+ * Properties of a Zypper.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @interface IZypper
+ * @property {string|null} [name] Zypper name
+ */
+
+ /**
+ * Constructs a new Zypper.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @classdesc Represents a Zypper.
+ * @implements IZypper
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IZypper=} [properties] Properties to set
+ */
+ function Zypper(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]];
+ }
+
+ /**
+ * Zypper name.
+ * @member {string} name
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
+ * @instance
+ */
+ Zypper.prototype.name = "";
+
+ /**
+ * Creates a new Zypper instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IZypper=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper} Zypper instance
+ */
+ Zypper.create = function create(properties) {
+ return new Zypper(properties);
+ };
+
+ /**
+ * Encodes the specified Zypper message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IZypper} message Zypper message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Zypper.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 Zypper message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IZypper} message Zypper message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Zypper.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Zypper message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper} Zypper
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Zypper.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.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper();
+ 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 Zypper message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper} Zypper
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Zypper.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Zypper message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Zypper.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 Zypper message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper} Zypper
+ */
+ Zypper.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Zypper message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper} message Zypper
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Zypper.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 Zypper to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Zypper.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Zypper
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Zypper.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper";
+ };
+
+ return Zypper;
+ })();
+
+ PackageResource.GooGet = (function() {
+
+ /**
+ * Properties of a GooGet.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @interface IGooGet
+ * @property {string|null} [name] GooGet name
+ */
+
+ /**
+ * Constructs a new GooGet.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @classdesc Represents a GooGet.
+ * @implements IGooGet
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IGooGet=} [properties] Properties to set
+ */
+ function GooGet(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]];
+ }
+
+ /**
+ * GooGet name.
+ * @member {string} name
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
+ * @instance
+ */
+ GooGet.prototype.name = "";
+
+ /**
+ * Creates a new GooGet instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IGooGet=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet} GooGet instance
+ */
+ GooGet.create = function create(properties) {
+ return new GooGet(properties);
+ };
+
+ /**
+ * Encodes the specified GooGet message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IGooGet} message GooGet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GooGet.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 GooGet message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IGooGet} message GooGet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GooGet.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GooGet message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet} GooGet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GooGet.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.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet();
+ 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 GooGet message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet} GooGet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GooGet.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GooGet message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GooGet.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 GooGet message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet} GooGet
+ */
+ GooGet.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GooGet message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet} message GooGet
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GooGet.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 GooGet to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GooGet.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GooGet
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GooGet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet";
+ };
+
+ return GooGet;
+ })();
+
+ PackageResource.MSI = (function() {
+
+ /**
+ * Properties of a MSI.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @interface IMSI
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null} [source] MSI source
+ * @property {Array.|null} [properties] MSI properties
+ */
+
+ /**
+ * Constructs a new MSI.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
+ * @classdesc Represents a MSI.
+ * @implements IMSI
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IMSI=} [properties] Properties to set
+ */
+ function MSI(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]];
+ }
+
+ /**
+ * MSI source.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null|undefined} source
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
+ * @instance
+ */
+ MSI.prototype.source = null;
+
+ /**
+ * MSI properties.
+ * @member {Array.} properties
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
+ * @instance
+ */
+ MSI.prototype.properties = $util.emptyArray;
+
+ /**
+ * Creates a new MSI instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IMSI=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI} MSI instance
+ */
+ MSI.create = function create(properties) {
+ return new MSI(properties);
+ };
+
+ /**
+ * Encodes the specified MSI message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IMSI} message MSI message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MSI.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.encode(message.source, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.properties != null && message.properties.length)
+ for (var i = 0; i < message.properties.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.properties[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MSI message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.IMSI} message MSI message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MSI.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MSI message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI} MSI
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MSI.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.osconfig.v1.OSPolicy.Resource.PackageResource.MSI();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.source = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ if (!(message.properties && message.properties.length))
+ message.properties = [];
+ message.properties.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MSI message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI} MSI
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MSI.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MSI message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MSI.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.source != null && message.hasOwnProperty("source")) {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.verify(message.source);
+ if (error)
+ return "source." + error;
+ }
+ if (message.properties != null && message.hasOwnProperty("properties")) {
+ if (!Array.isArray(message.properties))
+ return "properties: array expected";
+ for (var i = 0; i < message.properties.length; ++i)
+ if (!$util.isString(message.properties[i]))
+ return "properties: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a MSI message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI} MSI
+ */
+ MSI.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI();
+ if (object.source != null) {
+ if (typeof object.source !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI.source: object expected");
+ message.source = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.fromObject(object.source);
+ }
+ if (object.properties) {
+ if (!Array.isArray(object.properties))
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI.properties: array expected");
+ message.properties = [];
+ for (var i = 0; i < object.properties.length; ++i)
+ message.properties[i] = String(object.properties[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MSI message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI} message MSI
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MSI.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.properties = [];
+ if (options.defaults)
+ object.source = null;
+ if (message.source != null && message.hasOwnProperty("source"))
+ object.source = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.toObject(message.source, options);
+ if (message.properties && message.properties.length) {
+ object.properties = [];
+ for (var j = 0; j < message.properties.length; ++j)
+ object.properties[j] = message.properties[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this MSI to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MSI.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MSI
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MSI.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI";
+ };
+
+ return MSI;
+ })();
+
+ return PackageResource;
+ })();
+
+ Resource.RepositoryResource = (function() {
+
+ /**
+ * Properties of a RepositoryResource.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @interface IRepositoryResource
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IAptRepository|null} [apt] RepositoryResource apt
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IYumRepository|null} [yum] RepositoryResource yum
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IZypperRepository|null} [zypper] RepositoryResource zypper
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IGooRepository|null} [goo] RepositoryResource goo
+ */
+
+ /**
+ * Constructs a new RepositoryResource.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @classdesc Represents a RepositoryResource.
+ * @implements IRepositoryResource
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IRepositoryResource=} [properties] Properties to set
+ */
+ function RepositoryResource(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]];
+ }
+
+ /**
+ * RepositoryResource apt.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IAptRepository|null|undefined} apt
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @instance
+ */
+ RepositoryResource.prototype.apt = null;
+
+ /**
+ * RepositoryResource yum.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IYumRepository|null|undefined} yum
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @instance
+ */
+ RepositoryResource.prototype.yum = null;
+
+ /**
+ * RepositoryResource zypper.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IZypperRepository|null|undefined} zypper
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @instance
+ */
+ RepositoryResource.prototype.zypper = null;
+
+ /**
+ * RepositoryResource goo.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IGooRepository|null|undefined} goo
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @instance
+ */
+ RepositoryResource.prototype.goo = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * RepositoryResource repository.
+ * @member {"apt"|"yum"|"zypper"|"goo"|undefined} repository
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @instance
+ */
+ Object.defineProperty(RepositoryResource.prototype, "repository", {
+ get: $util.oneOfGetter($oneOfFields = ["apt", "yum", "zypper", "goo"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new RepositoryResource instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IRepositoryResource=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource} RepositoryResource instance
+ */
+ RepositoryResource.create = function create(properties) {
+ return new RepositoryResource(properties);
+ };
+
+ /**
+ * Encodes the specified RepositoryResource message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IRepositoryResource} message RepositoryResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RepositoryResource.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.apt != null && Object.hasOwnProperty.call(message, "apt"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.encode(message.apt, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.yum != null && Object.hasOwnProperty.call(message, "yum"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository.encode(message.yum, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.zypper != null && Object.hasOwnProperty.call(message, "zypper"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository.encode(message.zypper, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.goo != null && Object.hasOwnProperty.call(message, "goo"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository.encode(message.goo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RepositoryResource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IRepositoryResource} message RepositoryResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RepositoryResource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RepositoryResource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource} RepositoryResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RepositoryResource.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.osconfig.v1.OSPolicy.Resource.RepositoryResource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.apt = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.yum = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.zypper = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.goo = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RepositoryResource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource} RepositoryResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RepositoryResource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RepositoryResource message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RepositoryResource.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.apt != null && message.hasOwnProperty("apt")) {
+ properties.repository = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.verify(message.apt);
+ if (error)
+ return "apt." + error;
+ }
+ }
+ if (message.yum != null && message.hasOwnProperty("yum")) {
+ if (properties.repository === 1)
+ return "repository: multiple values";
+ properties.repository = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository.verify(message.yum);
+ if (error)
+ return "yum." + error;
+ }
+ }
+ if (message.zypper != null && message.hasOwnProperty("zypper")) {
+ if (properties.repository === 1)
+ return "repository: multiple values";
+ properties.repository = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository.verify(message.zypper);
+ if (error)
+ return "zypper." + error;
+ }
+ }
+ if (message.goo != null && message.hasOwnProperty("goo")) {
+ if (properties.repository === 1)
+ return "repository: multiple values";
+ properties.repository = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository.verify(message.goo);
+ if (error)
+ return "goo." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a RepositoryResource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource} RepositoryResource
+ */
+ RepositoryResource.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource();
+ if (object.apt != null) {
+ if (typeof object.apt !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.apt: object expected");
+ message.apt = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.fromObject(object.apt);
+ }
+ if (object.yum != null) {
+ if (typeof object.yum !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.yum: object expected");
+ message.yum = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository.fromObject(object.yum);
+ }
+ if (object.zypper != null) {
+ if (typeof object.zypper !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.zypper: object expected");
+ message.zypper = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository.fromObject(object.zypper);
+ }
+ if (object.goo != null) {
+ if (typeof object.goo !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.goo: object expected");
+ message.goo = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository.fromObject(object.goo);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RepositoryResource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource} message RepositoryResource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RepositoryResource.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.apt != null && message.hasOwnProperty("apt")) {
+ object.apt = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.toObject(message.apt, options);
+ if (options.oneofs)
+ object.repository = "apt";
+ }
+ if (message.yum != null && message.hasOwnProperty("yum")) {
+ object.yum = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository.toObject(message.yum, options);
+ if (options.oneofs)
+ object.repository = "yum";
+ }
+ if (message.zypper != null && message.hasOwnProperty("zypper")) {
+ object.zypper = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository.toObject(message.zypper, options);
+ if (options.oneofs)
+ object.repository = "zypper";
+ }
+ if (message.goo != null && message.hasOwnProperty("goo")) {
+ object.goo = $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository.toObject(message.goo, options);
+ if (options.oneofs)
+ object.repository = "goo";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this RepositoryResource to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RepositoryResource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RepositoryResource
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RepositoryResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource";
+ };
+
+ RepositoryResource.AptRepository = (function() {
+
+ /**
+ * Properties of an AptRepository.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @interface IAptRepository
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType|null} [archiveType] AptRepository archiveType
+ * @property {string|null} [uri] AptRepository uri
+ * @property {string|null} [distribution] AptRepository distribution
+ * @property {Array.|null} [components] AptRepository components
+ * @property {string|null} [gpgKey] AptRepository gpgKey
+ */
+
+ /**
+ * Constructs a new AptRepository.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @classdesc Represents an AptRepository.
+ * @implements IAptRepository
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IAptRepository=} [properties] Properties to set
+ */
+ function AptRepository(properties) {
+ this.components = [];
+ 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]];
+ }
+
+ /**
+ * AptRepository archiveType.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType} archiveType
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @instance
+ */
+ AptRepository.prototype.archiveType = 0;
+
+ /**
+ * AptRepository uri.
+ * @member {string} uri
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @instance
+ */
+ AptRepository.prototype.uri = "";
+
+ /**
+ * AptRepository distribution.
+ * @member {string} distribution
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @instance
+ */
+ AptRepository.prototype.distribution = "";
+
+ /**
+ * AptRepository components.
+ * @member {Array.} components
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @instance
+ */
+ AptRepository.prototype.components = $util.emptyArray;
+
+ /**
+ * AptRepository gpgKey.
+ * @member {string} gpgKey
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @instance
+ */
+ AptRepository.prototype.gpgKey = "";
+
+ /**
+ * Creates a new AptRepository instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IAptRepository=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository} AptRepository instance
+ */
+ AptRepository.create = function create(properties) {
+ return new AptRepository(properties);
+ };
+
+ /**
+ * Encodes the specified AptRepository message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IAptRepository} message AptRepository message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AptRepository.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.archiveType != null && Object.hasOwnProperty.call(message, "archiveType"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.archiveType);
+ if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri);
+ if (message.distribution != null && Object.hasOwnProperty.call(message, "distribution"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.distribution);
+ if (message.components != null && message.components.length)
+ for (var i = 0; i < message.components.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.components[i]);
+ if (message.gpgKey != null && Object.hasOwnProperty.call(message, "gpgKey"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.gpgKey);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AptRepository message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IAptRepository} message AptRepository message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AptRepository.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AptRepository message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository} AptRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AptRepository.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.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.archiveType = reader.int32();
+ break;
+ }
+ case 2: {
+ message.uri = reader.string();
+ break;
+ }
+ case 3: {
+ message.distribution = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.components && message.components.length))
+ message.components = [];
+ message.components.push(reader.string());
+ break;
+ }
+ case 5: {
+ message.gpgKey = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AptRepository message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository} AptRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AptRepository.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AptRepository message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AptRepository.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.archiveType != null && message.hasOwnProperty("archiveType"))
+ switch (message.archiveType) {
+ default:
+ return "archiveType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.uri != null && message.hasOwnProperty("uri"))
+ if (!$util.isString(message.uri))
+ return "uri: string expected";
+ if (message.distribution != null && message.hasOwnProperty("distribution"))
+ if (!$util.isString(message.distribution))
+ return "distribution: string expected";
+ if (message.components != null && message.hasOwnProperty("components")) {
+ if (!Array.isArray(message.components))
+ return "components: array expected";
+ for (var i = 0; i < message.components.length; ++i)
+ if (!$util.isString(message.components[i]))
+ return "components: string[] expected";
+ }
+ if (message.gpgKey != null && message.hasOwnProperty("gpgKey"))
+ if (!$util.isString(message.gpgKey))
+ return "gpgKey: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an AptRepository message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository} AptRepository
+ */
+ AptRepository.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository();
+ switch (object.archiveType) {
+ default:
+ if (typeof object.archiveType === "number") {
+ message.archiveType = object.archiveType;
+ break;
+ }
+ break;
+ case "ARCHIVE_TYPE_UNSPECIFIED":
+ case 0:
+ message.archiveType = 0;
+ break;
+ case "DEB":
+ case 1:
+ message.archiveType = 1;
+ break;
+ case "DEB_SRC":
+ case 2:
+ message.archiveType = 2;
+ break;
+ }
+ if (object.uri != null)
+ message.uri = String(object.uri);
+ if (object.distribution != null)
+ message.distribution = String(object.distribution);
+ if (object.components) {
+ if (!Array.isArray(object.components))
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.components: array expected");
+ message.components = [];
+ for (var i = 0; i < object.components.length; ++i)
+ message.components[i] = String(object.components[i]);
+ }
+ if (object.gpgKey != null)
+ message.gpgKey = String(object.gpgKey);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AptRepository message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository} message AptRepository
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AptRepository.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.components = [];
+ if (options.defaults) {
+ object.archiveType = options.enums === String ? "ARCHIVE_TYPE_UNSPECIFIED" : 0;
+ object.uri = "";
+ object.distribution = "";
+ object.gpgKey = "";
+ }
+ if (message.archiveType != null && message.hasOwnProperty("archiveType"))
+ object.archiveType = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType[message.archiveType] === undefined ? message.archiveType : $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType[message.archiveType] : message.archiveType;
+ if (message.uri != null && message.hasOwnProperty("uri"))
+ object.uri = message.uri;
+ if (message.distribution != null && message.hasOwnProperty("distribution"))
+ object.distribution = message.distribution;
+ if (message.components && message.components.length) {
+ object.components = [];
+ for (var j = 0; j < message.components.length; ++j)
+ object.components[j] = message.components[j];
+ }
+ if (message.gpgKey != null && message.hasOwnProperty("gpgKey"))
+ object.gpgKey = message.gpgKey;
+ return object;
+ };
+
+ /**
+ * Converts this AptRepository to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AptRepository.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AptRepository
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AptRepository.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository";
+ };
+
+ /**
+ * ArchiveType enum.
+ * @name google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType
+ * @enum {number}
+ * @property {number} ARCHIVE_TYPE_UNSPECIFIED=0 ARCHIVE_TYPE_UNSPECIFIED value
+ * @property {number} DEB=1 DEB value
+ * @property {number} DEB_SRC=2 DEB_SRC value
+ */
+ AptRepository.ArchiveType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ARCHIVE_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "DEB"] = 1;
+ values[valuesById[2] = "DEB_SRC"] = 2;
+ return values;
+ })();
+
+ return AptRepository;
+ })();
+
+ RepositoryResource.YumRepository = (function() {
+
+ /**
+ * Properties of a YumRepository.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @interface IYumRepository
+ * @property {string|null} [id] YumRepository id
+ * @property {string|null} [displayName] YumRepository displayName
+ * @property {string|null} [baseUrl] YumRepository baseUrl
+ * @property {Array.|null} [gpgKeys] YumRepository gpgKeys
+ */
+
+ /**
+ * Constructs a new YumRepository.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @classdesc Represents a YumRepository.
+ * @implements IYumRepository
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IYumRepository=} [properties] Properties to set
+ */
+ function YumRepository(properties) {
+ this.gpgKeys = [];
+ 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]];
+ }
+
+ /**
+ * YumRepository id.
+ * @member {string} id
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @instance
+ */
+ YumRepository.prototype.id = "";
+
+ /**
+ * YumRepository displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @instance
+ */
+ YumRepository.prototype.displayName = "";
+
+ /**
+ * YumRepository baseUrl.
+ * @member {string} baseUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @instance
+ */
+ YumRepository.prototype.baseUrl = "";
+
+ /**
+ * YumRepository gpgKeys.
+ * @member {Array.} gpgKeys
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @instance
+ */
+ YumRepository.prototype.gpgKeys = $util.emptyArray;
+
+ /**
+ * Creates a new YumRepository instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IYumRepository=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository} YumRepository instance
+ */
+ YumRepository.create = function create(properties) {
+ return new YumRepository(properties);
+ };
+
+ /**
+ * Encodes the specified YumRepository message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IYumRepository} message YumRepository message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ YumRepository.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.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.baseUrl != null && Object.hasOwnProperty.call(message, "baseUrl"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.baseUrl);
+ if (message.gpgKeys != null && message.gpgKeys.length)
+ for (var i = 0; i < message.gpgKeys.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.gpgKeys[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified YumRepository message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IYumRepository} message YumRepository message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ YumRepository.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a YumRepository message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository} YumRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ YumRepository.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.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.id = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.baseUrl = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.gpgKeys && message.gpgKeys.length))
+ message.gpgKeys = [];
+ message.gpgKeys.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a YumRepository message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository} YumRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ YumRepository.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a YumRepository message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ YumRepository.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.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.baseUrl != null && message.hasOwnProperty("baseUrl"))
+ if (!$util.isString(message.baseUrl))
+ return "baseUrl: string expected";
+ if (message.gpgKeys != null && message.hasOwnProperty("gpgKeys")) {
+ if (!Array.isArray(message.gpgKeys))
+ return "gpgKeys: array expected";
+ for (var i = 0; i < message.gpgKeys.length; ++i)
+ if (!$util.isString(message.gpgKeys[i]))
+ return "gpgKeys: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a YumRepository message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository} YumRepository
+ */
+ YumRepository.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository();
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.baseUrl != null)
+ message.baseUrl = String(object.baseUrl);
+ if (object.gpgKeys) {
+ if (!Array.isArray(object.gpgKeys))
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository.gpgKeys: array expected");
+ message.gpgKeys = [];
+ for (var i = 0; i < object.gpgKeys.length; ++i)
+ message.gpgKeys[i] = String(object.gpgKeys[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a YumRepository message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository} message YumRepository
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ YumRepository.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.gpgKeys = [];
+ if (options.defaults) {
+ object.id = "";
+ object.displayName = "";
+ object.baseUrl = "";
+ }
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.baseUrl != null && message.hasOwnProperty("baseUrl"))
+ object.baseUrl = message.baseUrl;
+ if (message.gpgKeys && message.gpgKeys.length) {
+ object.gpgKeys = [];
+ for (var j = 0; j < message.gpgKeys.length; ++j)
+ object.gpgKeys[j] = message.gpgKeys[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this YumRepository to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ YumRepository.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for YumRepository
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ YumRepository.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository";
+ };
+
+ return YumRepository;
+ })();
+
+ RepositoryResource.ZypperRepository = (function() {
+
+ /**
+ * Properties of a ZypperRepository.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @interface IZypperRepository
+ * @property {string|null} [id] ZypperRepository id
+ * @property {string|null} [displayName] ZypperRepository displayName
+ * @property {string|null} [baseUrl] ZypperRepository baseUrl
+ * @property {Array.|null} [gpgKeys] ZypperRepository gpgKeys
+ */
+
+ /**
+ * Constructs a new ZypperRepository.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @classdesc Represents a ZypperRepository.
+ * @implements IZypperRepository
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IZypperRepository=} [properties] Properties to set
+ */
+ function ZypperRepository(properties) {
+ this.gpgKeys = [];
+ 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]];
+ }
+
+ /**
+ * ZypperRepository id.
+ * @member {string} id
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @instance
+ */
+ ZypperRepository.prototype.id = "";
+
+ /**
+ * ZypperRepository displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @instance
+ */
+ ZypperRepository.prototype.displayName = "";
+
+ /**
+ * ZypperRepository baseUrl.
+ * @member {string} baseUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @instance
+ */
+ ZypperRepository.prototype.baseUrl = "";
+
+ /**
+ * ZypperRepository gpgKeys.
+ * @member {Array.} gpgKeys
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @instance
+ */
+ ZypperRepository.prototype.gpgKeys = $util.emptyArray;
+
+ /**
+ * Creates a new ZypperRepository instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IZypperRepository=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository} ZypperRepository instance
+ */
+ ZypperRepository.create = function create(properties) {
+ return new ZypperRepository(properties);
+ };
+
+ /**
+ * Encodes the specified ZypperRepository message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IZypperRepository} message ZypperRepository message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ZypperRepository.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.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.baseUrl != null && Object.hasOwnProperty.call(message, "baseUrl"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.baseUrl);
+ if (message.gpgKeys != null && message.gpgKeys.length)
+ for (var i = 0; i < message.gpgKeys.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.gpgKeys[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ZypperRepository message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IZypperRepository} message ZypperRepository message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ZypperRepository.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ZypperRepository message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository} ZypperRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ZypperRepository.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.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.id = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.baseUrl = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.gpgKeys && message.gpgKeys.length))
+ message.gpgKeys = [];
+ message.gpgKeys.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ZypperRepository message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository} ZypperRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ZypperRepository.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ZypperRepository message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ZypperRepository.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.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.baseUrl != null && message.hasOwnProperty("baseUrl"))
+ if (!$util.isString(message.baseUrl))
+ return "baseUrl: string expected";
+ if (message.gpgKeys != null && message.hasOwnProperty("gpgKeys")) {
+ if (!Array.isArray(message.gpgKeys))
+ return "gpgKeys: array expected";
+ for (var i = 0; i < message.gpgKeys.length; ++i)
+ if (!$util.isString(message.gpgKeys[i]))
+ return "gpgKeys: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ZypperRepository message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository} ZypperRepository
+ */
+ ZypperRepository.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository();
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.baseUrl != null)
+ message.baseUrl = String(object.baseUrl);
+ if (object.gpgKeys) {
+ if (!Array.isArray(object.gpgKeys))
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository.gpgKeys: array expected");
+ message.gpgKeys = [];
+ for (var i = 0; i < object.gpgKeys.length; ++i)
+ message.gpgKeys[i] = String(object.gpgKeys[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ZypperRepository message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository} message ZypperRepository
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ZypperRepository.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.gpgKeys = [];
+ if (options.defaults) {
+ object.id = "";
+ object.displayName = "";
+ object.baseUrl = "";
+ }
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.baseUrl != null && message.hasOwnProperty("baseUrl"))
+ object.baseUrl = message.baseUrl;
+ if (message.gpgKeys && message.gpgKeys.length) {
+ object.gpgKeys = [];
+ for (var j = 0; j < message.gpgKeys.length; ++j)
+ object.gpgKeys[j] = message.gpgKeys[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ZypperRepository to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ZypperRepository.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ZypperRepository
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ZypperRepository.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository";
+ };
+
+ return ZypperRepository;
+ })();
+
+ RepositoryResource.GooRepository = (function() {
+
+ /**
+ * Properties of a GooRepository.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @interface IGooRepository
+ * @property {string|null} [name] GooRepository name
+ * @property {string|null} [url] GooRepository url
+ */
+
+ /**
+ * Constructs a new GooRepository.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
+ * @classdesc Represents a GooRepository.
+ * @implements IGooRepository
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IGooRepository=} [properties] Properties to set
+ */
+ function GooRepository(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]];
+ }
+
+ /**
+ * GooRepository name.
+ * @member {string} name
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
+ * @instance
+ */
+ GooRepository.prototype.name = "";
+
+ /**
+ * GooRepository url.
+ * @member {string} url
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
+ * @instance
+ */
+ GooRepository.prototype.url = "";
+
+ /**
+ * Creates a new GooRepository instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IGooRepository=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository} GooRepository instance
+ */
+ GooRepository.create = function create(properties) {
+ return new GooRepository(properties);
+ };
+
+ /**
+ * Encodes the specified GooRepository message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IGooRepository} message GooRepository message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GooRepository.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.url != null && Object.hasOwnProperty.call(message, "url"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GooRepository message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.IGooRepository} message GooRepository message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GooRepository.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GooRepository message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository} GooRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GooRepository.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.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.url = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GooRepository message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository} GooRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GooRepository.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GooRepository message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GooRepository.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.url != null && message.hasOwnProperty("url"))
+ if (!$util.isString(message.url))
+ return "url: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GooRepository message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository} GooRepository
+ */
+ GooRepository.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.url != null)
+ message.url = String(object.url);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GooRepository message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository} message GooRepository
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GooRepository.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.url = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.url != null && message.hasOwnProperty("url"))
+ object.url = message.url;
+ return object;
+ };
+
+ /**
+ * Converts this GooRepository to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GooRepository.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GooRepository
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GooRepository.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository";
+ };
+
+ return GooRepository;
+ })();
+
+ return RepositoryResource;
+ })();
+
+ Resource.ExecResource = (function() {
+
+ /**
+ * Properties of an ExecResource.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @interface IExecResource
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec|null} [validate] ExecResource validate
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec|null} [enforce] ExecResource enforce
+ */
+
+ /**
+ * Constructs a new ExecResource.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @classdesc Represents an ExecResource.
+ * @implements IExecResource
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IExecResource=} [properties] Properties to set
+ */
+ function ExecResource(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]];
+ }
+
+ /**
+ * ExecResource validate.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec|null|undefined} validate
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @instance
+ */
+ ExecResource.prototype.validate = null;
+
+ /**
+ * ExecResource enforce.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec|null|undefined} enforce
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @instance
+ */
+ ExecResource.prototype.enforce = null;
+
+ /**
+ * Creates a new ExecResource instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IExecResource=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource} ExecResource instance
+ */
+ ExecResource.create = function create(properties) {
+ return new ExecResource(properties);
+ };
+
+ /**
+ * Encodes the specified ExecResource message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IExecResource} message ExecResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExecResource.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.validate != null && Object.hasOwnProperty.call(message, "validate"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.encode(message.validate, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.enforce != null && Object.hasOwnProperty.call(message, "enforce"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.encode(message.enforce, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ExecResource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IExecResource} message ExecResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExecResource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ExecResource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource} ExecResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExecResource.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.osconfig.v1.OSPolicy.Resource.ExecResource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.validate = $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.enforce = $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ExecResource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource} ExecResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExecResource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ExecResource message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ExecResource.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.validate != null && message.hasOwnProperty("validate")) {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.verify(message.validate);
+ if (error)
+ return "validate." + error;
+ }
+ if (message.enforce != null && message.hasOwnProperty("enforce")) {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.verify(message.enforce);
+ if (error)
+ return "enforce." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ExecResource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource} ExecResource
+ */
+ ExecResource.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource();
+ if (object.validate != null) {
+ if (typeof object.validate !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.validate: object expected");
+ message.validate = $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.fromObject(object.validate);
+ }
+ if (object.enforce != null) {
+ if (typeof object.enforce !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.enforce: object expected");
+ message.enforce = $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.fromObject(object.enforce);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ExecResource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource} message ExecResource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ExecResource.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.validate = null;
+ object.enforce = null;
+ }
+ if (message.validate != null && message.hasOwnProperty("validate"))
+ object.validate = $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.toObject(message.validate, options);
+ if (message.enforce != null && message.hasOwnProperty("enforce"))
+ object.enforce = $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.toObject(message.enforce, options);
+ return object;
+ };
+
+ /**
+ * Converts this ExecResource to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ExecResource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ExecResource
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ExecResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource";
+ };
+
+ ExecResource.Exec = (function() {
+
+ /**
+ * Properties of an Exec.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @interface IExec
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null} [file] Exec file
+ * @property {string|null} [script] Exec script
+ * @property {Array.|null} [args] Exec args
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter|null} [interpreter] Exec interpreter
+ * @property {string|null} [outputFilePath] Exec outputFilePath
+ */
+
+ /**
+ * Constructs a new Exec.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
+ * @classdesc Represents an Exec.
+ * @implements IExec
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec=} [properties] Properties to set
+ */
+ function Exec(properties) {
+ this.args = [];
+ 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]];
+ }
+
+ /**
+ * Exec file.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null|undefined} file
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @instance
+ */
+ Exec.prototype.file = null;
+
+ /**
+ * Exec script.
+ * @member {string|null|undefined} script
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @instance
+ */
+ Exec.prototype.script = null;
+
+ /**
+ * Exec args.
+ * @member {Array.} args
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @instance
+ */
+ Exec.prototype.args = $util.emptyArray;
+
+ /**
+ * Exec interpreter.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter} interpreter
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @instance
+ */
+ Exec.prototype.interpreter = 0;
+
+ /**
+ * Exec outputFilePath.
+ * @member {string} outputFilePath
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @instance
+ */
+ Exec.prototype.outputFilePath = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Exec source.
+ * @member {"file"|"script"|undefined} source
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @instance
+ */
+ Object.defineProperty(Exec.prototype, "source", {
+ get: $util.oneOfGetter($oneOfFields = ["file", "script"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Exec instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec} Exec instance
+ */
+ Exec.create = function create(properties) {
+ return new Exec(properties);
+ };
+
+ /**
+ * Encodes the specified Exec message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec} message Exec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Exec.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.file != null && Object.hasOwnProperty.call(message, "file"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.encode(message.file, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.script != null && Object.hasOwnProperty.call(message, "script"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.script);
+ if (message.args != null && message.args.length)
+ for (var i = 0; i < message.args.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.args[i]);
+ if (message.interpreter != null && Object.hasOwnProperty.call(message, "interpreter"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.interpreter);
+ if (message.outputFilePath != null && Object.hasOwnProperty.call(message, "outputFilePath"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.outputFilePath);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Exec message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.IExec} message Exec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Exec.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Exec message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec} Exec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Exec.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.osconfig.v1.OSPolicy.Resource.ExecResource.Exec();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.file = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.script = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.args && message.args.length))
+ message.args = [];
+ message.args.push(reader.string());
+ break;
+ }
+ case 4: {
+ message.interpreter = reader.int32();
+ break;
+ }
+ case 5: {
+ message.outputFilePath = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Exec message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec} Exec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Exec.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Exec message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Exec.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.file != null && message.hasOwnProperty("file")) {
+ properties.source = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.verify(message.file);
+ if (error)
+ return "file." + error;
+ }
+ }
+ if (message.script != null && message.hasOwnProperty("script")) {
+ if (properties.source === 1)
+ return "source: multiple values";
+ properties.source = 1;
+ if (!$util.isString(message.script))
+ return "script: string expected";
+ }
+ if (message.args != null && message.hasOwnProperty("args")) {
+ if (!Array.isArray(message.args))
+ return "args: array expected";
+ for (var i = 0; i < message.args.length; ++i)
+ if (!$util.isString(message.args[i]))
+ return "args: string[] expected";
+ }
+ if (message.interpreter != null && message.hasOwnProperty("interpreter"))
+ switch (message.interpreter) {
+ default:
+ return "interpreter: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.outputFilePath != null && message.hasOwnProperty("outputFilePath"))
+ if (!$util.isString(message.outputFilePath))
+ return "outputFilePath: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an Exec message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec} Exec
+ */
+ Exec.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec();
+ if (object.file != null) {
+ if (typeof object.file !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.file: object expected");
+ message.file = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.fromObject(object.file);
+ }
+ if (object.script != null)
+ message.script = String(object.script);
+ if (object.args) {
+ if (!Array.isArray(object.args))
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.args: array expected");
+ message.args = [];
+ for (var i = 0; i < object.args.length; ++i)
+ message.args[i] = String(object.args[i]);
+ }
+ switch (object.interpreter) {
+ default:
+ if (typeof object.interpreter === "number") {
+ message.interpreter = object.interpreter;
+ break;
+ }
+ break;
+ case "INTERPRETER_UNSPECIFIED":
+ case 0:
+ message.interpreter = 0;
+ break;
+ case "NONE":
+ case 1:
+ message.interpreter = 1;
+ break;
+ case "SHELL":
+ case 2:
+ message.interpreter = 2;
+ break;
+ case "POWERSHELL":
+ case 3:
+ message.interpreter = 3;
+ break;
+ }
+ if (object.outputFilePath != null)
+ message.outputFilePath = String(object.outputFilePath);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Exec message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec} message Exec
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Exec.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.args = [];
+ if (options.defaults) {
+ object.interpreter = options.enums === String ? "INTERPRETER_UNSPECIFIED" : 0;
+ object.outputFilePath = "";
+ }
+ if (message.file != null && message.hasOwnProperty("file")) {
+ object.file = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.toObject(message.file, options);
+ if (options.oneofs)
+ object.source = "file";
+ }
+ if (message.script != null && message.hasOwnProperty("script")) {
+ object.script = message.script;
+ if (options.oneofs)
+ object.source = "script";
+ }
+ if (message.args && message.args.length) {
+ object.args = [];
+ for (var j = 0; j < message.args.length; ++j)
+ object.args[j] = message.args[j];
+ }
+ if (message.interpreter != null && message.hasOwnProperty("interpreter"))
+ object.interpreter = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter[message.interpreter] === undefined ? message.interpreter : $root.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter[message.interpreter] : message.interpreter;
+ if (message.outputFilePath != null && message.hasOwnProperty("outputFilePath"))
+ object.outputFilePath = message.outputFilePath;
+ return object;
+ };
+
+ /**
+ * Converts this Exec to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Exec.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Exec
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Exec.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec";
+ };
+
+ /**
+ * Interpreter enum.
+ * @name google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter
+ * @enum {number}
+ * @property {number} INTERPRETER_UNSPECIFIED=0 INTERPRETER_UNSPECIFIED value
+ * @property {number} NONE=1 NONE value
+ * @property {number} SHELL=2 SHELL value
+ * @property {number} POWERSHELL=3 POWERSHELL value
+ */
+ Exec.Interpreter = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "INTERPRETER_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "NONE"] = 1;
+ values[valuesById[2] = "SHELL"] = 2;
+ values[valuesById[3] = "POWERSHELL"] = 3;
+ return values;
+ })();
+
+ return Exec;
+ })();
+
+ return ExecResource;
+ })();
+
+ Resource.FileResource = (function() {
+
+ /**
+ * Properties of a FileResource.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @interface IFileResource
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null} [file] FileResource file
+ * @property {string|null} [content] FileResource content
+ * @property {string|null} [path] FileResource path
+ * @property {google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState|null} [state] FileResource state
+ * @property {string|null} [permissions] FileResource permissions
+ */
+
+ /**
+ * Constructs a new FileResource.
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource
+ * @classdesc Represents a FileResource.
+ * @implements IFileResource
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IFileResource=} [properties] Properties to set
+ */
+ function FileResource(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]];
+ }
+
+ /**
+ * FileResource file.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.IFile|null|undefined} file
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @instance
+ */
+ FileResource.prototype.file = null;
+
+ /**
+ * FileResource content.
+ * @member {string|null|undefined} content
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @instance
+ */
+ FileResource.prototype.content = null;
+
+ /**
+ * FileResource path.
+ * @member {string} path
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @instance
+ */
+ FileResource.prototype.path = "";
+
+ /**
+ * FileResource state.
+ * @member {google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState} state
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @instance
+ */
+ FileResource.prototype.state = 0;
+
+ /**
+ * FileResource permissions.
+ * @member {string} permissions
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @instance
+ */
+ FileResource.prototype.permissions = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * FileResource source.
+ * @member {"file"|"content"|undefined} source
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @instance
+ */
+ Object.defineProperty(FileResource.prototype, "source", {
+ get: $util.oneOfGetter($oneOfFields = ["file", "content"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new FileResource instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IFileResource=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.FileResource} FileResource instance
+ */
+ FileResource.create = function create(properties) {
+ return new FileResource(properties);
+ };
+
+ /**
+ * Encodes the specified FileResource message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IFileResource} message FileResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileResource.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.file != null && Object.hasOwnProperty.call(message, "file"))
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.encode(message.file, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.content != null && Object.hasOwnProperty.call(message, "content"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.content);
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.path);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state);
+ if (message.permissions != null && Object.hasOwnProperty.call(message, "permissions"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.permissions);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FileResource message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.IFileResource} message FileResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileResource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FileResource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.FileResource} FileResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileResource.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.osconfig.v1.OSPolicy.Resource.FileResource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.file = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.content = reader.string();
+ break;
+ }
+ case 3: {
+ message.path = reader.string();
+ break;
+ }
+ case 4: {
+ message.state = reader.int32();
+ break;
+ }
+ case 5: {
+ message.permissions = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FileResource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.FileResource} FileResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileResource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FileResource message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FileResource.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.file != null && message.hasOwnProperty("file")) {
+ properties.source = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.verify(message.file);
+ if (error)
+ return "file." + error;
+ }
+ }
+ if (message.content != null && message.hasOwnProperty("content")) {
+ if (properties.source === 1)
+ return "source: multiple values";
+ properties.source = 1;
+ if (!$util.isString(message.content))
+ return "content: string expected";
+ }
+ if (message.path != null && message.hasOwnProperty("path"))
+ if (!$util.isString(message.path))
+ return "path: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.permissions != null && message.hasOwnProperty("permissions"))
+ if (!$util.isString(message.permissions))
+ return "permissions: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FileResource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.Resource.FileResource} FileResource
+ */
+ FileResource.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource();
+ if (object.file != null) {
+ if (typeof object.file !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.file: object expected");
+ message.file = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.fromObject(object.file);
+ }
+ if (object.content != null)
+ message.content = String(object.content);
+ if (object.path != null)
+ message.path = String(object.path);
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "DESIRED_STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "PRESENT":
+ case 1:
+ message.state = 1;
+ break;
+ case "ABSENT":
+ case 2:
+ message.state = 2;
+ break;
+ case "CONTENTS_MATCH":
+ case 3:
+ message.state = 3;
+ break;
+ }
+ if (object.permissions != null)
+ message.permissions = String(object.permissions);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FileResource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.Resource.FileResource} message FileResource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FileResource.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.path = "";
+ object.state = options.enums === String ? "DESIRED_STATE_UNSPECIFIED" : 0;
+ object.permissions = "";
+ }
+ if (message.file != null && message.hasOwnProperty("file")) {
+ object.file = $root.google.cloud.osconfig.v1.OSPolicy.Resource.File.toObject(message.file, options);
+ if (options.oneofs)
+ object.source = "file";
+ }
+ if (message.content != null && message.hasOwnProperty("content")) {
+ object.content = message.content;
+ if (options.oneofs)
+ object.source = "content";
+ }
+ if (message.path != null && message.hasOwnProperty("path"))
+ object.path = message.path;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState[message.state] === undefined ? message.state : $root.google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState[message.state] : message.state;
+ if (message.permissions != null && message.hasOwnProperty("permissions"))
+ object.permissions = message.permissions;
+ return object;
+ };
+
+ /**
+ * Converts this FileResource to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FileResource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FileResource
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FileResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.Resource.FileResource";
+ };
+
+ /**
+ * DesiredState enum.
+ * @name google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState
+ * @enum {number}
+ * @property {number} DESIRED_STATE_UNSPECIFIED=0 DESIRED_STATE_UNSPECIFIED value
+ * @property {number} PRESENT=1 PRESENT value
+ * @property {number} ABSENT=2 ABSENT value
+ * @property {number} CONTENTS_MATCH=3 CONTENTS_MATCH value
+ */
+ FileResource.DesiredState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DESIRED_STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PRESENT"] = 1;
+ values[valuesById[2] = "ABSENT"] = 2;
+ values[valuesById[3] = "CONTENTS_MATCH"] = 3;
+ return values;
+ })();
+
+ return FileResource;
+ })();
+
+ return Resource;
+ })();
+
+ OSPolicy.ResourceGroup = (function() {
+
+ /**
+ * Properties of a ResourceGroup.
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @interface IResourceGroup
+ * @property {Array.|null} [inventoryFilters] ResourceGroup inventoryFilters
+ * @property {Array.|null} [resources] ResourceGroup resources
+ */
+
+ /**
+ * Constructs a new ResourceGroup.
+ * @memberof google.cloud.osconfig.v1.OSPolicy
+ * @classdesc Represents a ResourceGroup.
+ * @implements IResourceGroup
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicy.IResourceGroup=} [properties] Properties to set
+ */
+ function ResourceGroup(properties) {
+ this.inventoryFilters = [];
+ this.resources = [];
+ 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]];
+ }
+
+ /**
+ * ResourceGroup inventoryFilters.
+ * @member {Array.} inventoryFilters
+ * @memberof google.cloud.osconfig.v1.OSPolicy.ResourceGroup
+ * @instance
+ */
+ ResourceGroup.prototype.inventoryFilters = $util.emptyArray;
+
+ /**
+ * ResourceGroup resources.
+ * @member {Array.} resources
+ * @memberof google.cloud.osconfig.v1.OSPolicy.ResourceGroup
+ * @instance
+ */
+ ResourceGroup.prototype.resources = $util.emptyArray;
+
+ /**
+ * Creates a new ResourceGroup instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicy.ResourceGroup
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.IResourceGroup=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicy.ResourceGroup} ResourceGroup instance
+ */
+ ResourceGroup.create = function create(properties) {
+ return new ResourceGroup(properties);
+ };
+
+ /**
+ * Encodes the specified ResourceGroup message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.ResourceGroup.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.ResourceGroup
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.IResourceGroup} message ResourceGroup message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResourceGroup.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.inventoryFilters != null && message.inventoryFilters.length)
+ for (var i = 0; i < message.inventoryFilters.length; ++i)
+ $root.google.cloud.osconfig.v1.OSPolicy.InventoryFilter.encode(message.inventoryFilters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.resources != null && message.resources.length)
+ for (var i = 0; i < message.resources.length; ++i)
+ $root.google.cloud.osconfig.v1.OSPolicy.Resource.encode(message.resources[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ResourceGroup message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicy.ResourceGroup.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.ResourceGroup
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.IResourceGroup} message ResourceGroup message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResourceGroup.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ResourceGroup message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicy.ResourceGroup
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicy.ResourceGroup} ResourceGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceGroup.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.osconfig.v1.OSPolicy.ResourceGroup();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.inventoryFilters && message.inventoryFilters.length))
+ message.inventoryFilters = [];
+ message.inventoryFilters.push($root.google.cloud.osconfig.v1.OSPolicy.InventoryFilter.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ if (!(message.resources && message.resources.length))
+ message.resources = [];
+ message.resources.push($root.google.cloud.osconfig.v1.OSPolicy.Resource.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ResourceGroup message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicy.ResourceGroup
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicy.ResourceGroup} ResourceGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceGroup.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResourceGroup message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicy.ResourceGroup
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResourceGroup.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.inventoryFilters != null && message.hasOwnProperty("inventoryFilters")) {
+ if (!Array.isArray(message.inventoryFilters))
+ return "inventoryFilters: array expected";
+ for (var i = 0; i < message.inventoryFilters.length; ++i) {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.InventoryFilter.verify(message.inventoryFilters[i]);
+ if (error)
+ return "inventoryFilters." + error;
+ }
+ }
+ if (message.resources != null && message.hasOwnProperty("resources")) {
+ if (!Array.isArray(message.resources))
+ return "resources: array expected";
+ for (var i = 0; i < message.resources.length; ++i) {
+ var error = $root.google.cloud.osconfig.v1.OSPolicy.Resource.verify(message.resources[i]);
+ if (error)
+ return "resources." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ResourceGroup message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.ResourceGroup
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicy.ResourceGroup} ResourceGroup
+ */
+ ResourceGroup.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicy.ResourceGroup)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicy.ResourceGroup();
+ if (object.inventoryFilters) {
+ if (!Array.isArray(object.inventoryFilters))
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.ResourceGroup.inventoryFilters: array expected");
+ message.inventoryFilters = [];
+ for (var i = 0; i < object.inventoryFilters.length; ++i) {
+ if (typeof object.inventoryFilters[i] !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.ResourceGroup.inventoryFilters: object expected");
+ message.inventoryFilters[i] = $root.google.cloud.osconfig.v1.OSPolicy.InventoryFilter.fromObject(object.inventoryFilters[i]);
+ }
+ }
+ if (object.resources) {
+ if (!Array.isArray(object.resources))
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.ResourceGroup.resources: array expected");
+ message.resources = [];
+ for (var i = 0; i < object.resources.length; ++i) {
+ if (typeof object.resources[i] !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicy.ResourceGroup.resources: object expected");
+ message.resources[i] = $root.google.cloud.osconfig.v1.OSPolicy.Resource.fromObject(object.resources[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ResourceGroup message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicy.ResourceGroup
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicy.ResourceGroup} message ResourceGroup
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ResourceGroup.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.inventoryFilters = [];
+ object.resources = [];
+ }
+ if (message.inventoryFilters && message.inventoryFilters.length) {
+ object.inventoryFilters = [];
+ for (var j = 0; j < message.inventoryFilters.length; ++j)
+ object.inventoryFilters[j] = $root.google.cloud.osconfig.v1.OSPolicy.InventoryFilter.toObject(message.inventoryFilters[j], options);
+ }
+ if (message.resources && message.resources.length) {
+ object.resources = [];
+ for (var j = 0; j < message.resources.length; ++j)
+ object.resources[j] = $root.google.cloud.osconfig.v1.OSPolicy.Resource.toObject(message.resources[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ResourceGroup to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicy.ResourceGroup
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ResourceGroup.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ResourceGroup
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicy.ResourceGroup
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ResourceGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicy.ResourceGroup";
+ };
+
+ return ResourceGroup;
+ })();
+
+ return OSPolicy;
+ })();
+
+ v1.GetOSPolicyAssignmentReportRequest = (function() {
+
+ /**
+ * Properties of a GetOSPolicyAssignmentReportRequest.
+ * @memberof google.cloud.osconfig.v1
+ * @interface IGetOSPolicyAssignmentReportRequest
+ * @property {string|null} [name] GetOSPolicyAssignmentReportRequest name
+ */
+
+ /**
+ * Constructs a new GetOSPolicyAssignmentReportRequest.
+ * @memberof google.cloud.osconfig.v1
+ * @classdesc Represents a GetOSPolicyAssignmentReportRequest.
+ * @implements IGetOSPolicyAssignmentReportRequest
+ * @constructor
+ * @param {google.cloud.osconfig.v1.IGetOSPolicyAssignmentReportRequest=} [properties] Properties to set
+ */
+ function GetOSPolicyAssignmentReportRequest(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]];
+ }
+
+ /**
+ * GetOSPolicyAssignmentReportRequest name.
+ * @member {string} name
+ * @memberof google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest
+ * @instance
+ */
+ GetOSPolicyAssignmentReportRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetOSPolicyAssignmentReportRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.IGetOSPolicyAssignmentReportRequest=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest} GetOSPolicyAssignmentReportRequest instance
+ */
+ GetOSPolicyAssignmentReportRequest.create = function create(properties) {
+ return new GetOSPolicyAssignmentReportRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetOSPolicyAssignmentReportRequest message. Does not implicitly {@link google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.IGetOSPolicyAssignmentReportRequest} message GetOSPolicyAssignmentReportRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetOSPolicyAssignmentReportRequest.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 GetOSPolicyAssignmentReportRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.IGetOSPolicyAssignmentReportRequest} message GetOSPolicyAssignmentReportRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetOSPolicyAssignmentReportRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetOSPolicyAssignmentReportRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest} GetOSPolicyAssignmentReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetOSPolicyAssignmentReportRequest.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.osconfig.v1.GetOSPolicyAssignmentReportRequest();
+ 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 GetOSPolicyAssignmentReportRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest} GetOSPolicyAssignmentReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetOSPolicyAssignmentReportRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetOSPolicyAssignmentReportRequest message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetOSPolicyAssignmentReportRequest.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 GetOSPolicyAssignmentReportRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest} GetOSPolicyAssignmentReportRequest
+ */
+ GetOSPolicyAssignmentReportRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetOSPolicyAssignmentReportRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest} message GetOSPolicyAssignmentReportRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetOSPolicyAssignmentReportRequest.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 GetOSPolicyAssignmentReportRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetOSPolicyAssignmentReportRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetOSPolicyAssignmentReportRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetOSPolicyAssignmentReportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest";
+ };
+
+ return GetOSPolicyAssignmentReportRequest;
+ })();
+
+ v1.ListOSPolicyAssignmentReportsRequest = (function() {
+
+ /**
+ * Properties of a ListOSPolicyAssignmentReportsRequest.
+ * @memberof google.cloud.osconfig.v1
+ * @interface IListOSPolicyAssignmentReportsRequest
+ * @property {string|null} [parent] ListOSPolicyAssignmentReportsRequest parent
+ * @property {number|null} [pageSize] ListOSPolicyAssignmentReportsRequest pageSize
+ * @property {string|null} [filter] ListOSPolicyAssignmentReportsRequest filter
+ * @property {string|null} [pageToken] ListOSPolicyAssignmentReportsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentReportsRequest.
+ * @memberof google.cloud.osconfig.v1
+ * @classdesc Represents a ListOSPolicyAssignmentReportsRequest.
+ * @implements IListOSPolicyAssignmentReportsRequest
+ * @constructor
+ * @param {google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsRequest=} [properties] Properties to set
+ */
+ function ListOSPolicyAssignmentReportsRequest(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]];
+ }
+
+ /**
+ * ListOSPolicyAssignmentReportsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @instance
+ */
+ ListOSPolicyAssignmentReportsRequest.prototype.parent = "";
+
+ /**
+ * ListOSPolicyAssignmentReportsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @instance
+ */
+ ListOSPolicyAssignmentReportsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListOSPolicyAssignmentReportsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @instance
+ */
+ ListOSPolicyAssignmentReportsRequest.prototype.filter = "";
+
+ /**
+ * ListOSPolicyAssignmentReportsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @instance
+ */
+ ListOSPolicyAssignmentReportsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListOSPolicyAssignmentReportsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsRequest=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest} ListOSPolicyAssignmentReportsRequest instance
+ */
+ ListOSPolicyAssignmentReportsRequest.create = function create(properties) {
+ return new ListOSPolicyAssignmentReportsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentReportsRequest message. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsRequest} message ListOSPolicyAssignmentReportsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListOSPolicyAssignmentReportsRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentReportsRequest message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsRequest} message ListOSPolicyAssignmentReportsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListOSPolicyAssignmentReportsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListOSPolicyAssignmentReportsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest} ListOSPolicyAssignmentReportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListOSPolicyAssignmentReportsRequest.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.osconfig.v1.ListOSPolicyAssignmentReportsRequest();
+ 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.filter = reader.string();
+ break;
+ }
+ case 4: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListOSPolicyAssignmentReportsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest} ListOSPolicyAssignmentReportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListOSPolicyAssignmentReportsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListOSPolicyAssignmentReportsRequest message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListOSPolicyAssignmentReportsRequest.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.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListOSPolicyAssignmentReportsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest} ListOSPolicyAssignmentReportsRequest
+ */
+ ListOSPolicyAssignmentReportsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentReportsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @static
+ * @param {google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest} message ListOSPolicyAssignmentReportsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListOSPolicyAssignmentReportsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.filter = "";
+ 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.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListOSPolicyAssignmentReportsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListOSPolicyAssignmentReportsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentReportsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListOSPolicyAssignmentReportsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest";
+ };
+
+ return ListOSPolicyAssignmentReportsRequest;
+ })();
+
+ v1.ListOSPolicyAssignmentReportsResponse = (function() {
+
+ /**
+ * Properties of a ListOSPolicyAssignmentReportsResponse.
+ * @memberof google.cloud.osconfig.v1
+ * @interface IListOSPolicyAssignmentReportsResponse
+ * @property {Array.|null} [osPolicyAssignmentReports] ListOSPolicyAssignmentReportsResponse osPolicyAssignmentReports
+ * @property {string|null} [nextPageToken] ListOSPolicyAssignmentReportsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListOSPolicyAssignmentReportsResponse.
+ * @memberof google.cloud.osconfig.v1
+ * @classdesc Represents a ListOSPolicyAssignmentReportsResponse.
+ * @implements IListOSPolicyAssignmentReportsResponse
+ * @constructor
+ * @param {google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsResponse=} [properties] Properties to set
+ */
+ function ListOSPolicyAssignmentReportsResponse(properties) {
+ this.osPolicyAssignmentReports = [];
+ 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]];
+ }
+
+ /**
+ * ListOSPolicyAssignmentReportsResponse osPolicyAssignmentReports.
+ * @member {Array.} osPolicyAssignmentReports
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse
+ * @instance
+ */
+ ListOSPolicyAssignmentReportsResponse.prototype.osPolicyAssignmentReports = $util.emptyArray;
+
+ /**
+ * ListOSPolicyAssignmentReportsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse
+ * @instance
+ */
+ ListOSPolicyAssignmentReportsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListOSPolicyAssignmentReportsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse
+ * @static
+ * @param {google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsResponse=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse} ListOSPolicyAssignmentReportsResponse instance
+ */
+ ListOSPolicyAssignmentReportsResponse.create = function create(properties) {
+ return new ListOSPolicyAssignmentReportsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListOSPolicyAssignmentReportsResponse message. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse
+ * @static
+ * @param {google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsResponse} message ListOSPolicyAssignmentReportsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListOSPolicyAssignmentReportsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.osPolicyAssignmentReports != null && message.osPolicyAssignmentReports.length)
+ for (var i = 0; i < message.osPolicyAssignmentReports.length; ++i)
+ $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.encode(message.osPolicyAssignmentReports[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 ListOSPolicyAssignmentReportsResponse message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse
+ * @static
+ * @param {google.cloud.osconfig.v1.IListOSPolicyAssignmentReportsResponse} message ListOSPolicyAssignmentReportsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListOSPolicyAssignmentReportsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListOSPolicyAssignmentReportsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse} ListOSPolicyAssignmentReportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListOSPolicyAssignmentReportsResponse.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.osconfig.v1.ListOSPolicyAssignmentReportsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.osPolicyAssignmentReports && message.osPolicyAssignmentReports.length))
+ message.osPolicyAssignmentReports = [];
+ message.osPolicyAssignmentReports.push($root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListOSPolicyAssignmentReportsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse} ListOSPolicyAssignmentReportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListOSPolicyAssignmentReportsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListOSPolicyAssignmentReportsResponse message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListOSPolicyAssignmentReportsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.osPolicyAssignmentReports != null && message.hasOwnProperty("osPolicyAssignmentReports")) {
+ if (!Array.isArray(message.osPolicyAssignmentReports))
+ return "osPolicyAssignmentReports: array expected";
+ for (var i = 0; i < message.osPolicyAssignmentReports.length; ++i) {
+ var error = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.verify(message.osPolicyAssignmentReports[i]);
+ if (error)
+ return "osPolicyAssignmentReports." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListOSPolicyAssignmentReportsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse} ListOSPolicyAssignmentReportsResponse
+ */
+ ListOSPolicyAssignmentReportsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse();
+ if (object.osPolicyAssignmentReports) {
+ if (!Array.isArray(object.osPolicyAssignmentReports))
+ throw TypeError(".google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse.osPolicyAssignmentReports: array expected");
+ message.osPolicyAssignmentReports = [];
+ for (var i = 0; i < object.osPolicyAssignmentReports.length; ++i) {
+ if (typeof object.osPolicyAssignmentReports[i] !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse.osPolicyAssignmentReports: object expected");
+ message.osPolicyAssignmentReports[i] = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.fromObject(object.osPolicyAssignmentReports[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListOSPolicyAssignmentReportsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse
+ * @static
+ * @param {google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse} message ListOSPolicyAssignmentReportsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListOSPolicyAssignmentReportsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.osPolicyAssignmentReports = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.osPolicyAssignmentReports && message.osPolicyAssignmentReports.length) {
+ object.osPolicyAssignmentReports = [];
+ for (var j = 0; j < message.osPolicyAssignmentReports.length; ++j)
+ object.osPolicyAssignmentReports[j] = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.toObject(message.osPolicyAssignmentReports[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListOSPolicyAssignmentReportsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListOSPolicyAssignmentReportsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListOSPolicyAssignmentReportsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListOSPolicyAssignmentReportsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse";
+ };
+
+ return ListOSPolicyAssignmentReportsResponse;
+ })();
+
+ v1.OSPolicyAssignmentReport = (function() {
+
+ /**
+ * Properties of a OSPolicyAssignmentReport.
+ * @memberof google.cloud.osconfig.v1
+ * @interface IOSPolicyAssignmentReport
+ * @property {string|null} [name] OSPolicyAssignmentReport name
+ * @property {string|null} [instance] OSPolicyAssignmentReport instance
+ * @property {string|null} [osPolicyAssignment] OSPolicyAssignmentReport osPolicyAssignment
+ * @property {Array.|null} [osPolicyCompliances] OSPolicyAssignmentReport osPolicyCompliances
+ * @property {google.protobuf.ITimestamp|null} [updateTime] OSPolicyAssignmentReport updateTime
+ * @property {string|null} [lastRunId] OSPolicyAssignmentReport lastRunId
+ */
+
+ /**
+ * Constructs a new OSPolicyAssignmentReport.
+ * @memberof google.cloud.osconfig.v1
+ * @classdesc Represents a OSPolicyAssignmentReport.
+ * @implements IOSPolicyAssignmentReport
+ * @constructor
+ * @param {google.cloud.osconfig.v1.IOSPolicyAssignmentReport=} [properties] Properties to set
+ */
+ function OSPolicyAssignmentReport(properties) {
+ this.osPolicyCompliances = [];
+ 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]];
+ }
+
+ /**
+ * OSPolicyAssignmentReport name.
+ * @member {string} name
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @instance
+ */
+ OSPolicyAssignmentReport.prototype.name = "";
+
+ /**
+ * OSPolicyAssignmentReport instance.
+ * @member {string} instance
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @instance
+ */
+ OSPolicyAssignmentReport.prototype.instance = "";
+
+ /**
+ * OSPolicyAssignmentReport osPolicyAssignment.
+ * @member {string} osPolicyAssignment
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @instance
+ */
+ OSPolicyAssignmentReport.prototype.osPolicyAssignment = "";
+
+ /**
+ * OSPolicyAssignmentReport osPolicyCompliances.
+ * @member {Array.} osPolicyCompliances
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @instance
+ */
+ OSPolicyAssignmentReport.prototype.osPolicyCompliances = $util.emptyArray;
+
+ /**
+ * OSPolicyAssignmentReport updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @instance
+ */
+ OSPolicyAssignmentReport.prototype.updateTime = null;
+
+ /**
+ * OSPolicyAssignmentReport lastRunId.
+ * @member {string} lastRunId
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @instance
+ */
+ OSPolicyAssignmentReport.prototype.lastRunId = "";
+
+ /**
+ * Creates a new OSPolicyAssignmentReport instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @static
+ * @param {google.cloud.osconfig.v1.IOSPolicyAssignmentReport=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport} OSPolicyAssignmentReport instance
+ */
+ OSPolicyAssignmentReport.create = function create(properties) {
+ return new OSPolicyAssignmentReport(properties);
+ };
+
+ /**
+ * Encodes the specified OSPolicyAssignmentReport message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @static
+ * @param {google.cloud.osconfig.v1.IOSPolicyAssignmentReport} message OSPolicyAssignmentReport message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OSPolicyAssignmentReport.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.instance != null && Object.hasOwnProperty.call(message, "instance"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.instance);
+ if (message.osPolicyAssignment != null && Object.hasOwnProperty.call(message, "osPolicyAssignment"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.osPolicyAssignment);
+ if (message.osPolicyCompliances != null && message.osPolicyCompliances.length)
+ for (var i = 0; i < message.osPolicyCompliances.length; ++i)
+ $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.encode(message.osPolicyCompliances[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ 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.lastRunId != null && Object.hasOwnProperty.call(message, "lastRunId"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.lastRunId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OSPolicyAssignmentReport message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @static
+ * @param {google.cloud.osconfig.v1.IOSPolicyAssignmentReport} message OSPolicyAssignmentReport message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OSPolicyAssignmentReport.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a OSPolicyAssignmentReport message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport} OSPolicyAssignmentReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OSPolicyAssignmentReport.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.osconfig.v1.OSPolicyAssignmentReport();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.instance = reader.string();
+ break;
+ }
+ case 3: {
+ message.osPolicyAssignment = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.osPolicyCompliances && message.osPolicyCompliances.length))
+ message.osPolicyCompliances = [];
+ message.osPolicyCompliances.push($root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.decode(reader, reader.uint32()));
+ break;
+ }
+ case 5: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.lastRunId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a OSPolicyAssignmentReport message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport} OSPolicyAssignmentReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OSPolicyAssignmentReport.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a OSPolicyAssignmentReport message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OSPolicyAssignmentReport.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.instance != null && message.hasOwnProperty("instance"))
+ if (!$util.isString(message.instance))
+ return "instance: string expected";
+ if (message.osPolicyAssignment != null && message.hasOwnProperty("osPolicyAssignment"))
+ if (!$util.isString(message.osPolicyAssignment))
+ return "osPolicyAssignment: string expected";
+ if (message.osPolicyCompliances != null && message.hasOwnProperty("osPolicyCompliances")) {
+ if (!Array.isArray(message.osPolicyCompliances))
+ return "osPolicyCompliances: array expected";
+ for (var i = 0; i < message.osPolicyCompliances.length; ++i) {
+ var error = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.verify(message.osPolicyCompliances[i]);
+ if (error)
+ return "osPolicyCompliances." + error;
+ }
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.lastRunId != null && message.hasOwnProperty("lastRunId"))
+ if (!$util.isString(message.lastRunId))
+ return "lastRunId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a OSPolicyAssignmentReport message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport} OSPolicyAssignmentReport
+ */
+ OSPolicyAssignmentReport.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.instance != null)
+ message.instance = String(object.instance);
+ if (object.osPolicyAssignment != null)
+ message.osPolicyAssignment = String(object.osPolicyAssignment);
+ if (object.osPolicyCompliances) {
+ if (!Array.isArray(object.osPolicyCompliances))
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicyAssignmentReport.osPolicyCompliances: array expected");
+ message.osPolicyCompliances = [];
+ for (var i = 0; i < object.osPolicyCompliances.length; ++i) {
+ if (typeof object.osPolicyCompliances[i] !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicyAssignmentReport.osPolicyCompliances: object expected");
+ message.osPolicyCompliances[i] = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.fromObject(object.osPolicyCompliances[i]);
+ }
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicyAssignmentReport.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.lastRunId != null)
+ message.lastRunId = String(object.lastRunId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a OSPolicyAssignmentReport message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport} message OSPolicyAssignmentReport
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OSPolicyAssignmentReport.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.osPolicyCompliances = [];
+ if (options.defaults) {
+ object.name = "";
+ object.instance = "";
+ object.osPolicyAssignment = "";
+ object.updateTime = null;
+ object.lastRunId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.instance != null && message.hasOwnProperty("instance"))
+ object.instance = message.instance;
+ if (message.osPolicyAssignment != null && message.hasOwnProperty("osPolicyAssignment"))
+ object.osPolicyAssignment = message.osPolicyAssignment;
+ if (message.osPolicyCompliances && message.osPolicyCompliances.length) {
+ object.osPolicyCompliances = [];
+ for (var j = 0; j < message.osPolicyCompliances.length; ++j)
+ object.osPolicyCompliances[j] = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.toObject(message.osPolicyCompliances[j], options);
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.lastRunId != null && message.hasOwnProperty("lastRunId"))
+ object.lastRunId = message.lastRunId;
+ return object;
+ };
+
+ /**
+ * Converts this OSPolicyAssignmentReport to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OSPolicyAssignmentReport.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OSPolicyAssignmentReport
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OSPolicyAssignmentReport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicyAssignmentReport";
+ };
+
+ OSPolicyAssignmentReport.OSPolicyCompliance = (function() {
+
+ /**
+ * Properties of a OSPolicyCompliance.
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @interface IOSPolicyCompliance
+ * @property {string|null} [osPolicyId] OSPolicyCompliance osPolicyId
+ * @property {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState|null} [complianceState] OSPolicyCompliance complianceState
+ * @property {string|null} [complianceStateReason] OSPolicyCompliance complianceStateReason
+ * @property {Array.|null} [osPolicyResourceCompliances] OSPolicyCompliance osPolicyResourceCompliances
+ */
+
+ /**
+ * Constructs a new OSPolicyCompliance.
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport
+ * @classdesc Represents a OSPolicyCompliance.
+ * @implements IOSPolicyCompliance
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.IOSPolicyCompliance=} [properties] Properties to set
+ */
+ function OSPolicyCompliance(properties) {
+ this.osPolicyResourceCompliances = [];
+ 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]];
+ }
+
+ /**
+ * OSPolicyCompliance osPolicyId.
+ * @member {string} osPolicyId
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @instance
+ */
+ OSPolicyCompliance.prototype.osPolicyId = "";
+
+ /**
+ * OSPolicyCompliance complianceState.
+ * @member {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState} complianceState
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @instance
+ */
+ OSPolicyCompliance.prototype.complianceState = 0;
+
+ /**
+ * OSPolicyCompliance complianceStateReason.
+ * @member {string} complianceStateReason
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @instance
+ */
+ OSPolicyCompliance.prototype.complianceStateReason = "";
+
+ /**
+ * OSPolicyCompliance osPolicyResourceCompliances.
+ * @member {Array.} osPolicyResourceCompliances
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @instance
+ */
+ OSPolicyCompliance.prototype.osPolicyResourceCompliances = $util.emptyArray;
+
+ /**
+ * Creates a new OSPolicyCompliance instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.IOSPolicyCompliance=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance} OSPolicyCompliance instance
+ */
+ OSPolicyCompliance.create = function create(properties) {
+ return new OSPolicyCompliance(properties);
+ };
+
+ /**
+ * Encodes the specified OSPolicyCompliance message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.IOSPolicyCompliance} message OSPolicyCompliance message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OSPolicyCompliance.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.osPolicyId != null && Object.hasOwnProperty.call(message, "osPolicyId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.osPolicyId);
+ if (message.complianceState != null && Object.hasOwnProperty.call(message, "complianceState"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.complianceState);
+ if (message.complianceStateReason != null && Object.hasOwnProperty.call(message, "complianceStateReason"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.complianceStateReason);
+ if (message.osPolicyResourceCompliances != null && message.osPolicyResourceCompliances.length)
+ for (var i = 0; i < message.osPolicyResourceCompliances.length; ++i)
+ $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.encode(message.osPolicyResourceCompliances[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OSPolicyCompliance message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.IOSPolicyCompliance} message OSPolicyCompliance message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OSPolicyCompliance.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a OSPolicyCompliance message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance} OSPolicyCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OSPolicyCompliance.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.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.osPolicyId = reader.string();
+ break;
+ }
+ case 2: {
+ message.complianceState = reader.int32();
+ break;
+ }
+ case 3: {
+ message.complianceStateReason = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.osPolicyResourceCompliances && message.osPolicyResourceCompliances.length))
+ message.osPolicyResourceCompliances = [];
+ message.osPolicyResourceCompliances.push($root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a OSPolicyCompliance message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance} OSPolicyCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OSPolicyCompliance.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a OSPolicyCompliance message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OSPolicyCompliance.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.osPolicyId != null && message.hasOwnProperty("osPolicyId"))
+ if (!$util.isString(message.osPolicyId))
+ return "osPolicyId: string expected";
+ if (message.complianceState != null && message.hasOwnProperty("complianceState"))
+ switch (message.complianceState) {
+ default:
+ return "complianceState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.complianceStateReason != null && message.hasOwnProperty("complianceStateReason"))
+ if (!$util.isString(message.complianceStateReason))
+ return "complianceStateReason: string expected";
+ if (message.osPolicyResourceCompliances != null && message.hasOwnProperty("osPolicyResourceCompliances")) {
+ if (!Array.isArray(message.osPolicyResourceCompliances))
+ return "osPolicyResourceCompliances: array expected";
+ for (var i = 0; i < message.osPolicyResourceCompliances.length; ++i) {
+ var error = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.verify(message.osPolicyResourceCompliances[i]);
+ if (error)
+ return "osPolicyResourceCompliances." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a OSPolicyCompliance message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance} OSPolicyCompliance
+ */
+ OSPolicyCompliance.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance();
+ if (object.osPolicyId != null)
+ message.osPolicyId = String(object.osPolicyId);
+ switch (object.complianceState) {
+ default:
+ if (typeof object.complianceState === "number") {
+ message.complianceState = object.complianceState;
+ break;
+ }
+ break;
+ case "UNKNOWN":
+ case 0:
+ message.complianceState = 0;
+ break;
+ case "COMPLIANT":
+ case 1:
+ message.complianceState = 1;
+ break;
+ case "NON_COMPLIANT":
+ case 2:
+ message.complianceState = 2;
+ break;
+ }
+ if (object.complianceStateReason != null)
+ message.complianceStateReason = String(object.complianceStateReason);
+ if (object.osPolicyResourceCompliances) {
+ if (!Array.isArray(object.osPolicyResourceCompliances))
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.osPolicyResourceCompliances: array expected");
+ message.osPolicyResourceCompliances = [];
+ for (var i = 0; i < object.osPolicyResourceCompliances.length; ++i) {
+ if (typeof object.osPolicyResourceCompliances[i] !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.osPolicyResourceCompliances: object expected");
+ message.osPolicyResourceCompliances[i] = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.fromObject(object.osPolicyResourceCompliances[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a OSPolicyCompliance message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance} message OSPolicyCompliance
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OSPolicyCompliance.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.osPolicyResourceCompliances = [];
+ if (options.defaults) {
+ object.osPolicyId = "";
+ object.complianceState = options.enums === String ? "UNKNOWN" : 0;
+ object.complianceStateReason = "";
+ }
+ if (message.osPolicyId != null && message.hasOwnProperty("osPolicyId"))
+ object.osPolicyId = message.osPolicyId;
+ if (message.complianceState != null && message.hasOwnProperty("complianceState"))
+ object.complianceState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState[message.complianceState] === undefined ? message.complianceState : $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState[message.complianceState] : message.complianceState;
+ if (message.complianceStateReason != null && message.hasOwnProperty("complianceStateReason"))
+ object.complianceStateReason = message.complianceStateReason;
+ if (message.osPolicyResourceCompliances && message.osPolicyResourceCompliances.length) {
+ object.osPolicyResourceCompliances = [];
+ for (var j = 0; j < message.osPolicyResourceCompliances.length; ++j)
+ object.osPolicyResourceCompliances[j] = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.toObject(message.osPolicyResourceCompliances[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this OSPolicyCompliance to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OSPolicyCompliance.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OSPolicyCompliance
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OSPolicyCompliance.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance";
+ };
+
+ /**
+ * ComplianceState enum.
+ * @name google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState
+ * @enum {number}
+ * @property {number} UNKNOWN=0 UNKNOWN value
+ * @property {number} COMPLIANT=1 COMPLIANT value
+ * @property {number} NON_COMPLIANT=2 NON_COMPLIANT value
+ */
+ OSPolicyCompliance.ComplianceState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "UNKNOWN"] = 0;
+ values[valuesById[1] = "COMPLIANT"] = 1;
+ values[valuesById[2] = "NON_COMPLIANT"] = 2;
+ return values;
+ })();
+
+ OSPolicyCompliance.OSPolicyResourceCompliance = (function() {
+
+ /**
+ * Properties of a OSPolicyResourceCompliance.
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @interface IOSPolicyResourceCompliance
+ * @property {string|null} [osPolicyResourceId] OSPolicyResourceCompliance osPolicyResourceId
+ * @property {Array.|null} [configSteps] OSPolicyResourceCompliance configSteps
+ * @property {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState|null} [complianceState] OSPolicyResourceCompliance complianceState
+ * @property {string|null} [complianceStateReason] OSPolicyResourceCompliance complianceStateReason
+ * @property {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput|null} [execResourceOutput] OSPolicyResourceCompliance execResourceOutput
+ */
+
+ /**
+ * Constructs a new OSPolicyResourceCompliance.
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance
+ * @classdesc Represents a OSPolicyResourceCompliance.
+ * @implements IOSPolicyResourceCompliance
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance=} [properties] Properties to set
+ */
+ function OSPolicyResourceCompliance(properties) {
+ this.configSteps = [];
+ 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]];
+ }
+
+ /**
+ * OSPolicyResourceCompliance osPolicyResourceId.
+ * @member {string} osPolicyResourceId
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @instance
+ */
+ OSPolicyResourceCompliance.prototype.osPolicyResourceId = "";
+
+ /**
+ * OSPolicyResourceCompliance configSteps.
+ * @member {Array.} configSteps
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @instance
+ */
+ OSPolicyResourceCompliance.prototype.configSteps = $util.emptyArray;
+
+ /**
+ * OSPolicyResourceCompliance complianceState.
+ * @member {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState} complianceState
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @instance
+ */
+ OSPolicyResourceCompliance.prototype.complianceState = 0;
+
+ /**
+ * OSPolicyResourceCompliance complianceStateReason.
+ * @member {string} complianceStateReason
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @instance
+ */
+ OSPolicyResourceCompliance.prototype.complianceStateReason = "";
+
+ /**
+ * OSPolicyResourceCompliance execResourceOutput.
+ * @member {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IExecResourceOutput|null|undefined} execResourceOutput
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @instance
+ */
+ OSPolicyResourceCompliance.prototype.execResourceOutput = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * OSPolicyResourceCompliance output.
+ * @member {"execResourceOutput"|undefined} output
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @instance
+ */
+ Object.defineProperty(OSPolicyResourceCompliance.prototype, "output", {
+ get: $util.oneOfGetter($oneOfFields = ["execResourceOutput"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new OSPolicyResourceCompliance instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance} OSPolicyResourceCompliance instance
+ */
+ OSPolicyResourceCompliance.create = function create(properties) {
+ return new OSPolicyResourceCompliance(properties);
+ };
+
+ /**
+ * Encodes the specified OSPolicyResourceCompliance message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance} message OSPolicyResourceCompliance message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OSPolicyResourceCompliance.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.osPolicyResourceId != null && Object.hasOwnProperty.call(message, "osPolicyResourceId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.osPolicyResourceId);
+ if (message.configSteps != null && message.configSteps.length)
+ for (var i = 0; i < message.configSteps.length; ++i)
+ $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.encode(message.configSteps[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.complianceState != null && Object.hasOwnProperty.call(message, "complianceState"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.complianceState);
+ if (message.complianceStateReason != null && Object.hasOwnProperty.call(message, "complianceStateReason"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.complianceStateReason);
+ if (message.execResourceOutput != null && Object.hasOwnProperty.call(message, "execResourceOutput"))
+ $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput.encode(message.execResourceOutput, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OSPolicyResourceCompliance message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.IOSPolicyResourceCompliance} message OSPolicyResourceCompliance message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OSPolicyResourceCompliance.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a OSPolicyResourceCompliance message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance} OSPolicyResourceCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OSPolicyResourceCompliance.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.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.osPolicyResourceId = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.configSteps && message.configSteps.length))
+ message.configSteps = [];
+ message.configSteps.push($root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.decode(reader, reader.uint32()));
+ break;
+ }
+ case 3: {
+ message.complianceState = reader.int32();
+ break;
+ }
+ case 4: {
+ message.complianceStateReason = reader.string();
+ break;
+ }
+ case 5: {
+ message.execResourceOutput = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a OSPolicyResourceCompliance message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance} OSPolicyResourceCompliance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OSPolicyResourceCompliance.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a OSPolicyResourceCompliance message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OSPolicyResourceCompliance.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.osPolicyResourceId != null && message.hasOwnProperty("osPolicyResourceId"))
+ if (!$util.isString(message.osPolicyResourceId))
+ return "osPolicyResourceId: string expected";
+ if (message.configSteps != null && message.hasOwnProperty("configSteps")) {
+ if (!Array.isArray(message.configSteps))
+ return "configSteps: array expected";
+ for (var i = 0; i < message.configSteps.length; ++i) {
+ var error = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.verify(message.configSteps[i]);
+ if (error)
+ return "configSteps." + error;
+ }
+ }
+ if (message.complianceState != null && message.hasOwnProperty("complianceState"))
+ switch (message.complianceState) {
+ default:
+ return "complianceState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.complianceStateReason != null && message.hasOwnProperty("complianceStateReason"))
+ if (!$util.isString(message.complianceStateReason))
+ return "complianceStateReason: string expected";
+ if (message.execResourceOutput != null && message.hasOwnProperty("execResourceOutput")) {
+ properties.output = 1;
+ {
+ var error = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput.verify(message.execResourceOutput);
+ if (error)
+ return "execResourceOutput." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a OSPolicyResourceCompliance message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance} OSPolicyResourceCompliance
+ */
+ OSPolicyResourceCompliance.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance)
+ return object;
+ var message = new $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance();
+ if (object.osPolicyResourceId != null)
+ message.osPolicyResourceId = String(object.osPolicyResourceId);
+ if (object.configSteps) {
+ if (!Array.isArray(object.configSteps))
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.configSteps: array expected");
+ message.configSteps = [];
+ for (var i = 0; i < object.configSteps.length; ++i) {
+ if (typeof object.configSteps[i] !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.configSteps: object expected");
+ message.configSteps[i] = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.fromObject(object.configSteps[i]);
+ }
+ }
+ switch (object.complianceState) {
+ default:
+ if (typeof object.complianceState === "number") {
+ message.complianceState = object.complianceState;
+ break;
+ }
+ break;
+ case "UNKNOWN":
+ case 0:
+ message.complianceState = 0;
+ break;
+ case "COMPLIANT":
+ case 1:
+ message.complianceState = 1;
+ break;
+ case "NON_COMPLIANT":
+ case 2:
+ message.complianceState = 2;
+ break;
+ }
+ if (object.complianceStateReason != null)
+ message.complianceStateReason = String(object.complianceStateReason);
+ if (object.execResourceOutput != null) {
+ if (typeof object.execResourceOutput !== "object")
+ throw TypeError(".google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.execResourceOutput: object expected");
+ message.execResourceOutput = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput.fromObject(object.execResourceOutput);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a OSPolicyResourceCompliance message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance} message OSPolicyResourceCompliance
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OSPolicyResourceCompliance.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.configSteps = [];
+ if (options.defaults) {
+ object.osPolicyResourceId = "";
+ object.complianceState = options.enums === String ? "UNKNOWN" : 0;
+ object.complianceStateReason = "";
+ }
+ if (message.osPolicyResourceId != null && message.hasOwnProperty("osPolicyResourceId"))
+ object.osPolicyResourceId = message.osPolicyResourceId;
+ if (message.configSteps && message.configSteps.length) {
+ object.configSteps = [];
+ for (var j = 0; j < message.configSteps.length; ++j)
+ object.configSteps[j] = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.toObject(message.configSteps[j], options);
+ }
+ if (message.complianceState != null && message.hasOwnProperty("complianceState"))
+ object.complianceState = options.enums === String ? $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState[message.complianceState] === undefined ? message.complianceState : $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState[message.complianceState] : message.complianceState;
+ if (message.complianceStateReason != null && message.hasOwnProperty("complianceStateReason"))
+ object.complianceStateReason = message.complianceStateReason;
+ if (message.execResourceOutput != null && message.hasOwnProperty("execResourceOutput")) {
+ object.execResourceOutput = $root.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput.toObject(message.execResourceOutput, options);
+ if (options.oneofs)
+ object.output = "execResourceOutput";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this OSPolicyResourceCompliance to JSON.
+ * @function toJSON
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OSPolicyResourceCompliance.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OSPolicyResourceCompliance
+ * @function getTypeUrl
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OSPolicyResourceCompliance.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance";
+ };
+
+ OSPolicyResourceCompliance.OSPolicyResourceConfigStep = (function() {
+
+ /**
+ * Properties of a OSPolicyResourceConfigStep.
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @interface IOSPolicyResourceConfigStep
+ * @property {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type|null} [type] OSPolicyResourceConfigStep type
+ * @property {string|null} [errorMessage] OSPolicyResourceConfigStep errorMessage
+ */
+
+ /**
+ * Constructs a new OSPolicyResourceConfigStep.
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
+ * @classdesc Represents a OSPolicyResourceConfigStep.
+ * @implements IOSPolicyResourceConfigStep
+ * @constructor
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep=} [properties] Properties to set
+ */
+ function OSPolicyResourceConfigStep(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]];
+ }
+
+ /**
+ * OSPolicyResourceConfigStep type.
+ * @member {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type} type
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ * @instance
+ */
+ OSPolicyResourceConfigStep.prototype.type = 0;
+
+ /**
+ * OSPolicyResourceConfigStep errorMessage.
+ * @member {string} errorMessage
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ * @instance
+ */
+ OSPolicyResourceConfigStep.prototype.errorMessage = "";
+
+ /**
+ * Creates a new OSPolicyResourceConfigStep instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep=} [properties] Properties to set
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep} OSPolicyResourceConfigStep instance
+ */
+ OSPolicyResourceConfigStep.create = function create(properties) {
+ return new OSPolicyResourceConfigStep(properties);
+ };
+
+ /**
+ * Encodes the specified OSPolicyResourceConfigStep message. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep} message OSPolicyResourceConfigStep message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OSPolicyResourceConfigStep.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type);
+ if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OSPolicyResourceConfigStep message, length delimited. Does not implicitly {@link google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ * @static
+ * @param {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.IOSPolicyResourceConfigStep} message OSPolicyResourceConfigStep message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OSPolicyResourceConfigStep.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a OSPolicyResourceConfigStep message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep} OSPolicyResourceConfigStep
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OSPolicyResourceConfigStep.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.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.int32();
+ break;
+ }
+ case 2: {
+ message.errorMessage = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a OSPolicyResourceConfigStep message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep} OSPolicyResourceConfigStep
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OSPolicyResourceConfigStep.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a OSPolicyResourceConfigStep message.
+ * @function verify
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OSPolicyResourceConfigStep.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ switch (message.type) {
+ default:
+ return "type: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
+ if (!$util.isString(message.errorMessage))
+ return "errorMessage: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a OSPolicyResourceConfigStep message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ * @static
+ * @param {Object.