diff --git a/packages/google-cloud-websecurityscanner/.eslintignore b/packages/google-cloud-websecurityscanner/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-websecurityscanner/.eslintrc.json b/packages/google-cloud-websecurityscanner/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-websecurityscanner/.gitattributes b/packages/google-cloud-websecurityscanner/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/.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-websecurityscanner/.github/.OwlBot.yaml b/packages/google-cloud-websecurityscanner/.github/.OwlBot.yaml
new file mode 100644
index 00000000000..83ee7372c75
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/.github/.OwlBot.yaml
@@ -0,0 +1,23 @@
+# Copyright 2021 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+docker:
+ image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
+
+deep-remove-regex:
+ - /owl-bot-staging
+
+deep-copy-regex:
+ - source: /google/cloud/websecurityscanner/(.*)/.*-nodejs/(.*)
+ dest: /owl-bot-staging/$1/$2
+
diff --git a/packages/google-cloud-websecurityscanner/.gitignore b/packages/google-cloud-websecurityscanner/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/.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-websecurityscanner/.jsdoc.js b/packages/google-cloud-websecurityscanner/.jsdoc.js
new file mode 100644
index 00000000000..65475a4d9bf
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/.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/web-security-scanner',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-websecurityscanner/.mocharc.js b/packages/google-cloud-websecurityscanner/.mocharc.js
new file mode 100644
index 00000000000..0b600509bed
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/.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-websecurityscanner/.nycrc b/packages/google-cloud-websecurityscanner/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/.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-websecurityscanner/.prettierignore b/packages/google-cloud-websecurityscanner/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-websecurityscanner/.prettierrc.js b/packages/google-cloud-websecurityscanner/.prettierrc.js
new file mode 100644
index 00000000000..d1b95106f4c
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/.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-websecurityscanner/.repo-metadata.json b/packages/google-cloud-websecurityscanner/.repo-metadata.json
new file mode 100644
index 00000000000..d1c0542e290
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/.repo-metadata.json
@@ -0,0 +1,16 @@
+{
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/web-security-scanner/latest",
+ "api_id": "websecurityscanner.googleapis.com",
+ "distribution_name": "@google-cloud/web-security-scanner",
+ "release_level": "stable",
+ "default_version": "v1beta",
+ "language": "nodejs",
+ "name_pretty": "Web Security Scanner",
+ "repo": "googleapis/nodejs-web-security-scanner",
+ "product_documentation": "https://cloud.google.com/security-scanner/",
+ "requires_billing": true,
+ "name": "websecurityscanner",
+ "issue_tracker": "https://github.com/googleapis/nodejs-web-security-scanner/issues",
+ "api_shortname": "websecurityscanner",
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-cloud-websecurityscanner/CHANGELOG.md b/packages/google-cloud-websecurityscanner/CHANGELOG.md
new file mode 100644
index 00000000000..43a61153e78
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/CHANGELOG.md
@@ -0,0 +1,122 @@
+# Changelog
+
+## [2.1.3](https://github.com/googleapis/nodejs-web-security-scanner/compare/v2.1.2...v2.1.3) (2022-11-10)
+
+
+### Bug Fixes
+
+* **deps:** Use google-gax v3.5.2 ([#148](https://github.com/googleapis/nodejs-web-security-scanner/issues/148)) ([6f6cf70](https://github.com/googleapis/nodejs-web-security-scanner/commit/6f6cf7089280129b7d8c8acd2acbeee5388da598))
+* Preserve default values in x-goog-request-params header ([#140](https://github.com/googleapis/nodejs-web-security-scanner/issues/140)) ([e16d06d](https://github.com/googleapis/nodejs-web-security-scanner/commit/e16d06d8e4ea03eee1eb3feddc57b3bc95678728))
+* Regenerated protos JS and TS definitions ([#151](https://github.com/googleapis/nodejs-web-security-scanner/issues/151)) ([7a6395a](https://github.com/googleapis/nodejs-web-security-scanner/commit/7a6395aedcad3a87738e6c38bc5880d66dc99e0c))
+
+## [2.1.2](https://github.com/googleapis/nodejs-web-security-scanner/compare/v2.1.1...v2.1.2) (2022-08-27)
+
+
+### Bug Fixes
+
+* do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-web-security-scanner/issues/1553)) ([#139](https://github.com/googleapis/nodejs-web-security-scanner/issues/139)) ([4ff7015](https://github.com/googleapis/nodejs-web-security-scanner/commit/4ff701583b66f1f7f80b9c9ab2b2445549a6c81f))
+* use google-gax v3.3.0 ([4ff7015](https://github.com/googleapis/nodejs-web-security-scanner/commit/4ff701583b66f1f7f80b9c9ab2b2445549a6c81f))
+
+## [2.1.1](https://github.com/googleapis/nodejs-web-security-scanner/compare/v2.1.0...v2.1.1) (2022-08-23)
+
+
+### Bug Fixes
+
+* better support for fallback mode ([#135](https://github.com/googleapis/nodejs-web-security-scanner/issues/135)) ([9b70cc5](https://github.com/googleapis/nodejs-web-security-scanner/commit/9b70cc5a238bdf595a0dd05244662e60156de8d1))
+* change import long to require ([#136](https://github.com/googleapis/nodejs-web-security-scanner/issues/136)) ([f9e6d50](https://github.com/googleapis/nodejs-web-security-scanner/commit/f9e6d502b1b5c7e47e349dc8569d61853524c519))
+* remove pip install statements ([#1546](https://github.com/googleapis/nodejs-web-security-scanner/issues/1546)) ([#138](https://github.com/googleapis/nodejs-web-security-scanner/issues/138)) ([00a8d54](https://github.com/googleapis/nodejs-web-security-scanner/commit/00a8d549df6e346b202e8ea674642769a08cead5))
+
+## [2.1.0](https://github.com/googleapis/nodejs-web-security-scanner/compare/v2.0.0...v2.1.0) (2022-06-29)
+
+
+### Features
+
+* support regapic LRO ([#129](https://github.com/googleapis/nodejs-web-security-scanner/issues/129)) ([bc9ba59](https://github.com/googleapis/nodejs-web-security-scanner/commit/bc9ba59369cf1945d1352076c01a2139e8d3c1ce))
+
+## [2.0.0](https://github.com/googleapis/nodejs-web-security-scanner/compare/v1.1.1...v2.0.0) (2022-05-19)
+
+
+### ⚠ BREAKING CHANGES
+
+* update library to use Node 12 (#124)
+
+### Build System
+
+* update library to use Node 12 ([#124](https://github.com/googleapis/nodejs-web-security-scanner/issues/124)) ([f6f6886](https://github.com/googleapis/nodejs-web-security-scanner/commit/f6f6886ac002dbc95b248bdab22c6d6f1fa28ba2))
+
+### [1.1.1](https://www.github.com/googleapis/nodejs-web-security-scanner/compare/v1.1.0...v1.1.1) (2021-09-09)
+
+
+### Bug Fixes
+
+* **build:** migrate to using main branch ([#77](https://www.github.com/googleapis/nodejs-web-security-scanner/issues/77)) ([caf7a6c](https://www.github.com/googleapis/nodejs-web-security-scanner/commit/caf7a6c7b28c5bc2346edbf5051c991c9ee8f62e))
+
+## [1.1.0](https://www.github.com/googleapis/nodejs-web-security-scanner/compare/v1.0.7...v1.1.0) (2021-08-23)
+
+
+### Features
+
+* turns on self-signed JWT feature flag ([#74](https://www.github.com/googleapis/nodejs-web-security-scanner/issues/74)) ([f806cd5](https://www.github.com/googleapis/nodejs-web-security-scanner/commit/f806cd5c38d8a04927fb3b57199cd425d5beb9b3))
+
+### [1.0.7](https://www.github.com/googleapis/nodejs-web-security-scanner/compare/v1.0.6...v1.0.7) (2021-08-17)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.24.1 ([#72](https://www.github.com/googleapis/nodejs-web-security-scanner/issues/72)) ([3821eed](https://www.github.com/googleapis/nodejs-web-security-scanner/commit/3821eed56dc35cd476ce8042cdb18792cd9f0821))
+
+### [1.0.6](https://www.github.com/googleapis/nodejs-web-security-scanner/compare/v1.0.5...v1.0.6) (2021-07-16)
+
+
+### Bug Fixes
+
+* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#64](https://www.github.com/googleapis/nodejs-web-security-scanner/issues/64)) ([d22bb5d](https://www.github.com/googleapis/nodejs-web-security-scanner/commit/d22bb5d52449ee2329f603d2b7c5667e4a74a7f6))
+
+### [1.0.5](https://www.github.com/googleapis/nodejs-web-security-scanner/compare/v1.0.4...v1.0.5) (2021-07-12)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.1 ([#62](https://www.github.com/googleapis/nodejs-web-security-scanner/issues/62)) ([8dd2c22](https://www.github.com/googleapis/nodejs-web-security-scanner/commit/8dd2c2291b9cec0d3d2e0af39f44768293037d5c))
+
+### [1.0.4](https://www.github.com/googleapis/nodejs-web-security-scanner/compare/v1.0.3...v1.0.4) (2021-06-29)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.0 with mTLS ([#59](https://www.github.com/googleapis/nodejs-web-security-scanner/issues/59)) ([8ea4607](https://www.github.com/googleapis/nodejs-web-security-scanner/commit/8ea4607ee57ab7e876ec2d16a9e32f83b600a5e1))
+
+### [1.0.3](https://www.github.com/googleapis/nodejs-web-security-scanner/compare/v1.0.2...v1.0.3) (2021-06-23)
+
+
+### Bug Fixes
+
+* make request optional in all cases ([#55](https://www.github.com/googleapis/nodejs-web-security-scanner/issues/55)) ([c6dfc29](https://www.github.com/googleapis/nodejs-web-security-scanner/commit/c6dfc29bf8f9f69f5a94319bb2f3410e7a782e3d))
+
+### [1.0.2](https://www.github.com/googleapis/nodejs-web-security-scanner/compare/v1.0.1...v1.0.2) (2021-05-25)
+
+
+### Bug Fixes
+
+* GoogleAdsError missing using generator version after 1.3.0 ([#46](https://www.github.com/googleapis/nodejs-web-security-scanner/issues/46)) ([4d97ddc](https://www.github.com/googleapis/nodejs-web-security-scanner/commit/4d97ddc5340c337c6c80bf6c098e0f9a10f26297))
+
+### [1.0.1](https://www.github.com/googleapis/nodejs-web-security-scanner/compare/v1.0.0...v1.0.1) (2021-05-12)
+
+
+### Bug Fixes
+
+* **deps:** require google-gax v2.12.0 ([#38](https://www.github.com/googleapis/nodejs-web-security-scanner/issues/38)) ([5c32ea0](https://www.github.com/googleapis/nodejs-web-security-scanner/commit/5c32ea032303cd9a5276fd1ccff6a04232541ccd))
+* use require() to load JSON protos ([#41](https://www.github.com/googleapis/nodejs-web-security-scanner/issues/41)) ([0e4c54a](https://www.github.com/googleapis/nodejs-web-security-scanner/commit/0e4c54a70ad84df105b9bd9b94078d2d7d2bd43c))
+
+## 1.0.0 (2020-12-12)
+
+
+### ⚠ BREAKING CHANGES
+
+* write initial samples (#2)
+* initial stub of library
+
+### Features
+
+* initial stub of library ([5e79020](https://www.github.com/googleapis/nodejs-web-security-scanner/commit/5e79020df9274bb946122bc87494c4fb037cacfc))
+* write initial samples ([#2](https://www.github.com/googleapis/nodejs-web-security-scanner/issues/2)) ([f1e575b](https://www.github.com/googleapis/nodejs-web-security-scanner/commit/f1e575bcac6ab0223e8de3cefee70bb8699ee98d))
diff --git a/packages/google-cloud-websecurityscanner/CODE_OF_CONDUCT.md b/packages/google-cloud-websecurityscanner/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/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-websecurityscanner/CONTRIBUTING.md b/packages/google-cloud-websecurityscanner/CONTRIBUTING.md
new file mode 100644
index 00000000000..8403ca655a0
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/CONTRIBUTING.md
@@ -0,0 +1,76 @@
+# How to become a contributor and submit your own code
+
+**Table of contents**
+
+* [Contributor License Agreements](#contributor-license-agreements)
+* [Contributing a patch](#contributing-a-patch)
+* [Running the tests](#running-the-tests)
+* [Releasing the library](#releasing-the-library)
+
+## Contributor License Agreements
+
+We'd love to accept your sample apps and patches! Before we can take them, we
+have to jump a couple of legal hurdles.
+
+Please fill out either the individual or corporate Contributor License Agreement
+(CLA).
+
+ * If you are an individual writing original source code and you're sure you
+ own the intellectual property, then you'll need to sign an [individual CLA](https://developers.google.com/open-source/cla/individual).
+ * If you work for a company that wants to allow you to contribute your work,
+ then you'll need to sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate).
+
+Follow either of the two links above to access the appropriate CLA and
+instructions for how to sign and return it. Once we receive it, we'll be able to
+accept your pull requests.
+
+## Contributing A Patch
+
+1. Submit an issue describing your proposed change to the repo in question.
+1. The repo owner will respond to your issue promptly.
+1. If your proposed change is accepted, and you haven't already done so, sign a
+ Contributor License Agreement (see details above).
+1. Fork the desired repo, develop and test your code changes.
+1. Ensure that your code adheres to the existing style in the code to which
+ you are contributing.
+1. Ensure that your code has an appropriate set of tests which all pass.
+1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling.
+1. Submit a pull request.
+
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Web Security Scanner 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=websecurityscanner.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-websecurityscanner/LICENSE b/packages/google-cloud-websecurityscanner/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/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-websecurityscanner/README.md b/packages/google-cloud-websecurityscanner/README.md
new file mode 100644
index 00000000000..f8b9be08c6b
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/README.md
@@ -0,0 +1,164 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Web Security Scanner: Node.js Client](https://github.com/googleapis/nodejs-web-security-scanner)
+
+[](https://cloud.google.com/terms/launch-stages)
+[](https://www.npmjs.org/package/@google-cloud/web-security-scanner)
+
+
+
+
+Websecurityscanner client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/nodejs-web-security-scanner/blob/main/CHANGELOG.md).
+
+* [Web Security Scanner Node.js Client API Reference][client-docs]
+* [Web Security Scanner Documentation][product-docs]
+* [github.com/googleapis/nodejs-web-security-scanner](https://github.com/googleapis/nodejs-web-security-scanner)
+
+Read more about the client libraries for Cloud APIs, including the older
+Google APIs Client Libraries, in [Client Libraries Explained][explained].
+
+[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
+
+**Table of contents:**
+
+
+* [Quickstart](#quickstart)
+ * [Before you begin](#before-you-begin)
+ * [Installing the client library](#installing-the-client-library)
+ * [Using the client library](#using-the-client-library)
+* [Samples](#samples)
+* [Versioning](#versioning)
+* [Contributing](#contributing)
+* [License](#license)
+
+## Quickstart
+
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Web Security Scanner 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/web-security-scanner
+```
+
+
+### Using the client library
+
+```javascript
+// Imports the Google Cloud client library
+
+// remove this line after package is released
+// eslint-disable-next-line node/no-missing-require
+const {
+ WebSecurityScannerClient,
+} = require('@google-cloud/web-security-scanner');
+
+// TODO(developer): replace with your prefered project ID.
+// const projectId = 'my-project'
+
+// Creates a client
+// eslint-disable-next-line no-unused-vars
+const client = new WebSecurityScannerClient();
+
+//TODO(library generator): write the actual function you will be testing
+async function listConfigs() {
+ const stats = await client.listScanConfigs({
+ parent: `projects/${projectId}`,
+ });
+ console.info(stats);
+}
+listConfigs();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/nodejs-web-security-scanner/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-web-security-scanner/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-web-security-scanner&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
+
+
+
+The [Web Security Scanner 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/web-security-scanner@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-web-security-scanner/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-web-security-scanner/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/web-security-scanner/latest
+[product-docs]: https://cloud.google.com/security-scanner/
+[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=websecurityscanner.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-websecurityscanner/linkinator.config.json b/packages/google-cloud-websecurityscanner/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/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-websecurityscanner/package.json b/packages/google-cloud-websecurityscanner/package.json
new file mode 100644
index 00000000000..9eda94c01ef
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/package.json
@@ -0,0 +1,66 @@
+{
+ "name": "@google-cloud/web-security-scanner",
+ "version": "2.1.3",
+ "description": "Websecurityscanner client for Node.js",
+ "repository": "googleapis/nodejs-web-security-scanner",
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google websecurityscanner",
+ "websecurityscanner",
+ "web security scanner"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "predocs-test": "npm run docs",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "c8 mocha build/system-test",
+ "test": "c8 mocha build/test",
+ "samples-test": "cd samples/ && npm link ../ && npm test",
+ "prelint": "cd samples; npm link ../; npm i"
+ },
+ "dependencies": {
+ "google-gax": "^3.5.2"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^18.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.3.5",
+ "gts": "^3.1.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^2.0.0",
+ "jsdoc-region-tag": "^2.0.0",
+ "linkinator": "^4.0.0",
+ "mocha": "^9.2.2",
+ "null-loader": "^4.0.1",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^9.0.0",
+ "typescript": "^4.6.4",
+ "webpack": "^5.9.0",
+ "webpack-cli": "^4.2.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/crawled_url.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/crawled_url.proto
new file mode 100644
index 00000000000..65fc000ffc4
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/crawled_url.proto
@@ -0,0 +1,40 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1;
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "CrawledUrlProto";
+option java_package = "com.google.cloud.websecurityscanner.v1";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
+
+// A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
+// Security Scanner Service crawls the web applications, following all links
+// within the scope of sites, to find the URLs to test against.
+message CrawledUrl {
+ // Output only. The http method of the request that was used to visit the URL, in
+ // uppercase.
+ string http_method = 1;
+
+ // Output only. The URL that was crawled.
+ string url = 2;
+
+ // Output only. The body of the request that was used to visit the URL.
+ string body = 3;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding.proto
new file mode 100644
index 00000000000..71fea950193
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding.proto
@@ -0,0 +1,122 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/websecurityscanner/v1/finding_addon.proto";
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "FindingProto";
+option java_package = "com.google.cloud.websecurityscanner.v1";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
+
+// A Finding resource represents a vulnerability instance identified during a
+// ScanRun.
+message Finding {
+ option (google.api.resource) = {
+ type: "websecurityscanner.googleapis.com/Finding"
+ pattern: "projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}"
+ };
+
+ // The severity level of a vulnerability.
+ enum Severity {
+ // No severity specified. The default value.
+ SEVERITY_UNSPECIFIED = 0;
+
+ // Critical severity.
+ CRITICAL = 1;
+
+ // High severity.
+ HIGH = 2;
+
+ // Medium severity.
+ MEDIUM = 3;
+
+ // Low severity.
+ LOW = 4;
+ }
+
+ // Output only. The resource name of the Finding. The name follows the format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
+ // The finding IDs are generated by the system.
+ string name = 1;
+
+ // Output only. The type of the Finding.
+ // Detailed and up-to-date information on findings can be found here:
+ // https://cloud.google.com/security-command-center/docs/how-to-remediate-web-security-scanner-findings
+ string finding_type = 2;
+
+ // Output only. The severity level of the reported vulnerability.
+ Severity severity = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The http method of the request that triggered the vulnerability, in
+ // uppercase.
+ string http_method = 3;
+
+ // Output only. The URL produced by the server-side fuzzer and used in the request that
+ // triggered the vulnerability.
+ string fuzzed_url = 4;
+
+ // Output only. The body of the request that triggered the vulnerability.
+ string body = 5;
+
+ // Output only. The description of the vulnerability.
+ string description = 6;
+
+ // Output only. The URL containing human-readable payload that user can leverage to
+ // reproduce the vulnerability.
+ string reproduction_url = 7;
+
+ // Output only. If the vulnerability was originated from nested IFrame, the immediate
+ // parent IFrame is reported.
+ string frame_url = 8;
+
+ // Output only. The URL where the browser lands when the vulnerability is detected.
+ string final_url = 9;
+
+ // Output only. The tracking ID uniquely identifies a vulnerability instance across
+ // multiple ScanRuns.
+ string tracking_id = 10;
+
+ // Output only. An addon containing information reported for a vulnerability with an HTML
+ // form, if any.
+ Form form = 16;
+
+ // Output only. An addon containing information about outdated libraries.
+ OutdatedLibrary outdated_library = 11;
+
+ // Output only. An addon containing detailed information regarding any resource causing the
+ // vulnerability such as JavaScript sources, image, audio files, etc.
+ ViolatingResource violating_resource = 12;
+
+ // Output only. An addon containing information about vulnerable or missing HTTP headers.
+ VulnerableHeaders vulnerable_headers = 15;
+
+ // Output only. An addon containing information about request parameters which were found
+ // to be vulnerable.
+ VulnerableParameters vulnerable_parameters = 13;
+
+ // Output only. An addon containing information reported for an XSS, if any.
+ Xss xss = 14;
+
+ // Output only. An addon containing information reported for an XXE, if any.
+ Xxe xxe = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_addon.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_addon.proto
new file mode 100644
index 00000000000..1bcec8c716f
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_addon.proto
@@ -0,0 +1,166 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1;
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "FindingAddonProto";
+option java_package = "com.google.cloud.websecurityscanner.v1";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
+
+// ! Information about a vulnerability with an HTML.
+message Form {
+ // ! The URI where to send the form when it's submitted.
+ string action_uri = 1;
+
+ // ! The names of form fields related to the vulnerability.
+ repeated string fields = 2;
+}
+
+// Information reported for an outdated library.
+message OutdatedLibrary {
+ // The name of the outdated library.
+ string library_name = 1;
+
+ // The version number.
+ string version = 2;
+
+ // URLs to learn more information about the vulnerabilities in the library.
+ repeated string learn_more_urls = 3;
+}
+
+// Information regarding any resource causing the vulnerability such
+// as JavaScript sources, image, audio files, etc.
+message ViolatingResource {
+ // The MIME type of this resource.
+ string content_type = 1;
+
+ // URL of this violating resource.
+ string resource_url = 2;
+}
+
+// Information about vulnerable request parameters.
+message VulnerableParameters {
+ // The vulnerable parameter names.
+ repeated string parameter_names = 1;
+}
+
+// Information about vulnerable or missing HTTP Headers.
+message VulnerableHeaders {
+ // Describes a HTTP Header.
+ message Header {
+ // Header name.
+ string name = 1;
+
+ // Header value.
+ string value = 2;
+ }
+
+ // List of vulnerable headers.
+ repeated Header headers = 1;
+
+ // List of missing headers.
+ repeated Header missing_headers = 2;
+}
+
+// Information reported for an XSS.
+message Xss {
+ // Types of XSS attack vector.
+ enum AttackVector {
+ // Unknown attack vector.
+ ATTACK_VECTOR_UNSPECIFIED = 0;
+
+ // The attack comes from fuzzing the browser's localStorage.
+ LOCAL_STORAGE = 1;
+
+ // The attack comes from fuzzing the browser's sessionStorage.
+ SESSION_STORAGE = 2;
+
+ // The attack comes from fuzzing the window's name property.
+ WINDOW_NAME = 3;
+
+ // The attack comes from fuzzing the referrer property.
+ REFERRER = 4;
+
+ // The attack comes from fuzzing an input element.
+ FORM_INPUT = 5;
+
+ // The attack comes from fuzzing the browser's cookies.
+ COOKIE = 6;
+
+ // The attack comes from hijacking the post messaging mechanism.
+ POST_MESSAGE = 7;
+
+ // The attack comes from fuzzing parameters in the url.
+ GET_PARAMETERS = 8;
+
+ // The attack comes from fuzzing the fragment in the url.
+ URL_FRAGMENT = 9;
+
+ // The attack comes from fuzzing the HTML comments.
+ HTML_COMMENT = 10;
+
+ // The attack comes from fuzzing the POST parameters.
+ POST_PARAMETERS = 11;
+
+ // The attack comes from fuzzing the protocol.
+ PROTOCOL = 12;
+
+ // The attack comes from the server side and is stored.
+ STORED_XSS = 13;
+
+ // The attack is a Same-Origin Method Execution attack via a GET parameter.
+ SAME_ORIGIN = 14;
+
+ // The attack payload is received from a third-party host via a URL that is
+ // user-controllable
+ USER_CONTROLLABLE_URL = 15;
+ }
+
+ // Stack traces leading to the point where the XSS occurred.
+ repeated string stack_traces = 1;
+
+ // An error message generated by a javascript breakage.
+ string error_message = 2;
+
+ // The attack vector of the payload triggering this XSS.
+ AttackVector attack_vector = 3;
+
+ // The reproduction url for the seeding POST request of a Stored XSS.
+ string stored_xss_seeding_url = 4;
+}
+
+// Information reported for an XXE.
+message Xxe {
+ // Locations within a request where XML was substituted.
+ enum Location {
+ // Unknown Location.
+ LOCATION_UNSPECIFIED = 0;
+
+ // The XML payload replaced the complete request body.
+ COMPLETE_REQUEST_BODY = 1;
+ }
+
+ // The XML string that triggered the XXE vulnerability. Non-payload values
+ // might be redacted.
+ string payload_value = 1;
+
+ // Location within the request where the payload was placed.
+ Location payload_location = 2;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_type_stats.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_type_stats.proto
new file mode 100644
index 00000000000..7999f76d6a7
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_type_stats.proto
@@ -0,0 +1,35 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1;
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "FindingTypeStatsProto";
+option java_package = "com.google.cloud.websecurityscanner.v1";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
+
+// A FindingTypeStats resource represents stats regarding a specific FindingType
+// of Findings under a given ScanRun.
+message FindingTypeStats {
+ // Output only. The finding type associated with the stats.
+ string finding_type = 1;
+
+ // Output only. The count of findings belonging to this finding type.
+ int32 finding_count = 2;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config.proto
new file mode 100644
index 00000000000..85641af2fb5
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config.proto
@@ -0,0 +1,193 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanConfigProto";
+option java_package = "com.google.cloud.websecurityscanner.v1";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
+
+// A ScanConfig resource contains the configurations to launch a scan.
+message ScanConfig {
+ // Scan authentication configuration.
+ message Authentication {
+ // Describes authentication configuration that uses a Google account.
+ message GoogleAccount {
+ option deprecated = true;
+
+ // Required. The user name of the Google account.
+ string username = 1;
+
+ // Required. Input only. The password of the Google account. The credential is stored encrypted
+ // and not returned in any response nor included in audit logs.
+ string password = 2;
+ }
+
+ // Describes authentication configuration that uses a custom account.
+ message CustomAccount {
+ // Required. The user name of the custom account.
+ string username = 1;
+
+ // Required. Input only. The password of the custom account. The credential is stored encrypted
+ // and not returned in any response nor included in audit logs.
+ string password = 2;
+
+ // Required. The login form URL of the website.
+ string login_url = 3;
+ }
+
+ // Describes authentication configuration for Identity-Aware-Proxy (IAP).
+ message IapCredential {
+ // Describes authentication configuration when Web-Security-Scanner
+ // service account is added in Identity-Aware-Proxy (IAP) access policies.
+ message IapTestServiceAccountInfo {
+ // Required. Describes OAuth2 client id of resources protected by
+ // Identity-Aware-Proxy (IAP).
+ string target_audience_client_id = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Identity-Aware-Proxy (IAP) Authentication Configuration
+ oneof iap_credentials {
+ // Authentication configuration when Web-Security-Scanner service
+ // account is added in Identity-Aware-Proxy (IAP) access policies.
+ IapTestServiceAccountInfo iap_test_service_account_info = 1;
+ }
+ }
+
+ // Required.
+ // Authentication configuration
+ oneof authentication {
+ // Authentication using a Google account.
+ GoogleAccount google_account = 1 [deprecated = true];
+
+ // Authentication using a custom account.
+ CustomAccount custom_account = 2;
+
+ // Authentication using Identity-Aware-Proxy (IAP).
+ IapCredential iap_credential = 4;
+ }
+ }
+
+ // Scan schedule configuration.
+ message Schedule {
+ // A timestamp indicates when the next run will be scheduled. The value is
+ // refreshed by the server after each run. If unspecified, it will default
+ // to current server time, which means the scan will be scheduled to start
+ // immediately.
+ google.protobuf.Timestamp schedule_time = 1;
+
+ // Required. The duration of time between executions in days.
+ int32 interval_duration_days = 2;
+ }
+
+ // Type of user agents used for scanning.
+ enum UserAgent {
+ // The user agent is unknown. Service will default to CHROME_LINUX.
+ USER_AGENT_UNSPECIFIED = 0;
+
+ // Chrome on Linux. This is the service default if unspecified.
+ CHROME_LINUX = 1;
+
+ // Chrome on Android.
+ CHROME_ANDROID = 2;
+
+ // Safari on IPhone.
+ SAFARI_IPHONE = 3;
+ }
+
+ // Scan risk levels supported by Web Security Scanner. LOW impact
+ // scanning will minimize requests with the potential to modify data. To
+ // achieve the maximum scan coverage, NORMAL risk level is recommended.
+ enum RiskLevel {
+ // Use default, which is NORMAL.
+ RISK_LEVEL_UNSPECIFIED = 0;
+
+ // Normal scanning (Recommended)
+ NORMAL = 1;
+
+ // Lower impact scanning
+ LOW = 2;
+ }
+
+ // Controls export of scan configurations and results to Security
+ // Command Center.
+ enum ExportToSecurityCommandCenter {
+ // Use default, which is ENABLED.
+ EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED = 0;
+
+ // Export results of this scan to Security Command Center.
+ ENABLED = 1;
+
+ // Do not export results of this scan to Security Command Center.
+ DISABLED = 2;
+ }
+
+ // The resource name of the ScanConfig. The name follows the format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
+ // generated by the system.
+ string name = 1;
+
+ // Required. The user provided display name of the ScanConfig.
+ string display_name = 2;
+
+ // The maximum QPS during scanning. A valid value ranges from 5 to 20
+ // inclusively. If the field is unspecified or its value is set 0, server will
+ // default to 15. Other values outside of [5, 20] range will be rejected with
+ // INVALID_ARGUMENT error.
+ int32 max_qps = 3;
+
+ // Required. The starting URLs from which the scanner finds site pages.
+ repeated string starting_urls = 4;
+
+ // The authentication configuration. If specified, service will use the
+ // authentication configuration during scanning.
+ Authentication authentication = 5;
+
+ // The user agent used during scanning.
+ UserAgent user_agent = 6;
+
+ // The excluded URL patterns as described in
+ // https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
+ repeated string blacklist_patterns = 7;
+
+ // The schedule of the ScanConfig.
+ Schedule schedule = 8;
+
+ // Controls export of scan configurations and results to Security
+ // Command Center.
+ ExportToSecurityCommandCenter export_to_security_command_center = 10;
+
+ // The risk level selected for the scan
+ RiskLevel risk_level = 12;
+
+ // Whether the scan config is managed by Web Security Scanner, output
+ // only.
+ bool managed_scan = 13;
+
+ // Whether the scan configuration has enabled static IP address scan feature.
+ // If enabled, the scanner will access applications from static IP addresses.
+ bool static_ip_scan = 14;
+
+ // Whether to keep scanning even if most requests return HTTP error codes.
+ bool ignore_http_status_errors = 15;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config_error.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config_error.proto
new file mode 100644
index 00000000000..5924f91553d
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config_error.proto
@@ -0,0 +1,189 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1;
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanConfigErrorProto";
+option java_package = "com.google.cloud.websecurityscanner.v1";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
+
+// Defines a custom error message used by CreateScanConfig and UpdateScanConfig
+// APIs when scan configuration validation fails. It is also reported as part of
+// a ScanRunErrorTrace message if scan validation fails due to a scan
+// configuration error.
+message ScanConfigError {
+ // Output only.
+ // Defines an error reason code.
+ // Next id: 44
+ enum Code {
+ option allow_alias = true;
+
+ // There is no error.
+ CODE_UNSPECIFIED = 0;
+
+ // There is no error.
+ OK = 0;
+
+ // Indicates an internal server error.
+ // Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
+ INTERNAL_ERROR = 1;
+
+ // One of the seed URLs is an App Engine URL but we cannot validate the scan
+ // settings due to an App Engine API backend error.
+ APPENGINE_API_BACKEND_ERROR = 2;
+
+ // One of the seed URLs is an App Engine URL but we cannot access the
+ // App Engine API to validate scan settings.
+ APPENGINE_API_NOT_ACCESSIBLE = 3;
+
+ // One of the seed URLs is an App Engine URL but the Default Host of the
+ // App Engine is not set.
+ APPENGINE_DEFAULT_HOST_MISSING = 4;
+
+ // Google corporate accounts can not be used for scanning.
+ CANNOT_USE_GOOGLE_COM_ACCOUNT = 6;
+
+ // The account of the scan creator can not be used for scanning.
+ CANNOT_USE_OWNER_ACCOUNT = 7;
+
+ // This scan targets Compute Engine, but we cannot validate scan settings
+ // due to a Compute Engine API backend error.
+ COMPUTE_API_BACKEND_ERROR = 8;
+
+ // This scan targets Compute Engine, but we cannot access the Compute Engine
+ // API to validate the scan settings.
+ COMPUTE_API_NOT_ACCESSIBLE = 9;
+
+ // The Custom Login URL does not belong to the current project.
+ CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT = 10;
+
+ // The Custom Login URL is malformed (can not be parsed).
+ CUSTOM_LOGIN_URL_MALFORMED = 11;
+
+ // The Custom Login URL is mapped to a non-routable IP address in DNS.
+ CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS = 12;
+
+ // The Custom Login URL is mapped to an IP address which is not reserved for
+ // the current project.
+ CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS = 13;
+
+ // The Custom Login URL has a non-routable IP address.
+ CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS = 14;
+
+ // The Custom Login URL has an IP address which is not reserved for the
+ // current project.
+ CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS = 15;
+
+ // Another scan with the same name (case-sensitive) already exists.
+ DUPLICATE_SCAN_NAME = 16;
+
+ // A field is set to an invalid value.
+ INVALID_FIELD_VALUE = 18;
+
+ // There was an error trying to authenticate to the scan target.
+ FAILED_TO_AUTHENTICATE_TO_TARGET = 19;
+
+ // Finding type value is not specified in the list findings request.
+ FINDING_TYPE_UNSPECIFIED = 20;
+
+ // Scan targets Compute Engine, yet current project was not whitelisted for
+ // Google Compute Engine Scanning Alpha access.
+ FORBIDDEN_TO_SCAN_COMPUTE = 21;
+
+ // User tries to update managed scan
+ FORBIDDEN_UPDATE_TO_MANAGED_SCAN = 43;
+
+ // The supplied filter is malformed. For example, it can not be parsed, does
+ // not have a filter type in expression, or the same filter type appears
+ // more than once.
+ MALFORMED_FILTER = 22;
+
+ // The supplied resource name is malformed (can not be parsed).
+ MALFORMED_RESOURCE_NAME = 23;
+
+ // The current project is not in an active state.
+ PROJECT_INACTIVE = 24;
+
+ // A required field is not set.
+ REQUIRED_FIELD = 25;
+
+ // Project id, scanconfig id, scanrun id, or finding id are not consistent
+ // with each other in resource name.
+ RESOURCE_NAME_INCONSISTENT = 26;
+
+ // The scan being requested to start is already running.
+ SCAN_ALREADY_RUNNING = 27;
+
+ // The scan that was requested to be stopped is not running.
+ SCAN_NOT_RUNNING = 28;
+
+ // One of the seed URLs does not belong to the current project.
+ SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT = 29;
+
+ // One of the seed URLs is malformed (can not be parsed).
+ SEED_URL_MALFORMED = 30;
+
+ // One of the seed URLs is mapped to a non-routable IP address in DNS.
+ SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS = 31;
+
+ // One of the seed URLs is mapped to an IP address which is not reserved
+ // for the current project.
+ SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS = 32;
+
+ // One of the seed URLs has on-routable IP address.
+ SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS = 33;
+
+ // One of the seed URLs has an IP address that is not reserved
+ // for the current project.
+ SEED_URL_HAS_UNRESERVED_IP_ADDRESS = 35;
+
+ // The Web Security Scanner service account is not configured under the
+ // project.
+ SERVICE_ACCOUNT_NOT_CONFIGURED = 36;
+
+ // A project has reached the maximum number of scans.
+ TOO_MANY_SCANS = 37;
+
+ // Resolving the details of the current project fails.
+ UNABLE_TO_RESOLVE_PROJECT_INFO = 38;
+
+ // One or more blacklist patterns were in the wrong format.
+ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT = 39;
+
+ // The supplied filter is not supported.
+ UNSUPPORTED_FILTER = 40;
+
+ // The supplied finding type is not supported. For example, we do not
+ // provide findings of the given finding type.
+ UNSUPPORTED_FINDING_TYPE = 41;
+
+ // The URL scheme of one or more of the supplied URLs is not supported.
+ UNSUPPORTED_URL_SCHEME = 42;
+ }
+
+ // Output only. Indicates the reason code for a configuration failure.
+ Code code = 1;
+
+ // Output only. Indicates the full name of the ScanConfig field that triggers this error,
+ // for example "scan_config.max_qps". This field is provided for
+ // troubleshooting purposes only and its actual value can change in the
+ // future.
+ string field_name = 2;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run.proto
new file mode 100644
index 00000000000..71df3a043ee
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run.proto
@@ -0,0 +1,110 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1;
+
+import "google/cloud/websecurityscanner/v1/scan_run_error_trace.proto";
+import "google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanRunProto";
+option java_package = "com.google.cloud.websecurityscanner.v1";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
+
+// A ScanRun is a output-only resource representing an actual run of the scan.
+// Next id: 12
+message ScanRun {
+ // Types of ScanRun execution state.
+ enum ExecutionState {
+ // Represents an invalid state caused by internal server error. This value
+ // should never be returned.
+ EXECUTION_STATE_UNSPECIFIED = 0;
+
+ // The scan is waiting in the queue.
+ QUEUED = 1;
+
+ // The scan is in progress.
+ SCANNING = 2;
+
+ // The scan is either finished or stopped by user.
+ FINISHED = 3;
+ }
+
+ // Types of ScanRun result state.
+ enum ResultState {
+ // Default value. This value is returned when the ScanRun is not yet
+ // finished.
+ RESULT_STATE_UNSPECIFIED = 0;
+
+ // The scan finished without errors.
+ SUCCESS = 1;
+
+ // The scan finished with errors.
+ ERROR = 2;
+
+ // The scan was terminated by user.
+ KILLED = 3;
+ }
+
+ // Output only. The resource name of the ScanRun. The name follows the format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ // The ScanRun IDs are generated by the system.
+ string name = 1;
+
+ // Output only. The execution state of the ScanRun.
+ ExecutionState execution_state = 2;
+
+ // Output only. The result state of the ScanRun. This field is only available after the
+ // execution state reaches "FINISHED".
+ ResultState result_state = 3;
+
+ // Output only. The time at which the ScanRun started.
+ google.protobuf.Timestamp start_time = 4;
+
+ // Output only. The time at which the ScanRun reached termination state - that the ScanRun
+ // is either finished or stopped by user.
+ google.protobuf.Timestamp end_time = 5;
+
+ // Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
+ // the value represents the number of URLs crawled up to now.
+ int64 urls_crawled_count = 6;
+
+ // Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
+ // the value represents the number of URLs tested up to now. The number of
+ // URLs tested is usually larger than the number URLS crawled because
+ // typically a crawled URL is tested with multiple test payloads.
+ int64 urls_tested_count = 7;
+
+ // Output only. Whether the scan run has found any vulnerabilities.
+ bool has_vulnerabilities = 8;
+
+ // Output only. The percentage of total completion ranging from 0 to 100.
+ // If the scan is in queue, the value is 0.
+ // If the scan is running, the value ranges from 0 to 100.
+ // If the scan is finished, the value is 100.
+ int32 progress_percent = 9;
+
+ // Output only. If result_state is an ERROR, this field provides the primary reason for
+ // scan's termination and more details, if such are available.
+ ScanRunErrorTrace error_trace = 10;
+
+ // Output only. A list of warnings, if such are encountered during this scan run.
+ repeated ScanRunWarningTrace warning_traces = 11;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto
new file mode 100644
index 00000000000..0c41c14321f
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto
@@ -0,0 +1,75 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1;
+
+import "google/cloud/websecurityscanner/v1/scan_config_error.proto";
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanRunErrorTraceProto";
+option java_package = "com.google.cloud.websecurityscanner.v1";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
+
+// Output only.
+// Defines an error trace message for a ScanRun.
+message ScanRunErrorTrace {
+ // Output only.
+ // Defines an error reason code.
+ // Next id: 8
+ enum Code {
+ // Default value is never used.
+ CODE_UNSPECIFIED = 0;
+
+ // Indicates that the scan run failed due to an internal server error.
+ INTERNAL_ERROR = 1;
+
+ // Indicates a scan configuration error, usually due to outdated ScanConfig
+ // settings, such as starting_urls or the DNS configuration.
+ SCAN_CONFIG_ISSUE = 2;
+
+ // Indicates an authentication error, usually due to outdated ScanConfig
+ // authentication settings.
+ AUTHENTICATION_CONFIG_ISSUE = 3;
+
+ // Indicates a scan operation timeout, usually caused by a very large site.
+ TIMED_OUT_WHILE_SCANNING = 4;
+
+ // Indicates that a scan encountered excessive redirects, either to
+ // authentication or some other page outside of the scan scope.
+ TOO_MANY_REDIRECTS = 5;
+
+ // Indicates that a scan encountered numerous errors from the web site
+ // pages. When available, most_common_http_error_code field indicates the
+ // most common HTTP error code encountered during the scan.
+ TOO_MANY_HTTP_ERRORS = 6;
+ }
+
+ // Output only. Indicates the error reason code.
+ Code code = 1;
+
+ // Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
+ // message encountered during scan configuration validation that is performed
+ // before each scan run.
+ ScanConfigError scan_config_error = 2;
+
+ // Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
+ // common HTTP error code, if such is available. For example, if this code is
+ // 404, the scan has encountered too many NOT_FOUND responses.
+ int32 most_common_http_error_code = 3;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_log.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_log.proto
new file mode 100644
index 00000000000..1ff167e3f3d
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_log.proto
@@ -0,0 +1,55 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1;
+
+import "google/cloud/websecurityscanner/v1/scan_run.proto";
+import "google/cloud/websecurityscanner/v1/scan_run_error_trace.proto";
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanRunLogProto";
+option java_package = "com.google.cloud.websecurityscanner.v1";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
+
+// A ScanRunLog is an output-only proto used for Stackdriver customer logging.
+// It is used for logs covering the start and end of scan pipelines.
+// Other than an added summary, this is a subset of the ScanRun.
+// Representation in logs is either a proto Struct, or converted to JSON.
+// Next id: 9
+message ScanRunLog {
+ // Human friendly message about the event.
+ string summary = 1;
+
+ // The resource name of the ScanRun being logged.
+ string name = 2;
+
+ // The execution state of the ScanRun.
+ google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3;
+
+ // The result state of the ScanRun.
+ google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4;
+
+ int64 urls_crawled_count = 5;
+
+ int64 urls_tested_count = 6;
+
+ bool has_findings = 7;
+
+ google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto
new file mode 100644
index 00000000000..dfc61697701
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto
@@ -0,0 +1,61 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1;
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanRunWarningTraceProto";
+option java_package = "com.google.cloud.websecurityscanner.v1";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
+
+// Output only.
+// Defines a warning trace message for ScanRun. Warning traces provide customers
+// with useful information that helps make the scanning process more effective.
+message ScanRunWarningTrace {
+ // Output only.
+ // Defines a warning message code.
+ // Next id: 6
+ enum Code {
+ // Default value is never used.
+ CODE_UNSPECIFIED = 0;
+
+ // Indicates that a scan discovered an unexpectedly low number of URLs. This
+ // is sometimes caused by complex navigation features or by using a single
+ // URL for numerous pages.
+ INSUFFICIENT_CRAWL_RESULTS = 1;
+
+ // Indicates that a scan discovered too many URLs to test, or excessive
+ // redundant URLs.
+ TOO_MANY_CRAWL_RESULTS = 2;
+
+ // Indicates that too many tests have been generated for the scan. Customer
+ // should try reducing the number of starting URLs, increasing the QPS rate,
+ // or narrowing down the scope of the scan using the excluded patterns.
+ TOO_MANY_FUZZ_TASKS = 3;
+
+ // Indicates that a scan is blocked by IAP.
+ BLOCKED_BY_IAP = 4;
+
+ // Indicates that no seeds is found for a scan
+ NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN = 5;
+ }
+
+ // Output only. Indicates the warning code.
+ Code code = 1;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/web_security_scanner.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/web_security_scanner.proto
new file mode 100644
index 00000000000..efcc9bf2d39
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/web_security_scanner.proto
@@ -0,0 +1,337 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/cloud/websecurityscanner/v1/crawled_url.proto";
+import "google/cloud/websecurityscanner/v1/finding.proto";
+import "google/cloud/websecurityscanner/v1/finding_type_stats.proto";
+import "google/cloud/websecurityscanner/v1/scan_config.proto";
+import "google/cloud/websecurityscanner/v1/scan_run.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "WebSecurityScannerProto";
+option java_package = "com.google.cloud.websecurityscanner.v1";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
+
+// Web Security Scanner Service identifies security vulnerabilities in web
+// applications hosted on Google Cloud. It crawls your application, and
+// attempts to exercise as many user inputs and event handlers as possible.
+service WebSecurityScanner {
+ option (google.api.default_host) = "websecurityscanner.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Creates a new ScanConfig.
+ rpc CreateScanConfig(CreateScanConfigRequest) returns (ScanConfig) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*}/scanConfigs"
+ body: "scan_config"
+ };
+ }
+
+ // Deletes an existing ScanConfig and its child resources.
+ rpc DeleteScanConfig(DeleteScanConfigRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/scanConfigs/*}"
+ };
+ }
+
+ // Gets a ScanConfig.
+ rpc GetScanConfig(GetScanConfigRequest) returns (ScanConfig) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/scanConfigs/*}"
+ };
+ }
+
+ // Lists ScanConfigs under a given project.
+ rpc ListScanConfigs(ListScanConfigsRequest) returns (ListScanConfigsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*}/scanConfigs"
+ };
+ }
+
+ // Updates a ScanConfig. This method support partial update of a ScanConfig.
+ rpc UpdateScanConfig(UpdateScanConfigRequest) returns (ScanConfig) {
+ option (google.api.http) = {
+ patch: "/v1/{scan_config.name=projects/*/scanConfigs/*}"
+ body: "scan_config"
+ };
+ }
+
+ // Start a ScanRun according to the given ScanConfig.
+ rpc StartScanRun(StartScanRunRequest) returns (ScanRun) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/scanConfigs/*}:start"
+ body: "*"
+ };
+ }
+
+ // Gets a ScanRun.
+ rpc GetScanRun(GetScanRunRequest) returns (ScanRun) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/scanConfigs/*/scanRuns/*}"
+ };
+ }
+
+ // Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+ // stop time.
+ rpc ListScanRuns(ListScanRunsRequest) returns (ListScanRunsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/scanConfigs/*}/scanRuns"
+ };
+ }
+
+ // Stops a ScanRun. The stopped ScanRun is returned.
+ rpc StopScanRun(StopScanRunRequest) returns (ScanRun) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/scanConfigs/*/scanRuns/*}:stop"
+ body: "*"
+ };
+ }
+
+ // List CrawledUrls under a given ScanRun.
+ rpc ListCrawledUrls(ListCrawledUrlsRequest) returns (ListCrawledUrlsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls"
+ };
+ }
+
+ // Gets a Finding.
+ rpc GetFinding(GetFindingRequest) returns (Finding) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}"
+ };
+ }
+
+ // List Findings under a given ScanRun.
+ rpc ListFindings(ListFindingsRequest) returns (ListFindingsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings"
+ };
+ }
+
+ // List all FindingTypeStats under a given ScanRun.
+ rpc ListFindingTypeStats(ListFindingTypeStatsRequest) returns (ListFindingTypeStatsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats"
+ };
+ }
+}
+
+// Request for the `CreateScanConfig` method.
+message CreateScanConfigRequest {
+ // Required. The parent resource name where the scan is created, which should be a
+ // project resource name in the format 'projects/{projectId}'.
+ string parent = 1;
+
+ // Required. The ScanConfig to be created.
+ ScanConfig scan_config = 2;
+}
+
+// Request for the `DeleteScanConfig` method.
+message DeleteScanConfigRequest {
+ // Required. The resource name of the ScanConfig to be deleted. The name follows the
+ // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+ string name = 1;
+}
+
+// Request for the `GetScanConfig` method.
+message GetScanConfigRequest {
+ // Required. The resource name of the ScanConfig to be returned. The name follows the
+ // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+ string name = 1;
+}
+
+// Request for the `ListScanConfigs` method.
+message ListScanConfigsRequest {
+ // Required. The parent resource name, which should be a project resource name in the
+ // format 'projects/{projectId}'.
+ string parent = 1;
+
+ // A token identifying a page of results to be returned. This should be a
+ // `next_page_token` value returned from a previous List request.
+ // If unspecified, the first page of results is returned.
+ string page_token = 2;
+
+ // The maximum number of ScanConfigs to return, can be limited by server.
+ // If not specified or not positive, the implementation will select a
+ // reasonable value.
+ int32 page_size = 3;
+}
+
+// Request for the `UpdateScanConfigRequest` method.
+message UpdateScanConfigRequest {
+ // Required. The ScanConfig to be updated. The name field must be set to identify the
+ // resource to be updated. The values of fields not covered by the mask
+ // will be ignored.
+ ScanConfig scan_config = 2;
+
+ // Required. The update mask applies to the resource. For the `FieldMask` definition,
+ // see
+ // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+ google.protobuf.FieldMask update_mask = 3;
+}
+
+// Response for the `ListScanConfigs` method.
+message ListScanConfigsResponse {
+ // The list of ScanConfigs returned.
+ repeated ScanConfig scan_configs = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// Request for the `StartScanRun` method.
+message StartScanRunRequest {
+ // Required. The resource name of the ScanConfig to be used. The name follows the
+ // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+ string name = 1;
+}
+
+// Request for the `GetScanRun` method.
+message GetScanRunRequest {
+ // Required. The resource name of the ScanRun to be returned. The name follows the
+ // format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string name = 1;
+}
+
+// Request for the `ListScanRuns` method.
+message ListScanRunsRequest {
+ // Required. The parent resource name, which should be a scan resource name in the
+ // format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+ string parent = 1;
+
+ // A token identifying a page of results to be returned. This should be a
+ // `next_page_token` value returned from a previous List request.
+ // If unspecified, the first page of results is returned.
+ string page_token = 2;
+
+ // The maximum number of ScanRuns to return, can be limited by server.
+ // If not specified or not positive, the implementation will select a
+ // reasonable value.
+ int32 page_size = 3;
+}
+
+// Response for the `ListScanRuns` method.
+message ListScanRunsResponse {
+ // The list of ScanRuns returned.
+ repeated ScanRun scan_runs = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// Request for the `StopScanRun` method.
+message StopScanRunRequest {
+ // Required. The resource name of the ScanRun to be stopped. The name follows the
+ // format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string name = 1;
+}
+
+// Request for the `ListCrawledUrls` method.
+message ListCrawledUrlsRequest {
+ // Required. The parent resource name, which should be a scan run resource name in the
+ // format
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string parent = 1;
+
+ // A token identifying a page of results to be returned. This should be a
+ // `next_page_token` value returned from a previous List request.
+ // If unspecified, the first page of results is returned.
+ string page_token = 2;
+
+ // The maximum number of CrawledUrls to return, can be limited by server.
+ // If not specified or not positive, the implementation will select a
+ // reasonable value.
+ int32 page_size = 3;
+}
+
+// Response for the `ListCrawledUrls` method.
+message ListCrawledUrlsResponse {
+ // The list of CrawledUrls returned.
+ repeated CrawledUrl crawled_urls = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// Request for the `GetFinding` method.
+message GetFindingRequest {
+ // Required. The resource name of the Finding to be returned. The name follows the
+ // format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+ string name = 1;
+}
+
+// Request for the `ListFindings` method.
+message ListFindingsRequest {
+ // Required. The parent resource name, which should be a scan run resource name in the
+ // format
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string parent = 1;
+
+ // The filter expression. The expression must be in the format:
+ // .
+ // Supported field: 'finding_type'.
+ // Supported operator: '='.
+ string filter = 2;
+
+ // A token identifying a page of results to be returned. This should be a
+ // `next_page_token` value returned from a previous List request.
+ // If unspecified, the first page of results is returned.
+ string page_token = 3;
+
+ // The maximum number of Findings to return, can be limited by server.
+ // If not specified or not positive, the implementation will select a
+ // reasonable value.
+ int32 page_size = 4;
+}
+
+// Response for the `ListFindings` method.
+message ListFindingsResponse {
+ // The list of Findings returned.
+ repeated Finding findings = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// Request for the `ListFindingTypeStats` method.
+message ListFindingTypeStatsRequest {
+ // Required. The parent resource name, which should be a scan run resource name in the
+ // format
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string parent = 1;
+}
+
+// Response for the `ListFindingTypeStats` method.
+message ListFindingTypeStatsResponse {
+ // The list of FindingTypeStats returned.
+ repeated FindingTypeStats finding_type_stats = 1;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/crawled_url.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/crawled_url.proto
new file mode 100644
index 00000000000..c22f4272f16
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/crawled_url.proto
@@ -0,0 +1,38 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1alpha;
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "CrawledUrlProto";
+option java_package = "com.google.cloud.websecurityscanner.v1alpha";
+
+// A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
+// Security Scanner Service crawls the web applications, following all links
+// within the scope of sites, to find the URLs to test against.
+message CrawledUrl {
+ // Output only. The http method of the request that was used to visit the URL, in
+ // uppercase.
+ string http_method = 1;
+
+ // Output only. The URL that was crawled.
+ string url = 2;
+
+ // Output only. The body of the request that was used to visit the URL.
+ string body = 3;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding.proto
new file mode 100644
index 00000000000..c02020f3431
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding.proto
@@ -0,0 +1,152 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1alpha;
+
+import "google/api/resource.proto";
+import "google/cloud/websecurityscanner/v1alpha/finding_addon.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "FindingProto";
+option java_package = "com.google.cloud.websecurityscanner.v1alpha";
+
+// A Finding resource represents a vulnerability instance identified during a
+// ScanRun.
+message Finding {
+ option (google.api.resource) = {
+ type: "websecurityscanner.googleapis.com/Finding"
+ pattern: "projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}"
+ };
+
+ // Types of Findings.
+ enum FindingType {
+ // The invalid finding type.
+ FINDING_TYPE_UNSPECIFIED = 0;
+
+ // A page that was served over HTTPS also resources over HTTP. A
+ // man-in-the-middle attacker could tamper with the HTTP resource and gain
+ // full access to the website that loads the resource or to monitor the
+ // actions taken by the user.
+ MIXED_CONTENT = 1;
+
+ // The version of an included library is known to contain a security issue.
+ // The scanner checks the version of library in use against a known list of
+ // vulnerable libraries. False positives are possible if the version
+ // detection fails or if the library has been manually patched.
+ OUTDATED_LIBRARY = 2;
+
+ // This type of vulnerability occurs when the value of a request parameter
+ // is reflected at the beginning of the response, for example, in requests
+ // using JSONP. Under certain circumstances, an attacker may be able to
+ // supply an alphanumeric-only Flash file in the vulnerable parameter
+ // causing the browser to execute the Flash file as if it originated on the
+ // vulnerable server.
+ ROSETTA_FLASH = 5;
+
+ // A cross-site scripting (XSS) bug is found via JavaScript callback. For
+ // detailed explanations on XSS, see
+ // https://www.google.com/about/appsecurity/learning/xss/.
+ XSS_CALLBACK = 3;
+
+ // A potential cross-site scripting (XSS) bug due to JavaScript breakage.
+ // In some circumstances, the application under test might modify the test
+ // string before it is parsed by the browser. When the browser attempts to
+ // runs this modified test string, it will likely break and throw a
+ // JavaScript execution error, thus an injection issue is occurring.
+ // However, it may not be exploitable. Manual verification is needed to see
+ // if the test string modifications can be evaded and confirm that the issue
+ // is in fact an XSS vulnerability. For detailed explanations on XSS, see
+ // https://www.google.com/about/appsecurity/learning/xss/.
+ XSS_ERROR = 4;
+
+ // An application appears to be transmitting a password field in clear text.
+ // An attacker can eavesdrop network traffic and sniff the password field.
+ CLEAR_TEXT_PASSWORD = 6;
+
+ // An application returns sensitive content with an invalid content type,
+ // or without an 'X-Content-Type-Options: nosniff' header.
+ INVALID_CONTENT_TYPE = 7;
+
+ // A cross-site scripting (XSS) vulnerability in AngularJS module that
+ // occurs when a user-provided string is interpolated by Angular.
+ XSS_ANGULAR_CALLBACK = 8;
+
+ // A malformed or invalid valued header.
+ INVALID_HEADER = 9;
+
+ // Misspelled security header name.
+ MISSPELLED_SECURITY_HEADER_NAME = 10;
+
+ // Mismatching values in a duplicate security header.
+ MISMATCHING_SECURITY_HEADER_VALUES = 11;
+ }
+
+ // The resource name of the Finding. The name follows the format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
+ // The finding IDs are generated by the system.
+ string name = 1;
+
+ // The type of the Finding.
+ FindingType finding_type = 2;
+
+ // The http method of the request that triggered the vulnerability, in
+ // uppercase.
+ string http_method = 3;
+
+ // The URL produced by the server-side fuzzer and used in the request that
+ // triggered the vulnerability.
+ string fuzzed_url = 4;
+
+ // The body of the request that triggered the vulnerability.
+ string body = 5;
+
+ // The description of the vulnerability.
+ string description = 6;
+
+ // The URL containing human-readable payload that user can leverage to
+ // reproduce the vulnerability.
+ string reproduction_url = 7;
+
+ // If the vulnerability was originated from nested IFrame, the immediate
+ // parent IFrame is reported.
+ string frame_url = 8;
+
+ // The URL where the browser lands when the vulnerability is detected.
+ string final_url = 9;
+
+ // The tracking ID uniquely identifies a vulnerability instance across
+ // multiple ScanRuns.
+ string tracking_id = 10;
+
+ // An addon containing information about outdated libraries.
+ OutdatedLibrary outdated_library = 11;
+
+ // An addon containing detailed information regarding any resource causing the
+ // vulnerability such as JavaScript sources, image, audio files, etc.
+ ViolatingResource violating_resource = 12;
+
+ // An addon containing information about vulnerable or missing HTTP headers.
+ VulnerableHeaders vulnerable_headers = 15;
+
+ // An addon containing information about request parameters which were found
+ // to be vulnerable.
+ VulnerableParameters vulnerable_parameters = 13;
+
+ // An addon containing information reported for an XSS, if any.
+ Xss xss = 14;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_addon.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_addon.proto
new file mode 100644
index 00000000000..3fafdb40206
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_addon.proto
@@ -0,0 +1,78 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1alpha;
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "FindingAddonProto";
+option java_package = "com.google.cloud.websecurityscanner.v1alpha";
+
+// Information reported for an outdated library.
+message OutdatedLibrary {
+ // The name of the outdated library.
+ string library_name = 1;
+
+ // The version number.
+ string version = 2;
+
+ // URLs to learn more information about the vulnerabilities in the library.
+ repeated string learn_more_urls = 3;
+}
+
+// Information regarding any resource causing the vulnerability such
+// as JavaScript sources, image, audio files, etc.
+message ViolatingResource {
+ // The MIME type of this resource.
+ string content_type = 1;
+
+ // URL of this violating resource.
+ string resource_url = 2;
+}
+
+// Information about vulnerable request parameters.
+message VulnerableParameters {
+ // The vulnerable parameter names.
+ repeated string parameter_names = 1;
+}
+
+// Information about vulnerable or missing HTTP Headers.
+message VulnerableHeaders {
+ // Describes a HTTP Header.
+ message Header {
+ // Header name.
+ string name = 1;
+
+ // Header value.
+ string value = 2;
+ }
+
+ // List of vulnerable headers.
+ repeated Header headers = 1;
+
+ // List of missing headers.
+ repeated Header missing_headers = 2;
+}
+
+// Information reported for an XSS.
+message Xss {
+ // Stack traces leading to the point where the XSS occurred.
+ repeated string stack_traces = 1;
+
+ // An error message generated by a javascript breakage.
+ string error_message = 2;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto
new file mode 100644
index 00000000000..e46b330c627
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto
@@ -0,0 +1,35 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1alpha;
+
+import "google/cloud/websecurityscanner/v1alpha/finding.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "FindingTypeStatsProto";
+option java_package = "com.google.cloud.websecurityscanner.v1alpha";
+
+// A FindingTypeStats resource represents stats regarding a specific FindingType
+// of Findings under a given ScanRun.
+message FindingTypeStats {
+ // The finding type associated with the stats.
+ Finding.FindingType finding_type = 1;
+
+ // The count of findings belonging to this finding type.
+ int32 finding_count = 2;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_config.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_config.proto
new file mode 100644
index 00000000000..5497b1a0f6a
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_config.proto
@@ -0,0 +1,157 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1alpha;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/websecurityscanner/v1alpha/scan_run.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanConfigProto";
+option java_package = "com.google.cloud.websecurityscanner.v1alpha";
+
+// A ScanConfig resource contains the configurations to launch a scan.
+// next id: 12
+message ScanConfig {
+ option (google.api.resource) = {
+ type: "websecurityscanner.googleapis.com/ScanConfig"
+ pattern: "projects/{project}/scanConfigs/{scan_config}"
+ };
+
+ // Scan authentication configuration.
+ message Authentication {
+ // Describes authentication configuration that uses a Google account.
+ message GoogleAccount {
+ // Required. The user name of the Google account.
+ string username = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Input only. The password of the Google account. The credential is stored encrypted
+ // and not returned in any response nor included in audit logs.
+ string password = 2 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.field_behavior) = INPUT_ONLY
+ ];
+ }
+
+ // Describes authentication configuration that uses a custom account.
+ message CustomAccount {
+ // Required. The user name of the custom account.
+ string username = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Input only. The password of the custom account. The credential is stored encrypted
+ // and not returned in any response nor included in audit logs.
+ string password = 2 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.field_behavior) = INPUT_ONLY
+ ];
+
+ // Required. The login form URL of the website.
+ string login_url = 3 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Required.
+ // Authentication configuration
+ oneof authentication {
+ // Authentication using a Google account.
+ GoogleAccount google_account = 1;
+
+ // Authentication using a custom account.
+ CustomAccount custom_account = 2;
+ }
+ }
+
+ // Scan schedule configuration.
+ message Schedule {
+ // A timestamp indicates when the next run will be scheduled. The value is
+ // refreshed by the server after each run. If unspecified, it will default
+ // to current server time, which means the scan will be scheduled to start
+ // immediately.
+ google.protobuf.Timestamp schedule_time = 1;
+
+ // Required. The duration of time between executions in days.
+ int32 interval_duration_days = 2 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Type of user agents used for scanning.
+ enum UserAgent {
+ // The user agent is unknown. Service will default to CHROME_LINUX.
+ USER_AGENT_UNSPECIFIED = 0;
+
+ // Chrome on Linux. This is the service default if unspecified.
+ CHROME_LINUX = 1;
+
+ // Chrome on Android.
+ CHROME_ANDROID = 2;
+
+ // Safari on IPhone.
+ SAFARI_IPHONE = 3;
+ }
+
+ // Cloud platforms supported by Cloud Web Security Scanner.
+ enum TargetPlatform {
+ // The target platform is unknown. Requests with this enum value will be
+ // rejected with INVALID_ARGUMENT error.
+ TARGET_PLATFORM_UNSPECIFIED = 0;
+
+ // Google App Engine service.
+ APP_ENGINE = 1;
+
+ // Google Compute Engine service.
+ COMPUTE = 2;
+ }
+
+ // The resource name of the ScanConfig. The name follows the format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
+ // generated by the system.
+ string name = 1;
+
+ // Required. The user provided display name of the ScanConfig.
+ string display_name = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The maximum QPS during scanning. A valid value ranges from 5 to 20
+ // inclusively. If the field is unspecified or its value is set 0, server will
+ // default to 15. Other values outside of [5, 20] range will be rejected with
+ // INVALID_ARGUMENT error.
+ int32 max_qps = 3;
+
+ // Required. The starting URLs from which the scanner finds site pages.
+ repeated string starting_urls = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // The authentication configuration. If specified, service will use the
+ // authentication configuration during scanning.
+ Authentication authentication = 5;
+
+ // The user agent used during scanning.
+ UserAgent user_agent = 6;
+
+ // The blacklist URL patterns as described in
+ // https://cloud.google.com/security-scanner/docs/excluded-urls
+ repeated string blacklist_patterns = 7;
+
+ // The schedule of the ScanConfig.
+ Schedule schedule = 8;
+
+ // Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
+ // used as a default.
+ repeated TargetPlatform target_platforms = 9;
+
+ // Latest ScanRun if available.
+ ScanRun latest_run = 11;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_run.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_run.proto
new file mode 100644
index 00000000000..79c54194938
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_run.proto
@@ -0,0 +1,104 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1alpha;
+
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanRunProto";
+option java_package = "com.google.cloud.websecurityscanner.v1alpha";
+
+// A ScanRun is a output-only resource representing an actual run of the scan.
+message ScanRun {
+ option (google.api.resource) = {
+ type: "websecurityscanner.googleapis.com/ScanRun"
+ pattern: "projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}"
+ };
+
+ // Types of ScanRun execution state.
+ enum ExecutionState {
+ // Represents an invalid state caused by internal server error. This value
+ // should never be returned.
+ EXECUTION_STATE_UNSPECIFIED = 0;
+
+ // The scan is waiting in the queue.
+ QUEUED = 1;
+
+ // The scan is in progress.
+ SCANNING = 2;
+
+ // The scan is either finished or stopped by user.
+ FINISHED = 3;
+ }
+
+ // Types of ScanRun result state.
+ enum ResultState {
+ // Default value. This value is returned when the ScanRun is not yet
+ // finished.
+ RESULT_STATE_UNSPECIFIED = 0;
+
+ // The scan finished without errors.
+ SUCCESS = 1;
+
+ // The scan finished with errors.
+ ERROR = 2;
+
+ // The scan was terminated by user.
+ KILLED = 3;
+ }
+
+ // The resource name of the ScanRun. The name follows the format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ // The ScanRun IDs are generated by the system.
+ string name = 1;
+
+ // The execution state of the ScanRun.
+ ExecutionState execution_state = 2;
+
+ // The result state of the ScanRun. This field is only available after the
+ // execution state reaches "FINISHED".
+ ResultState result_state = 3;
+
+ // The time at which the ScanRun started.
+ google.protobuf.Timestamp start_time = 4;
+
+ // The time at which the ScanRun reached termination state - that the ScanRun
+ // is either finished or stopped by user.
+ google.protobuf.Timestamp end_time = 5;
+
+ // The number of URLs crawled during this ScanRun. If the scan is in progress,
+ // the value represents the number of URLs crawled up to now.
+ int64 urls_crawled_count = 6;
+
+ // The number of URLs tested during this ScanRun. If the scan is in progress,
+ // the value represents the number of URLs tested up to now. The number of
+ // URLs tested is usually larger than the number URLS crawled because
+ // typically a crawled URL is tested with multiple test payloads.
+ int64 urls_tested_count = 7;
+
+ // Whether the scan run has found any vulnerabilities.
+ bool has_vulnerabilities = 8;
+
+ // The percentage of total completion ranging from 0 to 100.
+ // If the scan is in queue, the value is 0.
+ // If the scan is running, the value ranges from 0 to 100.
+ // If the scan is finished, the value is 100.
+ int32 progress_percent = 9;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto
new file mode 100644
index 00000000000..f34bd74d56b
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto
@@ -0,0 +1,410 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1alpha;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/websecurityscanner/v1alpha/crawled_url.proto";
+import "google/cloud/websecurityscanner/v1alpha/finding.proto";
+import "google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto";
+import "google/cloud/websecurityscanner/v1alpha/scan_config.proto";
+import "google/cloud/websecurityscanner/v1alpha/scan_run.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "WebSecurityScannerProto";
+option java_package = "com.google.cloud.websecurityscanner.v1alpha";
+
+// Cloud Web Security Scanner Service identifies security vulnerabilities in web
+// applications hosted on Google Cloud Platform. It crawls your application, and
+// attempts to exercise as many user inputs and event handlers as possible.
+service WebSecurityScanner {
+ option (google.api.default_host) = "websecurityscanner.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Creates a new ScanConfig.
+ rpc CreateScanConfig(CreateScanConfigRequest) returns (ScanConfig) {
+ option (google.api.http) = {
+ post: "/v1alpha/{parent=projects/*}/scanConfigs"
+ body: "scan_config"
+ };
+ option (google.api.method_signature) = "parent,scan_config";
+ }
+
+ // Deletes an existing ScanConfig and its child resources.
+ rpc DeleteScanConfig(DeleteScanConfigRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1alpha/{name=projects/*/scanConfigs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets a ScanConfig.
+ rpc GetScanConfig(GetScanConfigRequest) returns (ScanConfig) {
+ option (google.api.http) = {
+ get: "/v1alpha/{name=projects/*/scanConfigs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists ScanConfigs under a given project.
+ rpc ListScanConfigs(ListScanConfigsRequest) returns (ListScanConfigsResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*}/scanConfigs"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Updates a ScanConfig. This method support partial update of a ScanConfig.
+ rpc UpdateScanConfig(UpdateScanConfigRequest) returns (ScanConfig) {
+ option (google.api.http) = {
+ patch: "/v1alpha/{scan_config.name=projects/*/scanConfigs/*}"
+ body: "scan_config"
+ };
+ option (google.api.method_signature) = "scan_config,update_mask";
+ }
+
+ // Start a ScanRun according to the given ScanConfig.
+ rpc StartScanRun(StartScanRunRequest) returns (ScanRun) {
+ option (google.api.http) = {
+ post: "/v1alpha/{name=projects/*/scanConfigs/*}:start"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets a ScanRun.
+ rpc GetScanRun(GetScanRunRequest) returns (ScanRun) {
+ option (google.api.http) = {
+ get: "/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+ // stop time.
+ rpc ListScanRuns(ListScanRunsRequest) returns (ListScanRunsResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/scanConfigs/*}/scanRuns"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Stops a ScanRun. The stopped ScanRun is returned.
+ rpc StopScanRun(StopScanRunRequest) returns (ScanRun) {
+ option (google.api.http) = {
+ post: "/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*}:stop"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List CrawledUrls under a given ScanRun.
+ rpc ListCrawledUrls(ListCrawledUrlsRequest) returns (ListCrawledUrlsResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets a Finding.
+ rpc GetFinding(GetFindingRequest) returns (Finding) {
+ option (google.api.http) = {
+ get: "/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List Findings under a given ScanRun.
+ rpc ListFindings(ListFindingsRequest) returns (ListFindingsResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings"
+ };
+ option (google.api.method_signature) = "parent,filter";
+ }
+
+ // List all FindingTypeStats under a given ScanRun.
+ rpc ListFindingTypeStats(ListFindingTypeStatsRequest) returns (ListFindingTypeStatsResponse) {
+ option (google.api.http) = {
+ get: "/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// Request for the `CreateScanConfig` method.
+message CreateScanConfigRequest {
+ // Required. The parent resource name where the scan is created, which should be a
+ // project resource name in the format 'projects/{projectId}'.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Required. The ScanConfig to be created.
+ ScanConfig scan_config = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request for the `DeleteScanConfig` method.
+message DeleteScanConfigRequest {
+ // Required. The resource name of the ScanConfig to be deleted. The name follows the
+ // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanConfig"
+ }
+ ];
+}
+
+// Request for the `GetScanConfig` method.
+message GetScanConfigRequest {
+ // Required. The resource name of the ScanConfig to be returned. The name follows the
+ // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanConfig"
+ }
+ ];
+}
+
+// Request for the `ListScanConfigs` method.
+message ListScanConfigsRequest {
+ // Required. The parent resource name, which should be a project resource name in the
+ // format 'projects/{projectId}'.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // A token identifying a page of results to be returned. This should be a
+ // `next_page_token` value returned from a previous List request.
+ // If unspecified, the first page of results is returned.
+ string page_token = 2;
+
+ // The maximum number of ScanConfigs to return, can be limited by server.
+ // If not specified or not positive, the implementation will select a
+ // reasonable value.
+ int32 page_size = 3;
+}
+
+// Request for the `UpdateScanConfigRequest` method.
+message UpdateScanConfigRequest {
+ // Required. The ScanConfig to be updated. The name field must be set to identify the
+ // resource to be updated. The values of fields not covered by the mask
+ // will be ignored.
+ ScanConfig scan_config = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The update mask applies to the resource. For the `FieldMask` definition,
+ // see
+ // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+ google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Response for the `ListScanConfigs` method.
+message ListScanConfigsResponse {
+ // The list of ScanConfigs returned.
+ repeated ScanConfig scan_configs = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// Request for the `StartScanRun` method.
+message StartScanRunRequest {
+ // Required. The resource name of the ScanConfig to be used. The name follows the
+ // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanConfig"
+ }
+ ];
+}
+
+// Request for the `GetScanRun` method.
+message GetScanRunRequest {
+ // Required. The resource name of the ScanRun to be returned. The name follows the
+ // format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanRun"
+ }
+ ];
+}
+
+// Request for the `ListScanRuns` method.
+message ListScanRunsRequest {
+ // Required. The parent resource name, which should be a scan resource name in the
+ // format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanConfig"
+ }
+ ];
+
+ // A token identifying a page of results to be returned. This should be a
+ // `next_page_token` value returned from a previous List request.
+ // If unspecified, the first page of results is returned.
+ string page_token = 2;
+
+ // The maximum number of ScanRuns to return, can be limited by server.
+ // If not specified or not positive, the implementation will select a
+ // reasonable value.
+ int32 page_size = 3;
+}
+
+// Response for the `ListScanRuns` method.
+message ListScanRunsResponse {
+ // The list of ScanRuns returned.
+ repeated ScanRun scan_runs = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// Request for the `StopScanRun` method.
+message StopScanRunRequest {
+ // Required. The resource name of the ScanRun to be stopped. The name follows the
+ // format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanRun"
+ }
+ ];
+}
+
+// Request for the `ListCrawledUrls` method.
+message ListCrawledUrlsRequest {
+ // Required. The parent resource name, which should be a scan run resource name in the
+ // format
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanRun"
+ }
+ ];
+
+ // A token identifying a page of results to be returned. This should be a
+ // `next_page_token` value returned from a previous List request.
+ // If unspecified, the first page of results is returned.
+ string page_token = 2;
+
+ // The maximum number of CrawledUrls to return, can be limited by server.
+ // If not specified or not positive, the implementation will select a
+ // reasonable value.
+ int32 page_size = 3;
+}
+
+// Response for the `ListCrawledUrls` method.
+message ListCrawledUrlsResponse {
+ // The list of CrawledUrls returned.
+ repeated CrawledUrl crawled_urls = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// Request for the `GetFinding` method.
+message GetFindingRequest {
+ // Required. The resource name of the Finding to be returned. The name follows the
+ // format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/Finding"
+ }
+ ];
+}
+
+// Request for the `ListFindings` method.
+message ListFindingsRequest {
+ // Required. The parent resource name, which should be a scan run resource name in the
+ // format
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanRun"
+ }
+ ];
+
+ // Required. The filter expression. The expression must be in the format:
+ // .
+ // Supported field: 'finding_type'.
+ // Supported operator: '='.
+ string filter = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // A token identifying a page of results to be returned. This should be a
+ // `next_page_token` value returned from a previous List request.
+ // If unspecified, the first page of results is returned.
+ string page_token = 3;
+
+ // The maximum number of Findings to return, can be limited by server.
+ // If not specified or not positive, the implementation will select a
+ // reasonable value.
+ int32 page_size = 4;
+}
+
+// Response for the `ListFindings` method.
+message ListFindingsResponse {
+ // The list of Findings returned.
+ repeated Finding findings = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// Request for the `ListFindingTypeStats` method.
+message ListFindingTypeStatsRequest {
+ // Required. The parent resource name, which should be a scan run resource name in the
+ // format
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanRun"
+ }
+ ];
+}
+
+// Response for the `ListFindingTypeStats` method.
+message ListFindingTypeStatsResponse {
+ // The list of FindingTypeStats returned.
+ repeated FindingTypeStats finding_type_stats = 1;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/crawled_url.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/crawled_url.proto
new file mode 100644
index 00000000000..cbfead4cb3b
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/crawled_url.proto
@@ -0,0 +1,41 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1beta;
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "CrawledUrlProto";
+option java_package = "com.google.cloud.websecurityscanner.v1beta";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta";
+
+// A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
+// Security Scanner Service crawls the web applications, following all links
+// within the scope of sites, to find the URLs to test against.
+message CrawledUrl {
+ // The http method of the request that was used to visit the URL, in
+ // uppercase.
+ string http_method = 1;
+
+ // The URL that was crawled.
+ string url = 2;
+
+ // The body of the request that was used to visit the URL.
+ string body = 3;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding.proto
new file mode 100644
index 00000000000..999e0920d79
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding.proto
@@ -0,0 +1,98 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1beta;
+
+import "google/api/resource.proto";
+import "google/cloud/websecurityscanner/v1beta/finding_addon.proto";
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "FindingProto";
+option java_package = "com.google.cloud.websecurityscanner.v1beta";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta";
+
+// A Finding resource represents a vulnerability instance identified during a
+// ScanRun.
+message Finding {
+ option (google.api.resource) = {
+ type: "websecurityscanner.googleapis.com/Finding"
+ pattern: "projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}"
+ };
+
+ // The resource name of the Finding. The name follows the format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
+ // The finding IDs are generated by the system.
+ string name = 1;
+
+ // The type of the Finding.
+ // Detailed and up-to-date information on findings can be found here:
+ // https://cloud.google.com/security-scanner/docs/scan-result-details
+ string finding_type = 2;
+
+ // The http method of the request that triggered the vulnerability, in
+ // uppercase.
+ string http_method = 3;
+
+ // The URL produced by the server-side fuzzer and used in the request that
+ // triggered the vulnerability.
+ string fuzzed_url = 4;
+
+ // The body of the request that triggered the vulnerability.
+ string body = 5;
+
+ // The description of the vulnerability.
+ string description = 6;
+
+ // The URL containing human-readable payload that user can leverage to
+ // reproduce the vulnerability.
+ string reproduction_url = 7;
+
+ // If the vulnerability was originated from nested IFrame, the immediate
+ // parent IFrame is reported.
+ string frame_url = 8;
+
+ // The URL where the browser lands when the vulnerability is detected.
+ string final_url = 9;
+
+ // The tracking ID uniquely identifies a vulnerability instance across
+ // multiple ScanRuns.
+ string tracking_id = 10;
+
+ // An addon containing information reported for a vulnerability with an HTML
+ // form, if any.
+ Form form = 16;
+
+ // An addon containing information about outdated libraries.
+ OutdatedLibrary outdated_library = 11;
+
+ // An addon containing detailed information regarding any resource causing the
+ // vulnerability such as JavaScript sources, image, audio files, etc.
+ ViolatingResource violating_resource = 12;
+
+ // An addon containing information about vulnerable or missing HTTP headers.
+ VulnerableHeaders vulnerable_headers = 15;
+
+ // An addon containing information about request parameters which were found
+ // to be vulnerable.
+ VulnerableParameters vulnerable_parameters = 13;
+
+ // An addon containing information reported for an XSS, if any.
+ Xss xss = 14;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_addon.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_addon.proto
new file mode 100644
index 00000000000..c29f6cadd9a
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_addon.proto
@@ -0,0 +1,90 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1beta;
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "FindingAddonProto";
+option java_package = "com.google.cloud.websecurityscanner.v1beta";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta";
+
+// ! Information about a vulnerability with an HTML.
+message Form {
+ // ! The URI where to send the form when it's submitted.
+ string action_uri = 1;
+
+ // ! The names of form fields related to the vulnerability.
+ repeated string fields = 2;
+}
+
+// Information reported for an outdated library.
+message OutdatedLibrary {
+ // The name of the outdated library.
+ string library_name = 1;
+
+ // The version number.
+ string version = 2;
+
+ // URLs to learn more information about the vulnerabilities in the library.
+ repeated string learn_more_urls = 3;
+}
+
+// Information regarding any resource causing the vulnerability such
+// as JavaScript sources, image, audio files, etc.
+message ViolatingResource {
+ // The MIME type of this resource.
+ string content_type = 1;
+
+ // URL of this violating resource.
+ string resource_url = 2;
+}
+
+// Information about vulnerable request parameters.
+message VulnerableParameters {
+ // The vulnerable parameter names.
+ repeated string parameter_names = 1;
+}
+
+// Information about vulnerable or missing HTTP Headers.
+message VulnerableHeaders {
+ // Describes a HTTP Header.
+ message Header {
+ // Header name.
+ string name = 1;
+
+ // Header value.
+ string value = 2;
+ }
+
+ // List of vulnerable headers.
+ repeated Header headers = 1;
+
+ // List of missing headers.
+ repeated Header missing_headers = 2;
+}
+
+// Information reported for an XSS.
+message Xss {
+ // Stack traces leading to the point where the XSS occurred.
+ repeated string stack_traces = 1;
+
+ // An error message generated by a javascript breakage.
+ string error_message = 2;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto
new file mode 100644
index 00000000000..9b215761819
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto
@@ -0,0 +1,36 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1beta;
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "FindingTypeStatsProto";
+option java_package = "com.google.cloud.websecurityscanner.v1beta";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta";
+
+// A FindingTypeStats resource represents stats regarding a specific FindingType
+// of Findings under a given ScanRun.
+message FindingTypeStats {
+ // The finding type associated with the stats.
+ string finding_type = 1;
+
+ // The count of findings belonging to this finding type.
+ int32 finding_count = 2;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config.proto
new file mode 100644
index 00000000000..b25c6198415
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config.proto
@@ -0,0 +1,193 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1beta;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/websecurityscanner/v1beta/scan_run.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanConfigProto";
+option java_package = "com.google.cloud.websecurityscanner.v1beta";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta";
+
+// A ScanConfig resource contains the configurations to launch a scan.
+message ScanConfig {
+ option (google.api.resource) = {
+ type: "websecurityscanner.googleapis.com/ScanConfig"
+ pattern: "projects/{project}/scanConfigs/{scan_config}"
+ };
+
+ // Scan authentication configuration.
+ message Authentication {
+ // Describes authentication configuration that uses a Google account.
+ message GoogleAccount {
+ // Required. The user name of the Google account.
+ string username = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Input only. The password of the Google account. The credential is stored encrypted
+ // and not returned in any response nor included in audit logs.
+ string password = 2 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.field_behavior) = INPUT_ONLY
+ ];
+ }
+
+ // Describes authentication configuration that uses a custom account.
+ message CustomAccount {
+ // Required. The user name of the custom account.
+ string username = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Input only. The password of the custom account. The credential is stored encrypted
+ // and not returned in any response nor included in audit logs.
+ string password = 2 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.field_behavior) = INPUT_ONLY
+ ];
+
+ // Required. The login form URL of the website.
+ string login_url = 3 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Required.
+ // Authentication configuration
+ oneof authentication {
+ // Authentication using a Google account.
+ GoogleAccount google_account = 1;
+
+ // Authentication using a custom account.
+ CustomAccount custom_account = 2;
+ }
+ }
+
+ // Scan schedule configuration.
+ message Schedule {
+ // A timestamp indicates when the next run will be scheduled. The value is
+ // refreshed by the server after each run. If unspecified, it will default
+ // to current server time, which means the scan will be scheduled to start
+ // immediately.
+ google.protobuf.Timestamp schedule_time = 1;
+
+ // Required. The duration of time between executions in days.
+ int32 interval_duration_days = 2 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Type of user agents used for scanning.
+ enum UserAgent {
+ // The user agent is unknown. Service will default to CHROME_LINUX.
+ USER_AGENT_UNSPECIFIED = 0;
+
+ // Chrome on Linux. This is the service default if unspecified.
+ CHROME_LINUX = 1;
+
+ // Chrome on Android.
+ CHROME_ANDROID = 2;
+
+ // Safari on IPhone.
+ SAFARI_IPHONE = 3;
+ }
+
+ // Cloud platforms supported by Cloud Web Security Scanner.
+ enum TargetPlatform {
+ // The target platform is unknown. Requests with this enum value will be
+ // rejected with INVALID_ARGUMENT error.
+ TARGET_PLATFORM_UNSPECIFIED = 0;
+
+ // Google App Engine service.
+ APP_ENGINE = 1;
+
+ // Google Compute Engine service.
+ COMPUTE = 2;
+ }
+
+ // Scan risk levels supported by Cloud Web Security Scanner. LOW impact
+ // scanning will minimize requests with the potential to modify data. To
+ // achieve the maximum scan coverage, NORMAL risk level is recommended.
+ enum RiskLevel {
+ // Use default, which is NORMAL.
+ RISK_LEVEL_UNSPECIFIED = 0;
+
+ // Normal scanning (Recommended)
+ NORMAL = 1;
+
+ // Lower impact scanning
+ LOW = 2;
+ }
+
+ // Controls export of scan configurations and results to Cloud Security
+ // Command Center.
+ enum ExportToSecurityCommandCenter {
+ // Use default, which is ENABLED.
+ EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED = 0;
+
+ // Export results of this scan to Cloud Security Command Center.
+ ENABLED = 1;
+
+ // Do not export results of this scan to Cloud Security Command Center.
+ DISABLED = 2;
+ }
+
+ // The resource name of the ScanConfig. The name follows the format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
+ // generated by the system.
+ string name = 1;
+
+ // Required. The user provided display name of the ScanConfig.
+ string display_name = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The maximum QPS during scanning. A valid value ranges from 5 to 20
+ // inclusively. If the field is unspecified or its value is set 0, server will
+ // default to 15. Other values outside of [5, 20] range will be rejected with
+ // INVALID_ARGUMENT error.
+ int32 max_qps = 3;
+
+ // Required. The starting URLs from which the scanner finds site pages.
+ repeated string starting_urls = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // The authentication configuration. If specified, service will use the
+ // authentication configuration during scanning.
+ Authentication authentication = 5;
+
+ // The user agent used during scanning.
+ UserAgent user_agent = 6;
+
+ // The blacklist URL patterns as described in
+ // https://cloud.google.com/security-scanner/docs/excluded-urls
+ repeated string blacklist_patterns = 7;
+
+ // The schedule of the ScanConfig.
+ Schedule schedule = 8;
+
+ // Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
+ // used as a default.
+ repeated TargetPlatform target_platforms = 9;
+
+ // Controls export of scan configurations and results to Cloud Security
+ // Command Center.
+ ExportToSecurityCommandCenter export_to_security_command_center = 10;
+
+ // Latest ScanRun if available.
+ ScanRun latest_run = 11;
+
+ // The risk level selected for the scan
+ RiskLevel risk_level = 12;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config_error.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config_error.proto
new file mode 100644
index 00000000000..3920b74fdc7
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config_error.proto
@@ -0,0 +1,190 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1beta;
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanConfigErrorProto";
+option java_package = "com.google.cloud.websecurityscanner.v1beta";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta";
+
+// Defines a custom error message used by CreateScanConfig and UpdateScanConfig
+// APIs when scan configuration validation fails. It is also reported as part of
+// a ScanRunErrorTrace message if scan validation fails due to a scan
+// configuration error.
+message ScanConfigError {
+ // Output only.
+ // Defines an error reason code.
+ // Next id: 44
+ enum Code {
+ option allow_alias = true;
+
+ // There is no error.
+ CODE_UNSPECIFIED = 0;
+
+ // There is no error.
+ OK = 0;
+
+ // Indicates an internal server error.
+ // Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
+ INTERNAL_ERROR = 1;
+
+ // One of the seed URLs is an App Engine URL but we cannot validate the scan
+ // settings due to an App Engine API backend error.
+ APPENGINE_API_BACKEND_ERROR = 2;
+
+ // One of the seed URLs is an App Engine URL but we cannot access the
+ // App Engine API to validate scan settings.
+ APPENGINE_API_NOT_ACCESSIBLE = 3;
+
+ // One of the seed URLs is an App Engine URL but the Default Host of the
+ // App Engine is not set.
+ APPENGINE_DEFAULT_HOST_MISSING = 4;
+
+ // Google corporate accounts can not be used for scanning.
+ CANNOT_USE_GOOGLE_COM_ACCOUNT = 6;
+
+ // The account of the scan creator can not be used for scanning.
+ CANNOT_USE_OWNER_ACCOUNT = 7;
+
+ // This scan targets Compute Engine, but we cannot validate scan settings
+ // due to a Compute Engine API backend error.
+ COMPUTE_API_BACKEND_ERROR = 8;
+
+ // This scan targets Compute Engine, but we cannot access the Compute Engine
+ // API to validate the scan settings.
+ COMPUTE_API_NOT_ACCESSIBLE = 9;
+
+ // The Custom Login URL does not belong to the current project.
+ CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT = 10;
+
+ // The Custom Login URL is malformed (can not be parsed).
+ CUSTOM_LOGIN_URL_MALFORMED = 11;
+
+ // The Custom Login URL is mapped to a non-routable IP address in DNS.
+ CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS = 12;
+
+ // The Custom Login URL is mapped to an IP address which is not reserved for
+ // the current project.
+ CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS = 13;
+
+ // The Custom Login URL has a non-routable IP address.
+ CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS = 14;
+
+ // The Custom Login URL has an IP address which is not reserved for the
+ // current project.
+ CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS = 15;
+
+ // Another scan with the same name (case-sensitive) already exists.
+ DUPLICATE_SCAN_NAME = 16;
+
+ // A field is set to an invalid value.
+ INVALID_FIELD_VALUE = 18;
+
+ // There was an error trying to authenticate to the scan target.
+ FAILED_TO_AUTHENTICATE_TO_TARGET = 19;
+
+ // Finding type value is not specified in the list findings request.
+ FINDING_TYPE_UNSPECIFIED = 20;
+
+ // Scan targets Compute Engine, yet current project was not whitelisted for
+ // Google Compute Engine Scanning Alpha access.
+ FORBIDDEN_TO_SCAN_COMPUTE = 21;
+
+ // User tries to update managed scan
+ FORBIDDEN_UPDATE_TO_MANAGED_SCAN = 43;
+
+ // The supplied filter is malformed. For example, it can not be parsed, does
+ // not have a filter type in expression, or the same filter type appears
+ // more than once.
+ MALFORMED_FILTER = 22;
+
+ // The supplied resource name is malformed (can not be parsed).
+ MALFORMED_RESOURCE_NAME = 23;
+
+ // The current project is not in an active state.
+ PROJECT_INACTIVE = 24;
+
+ // A required field is not set.
+ REQUIRED_FIELD = 25;
+
+ // Project id, scanconfig id, scanrun id, or finding id are not consistent
+ // with each other in resource name.
+ RESOURCE_NAME_INCONSISTENT = 26;
+
+ // The scan being requested to start is already running.
+ SCAN_ALREADY_RUNNING = 27;
+
+ // The scan that was requested to be stopped is not running.
+ SCAN_NOT_RUNNING = 28;
+
+ // One of the seed URLs does not belong to the current project.
+ SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT = 29;
+
+ // One of the seed URLs is malformed (can not be parsed).
+ SEED_URL_MALFORMED = 30;
+
+ // One of the seed URLs is mapped to a non-routable IP address in DNS.
+ SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS = 31;
+
+ // One of the seed URLs is mapped to an IP address which is not reserved
+ // for the current project.
+ SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS = 32;
+
+ // One of the seed URLs has on-routable IP address.
+ SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS = 33;
+
+ // One of the seed URLs has an IP address that is not reserved
+ // for the current project.
+ SEED_URL_HAS_UNRESERVED_IP_ADDRESS = 35;
+
+ // The Cloud Security Scanner service account is not configured under the
+ // project.
+ SERVICE_ACCOUNT_NOT_CONFIGURED = 36;
+
+ // A project has reached the maximum number of scans.
+ TOO_MANY_SCANS = 37;
+
+ // Resolving the details of the current project fails.
+ UNABLE_TO_RESOLVE_PROJECT_INFO = 38;
+
+ // One or more blacklist patterns were in the wrong format.
+ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT = 39;
+
+ // The supplied filter is not supported.
+ UNSUPPORTED_FILTER = 40;
+
+ // The supplied finding type is not supported. For example, we do not
+ // provide findings of the given finding type.
+ UNSUPPORTED_FINDING_TYPE = 41;
+
+ // The URL scheme of one or more of the supplied URLs is not supported.
+ UNSUPPORTED_URL_SCHEME = 42;
+ }
+
+ // Indicates the reason code for a configuration failure.
+ Code code = 1;
+
+ // Indicates the full name of the ScanConfig field that triggers this error,
+ // for example "scan_config.max_qps". This field is provided for
+ // troubleshooting purposes only and its actual value can change in the
+ // future.
+ string field_name = 2;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run.proto
new file mode 100644
index 00000000000..48800d247e2
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run.proto
@@ -0,0 +1,117 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1beta;
+
+import "google/api/resource.proto";
+import "google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto";
+import "google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanRunProto";
+option java_package = "com.google.cloud.websecurityscanner.v1beta";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta";
+
+// A ScanRun is a output-only resource representing an actual run of the scan.
+// Next id: 12
+message ScanRun {
+ option (google.api.resource) = {
+ type: "websecurityscanner.googleapis.com/ScanRun"
+ pattern: "projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}"
+ };
+
+ // Types of ScanRun execution state.
+ enum ExecutionState {
+ // Represents an invalid state caused by internal server error. This value
+ // should never be returned.
+ EXECUTION_STATE_UNSPECIFIED = 0;
+
+ // The scan is waiting in the queue.
+ QUEUED = 1;
+
+ // The scan is in progress.
+ SCANNING = 2;
+
+ // The scan is either finished or stopped by user.
+ FINISHED = 3;
+ }
+
+ // Types of ScanRun result state.
+ enum ResultState {
+ // Default value. This value is returned when the ScanRun is not yet
+ // finished.
+ RESULT_STATE_UNSPECIFIED = 0;
+
+ // The scan finished without errors.
+ SUCCESS = 1;
+
+ // The scan finished with errors.
+ ERROR = 2;
+
+ // The scan was terminated by user.
+ KILLED = 3;
+ }
+
+ // The resource name of the ScanRun. The name follows the format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ // The ScanRun IDs are generated by the system.
+ string name = 1;
+
+ // The execution state of the ScanRun.
+ ExecutionState execution_state = 2;
+
+ // The result state of the ScanRun. This field is only available after the
+ // execution state reaches "FINISHED".
+ ResultState result_state = 3;
+
+ // The time at which the ScanRun started.
+ google.protobuf.Timestamp start_time = 4;
+
+ // The time at which the ScanRun reached termination state - that the ScanRun
+ // is either finished or stopped by user.
+ google.protobuf.Timestamp end_time = 5;
+
+ // The number of URLs crawled during this ScanRun. If the scan is in progress,
+ // the value represents the number of URLs crawled up to now.
+ int64 urls_crawled_count = 6;
+
+ // The number of URLs tested during this ScanRun. If the scan is in progress,
+ // the value represents the number of URLs tested up to now. The number of
+ // URLs tested is usually larger than the number URLS crawled because
+ // typically a crawled URL is tested with multiple test payloads.
+ int64 urls_tested_count = 7;
+
+ // Whether the scan run has found any vulnerabilities.
+ bool has_vulnerabilities = 8;
+
+ // The percentage of total completion ranging from 0 to 100.
+ // If the scan is in queue, the value is 0.
+ // If the scan is running, the value ranges from 0 to 100.
+ // If the scan is finished, the value is 100.
+ int32 progress_percent = 9;
+
+ // If result_state is an ERROR, this field provides the primary reason for
+ // scan's termination and more details, if such are available.
+ ScanRunErrorTrace error_trace = 10;
+
+ // A list of warnings, if such are encountered during this scan run.
+ repeated ScanRunWarningTrace warning_traces = 11;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto
new file mode 100644
index 00000000000..acbdef2bdf5
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto
@@ -0,0 +1,76 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1beta;
+
+import "google/cloud/websecurityscanner/v1beta/scan_config_error.proto";
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanRunErrorTraceProto";
+option java_package = "com.google.cloud.websecurityscanner.v1beta";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta";
+
+// Output only.
+// Defines an error trace message for a ScanRun.
+message ScanRunErrorTrace {
+ // Output only.
+ // Defines an error reason code.
+ // Next id: 7
+ enum Code {
+ // Default value is never used.
+ CODE_UNSPECIFIED = 0;
+
+ // Indicates that the scan run failed due to an internal server error.
+ INTERNAL_ERROR = 1;
+
+ // Indicates a scan configuration error, usually due to outdated ScanConfig
+ // settings, such as starting_urls or the DNS configuration.
+ SCAN_CONFIG_ISSUE = 2;
+
+ // Indicates an authentication error, usually due to outdated ScanConfig
+ // authentication settings.
+ AUTHENTICATION_CONFIG_ISSUE = 3;
+
+ // Indicates a scan operation timeout, usually caused by a very large site.
+ TIMED_OUT_WHILE_SCANNING = 4;
+
+ // Indicates that a scan encountered excessive redirects, either to
+ // authentication or some other page outside of the scan scope.
+ TOO_MANY_REDIRECTS = 5;
+
+ // Indicates that a scan encountered numerous errors from the web site
+ // pages. When available, most_common_http_error_code field indicates the
+ // most common HTTP error code encountered during the scan.
+ TOO_MANY_HTTP_ERRORS = 6;
+ }
+
+ // Indicates the error reason code.
+ Code code = 1;
+
+ // If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
+ // message encountered during scan configuration validation that is performed
+ // before each scan run.
+ ScanConfigError scan_config_error = 2;
+
+ // If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
+ // common HTTP error code, if such is available. For example, if this code is
+ // 404, the scan has encountered too many NOT_FOUND responses.
+ int32 most_common_http_error_code = 3;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto
new file mode 100644
index 00000000000..6ee6b347496
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto
@@ -0,0 +1,59 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1beta;
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "ScanRunWarningTraceProto";
+option java_package = "com.google.cloud.websecurityscanner.v1beta";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta";
+
+// Output only.
+// Defines a warning trace message for ScanRun. Warning traces provide customers
+// with useful information that helps make the scanning process more effective.
+message ScanRunWarningTrace {
+ // Output only.
+ // Defines a warning message code.
+ // Next id: 6
+ enum Code {
+ // Default value is never used.
+ CODE_UNSPECIFIED = 0;
+
+ // Indicates that a scan discovered an unexpectedly low number of URLs. This
+ // is sometimes caused by complex navigation features or by using a single
+ // URL for numerous pages.
+ INSUFFICIENT_CRAWL_RESULTS = 1;
+
+ // Indicates that a scan discovered too many URLs to test, or excessive
+ // redundant URLs.
+ TOO_MANY_CRAWL_RESULTS = 2;
+
+ // Indicates that too many tests have been generated for the scan. Customer
+ // should try reducing the number of starting URLs, increasing the QPS rate,
+ // or narrowing down the scope of the scan using the excluded patterns.
+ TOO_MANY_FUZZ_TASKS = 3;
+
+ // Indicates that a scan is blocked by IAP.
+ BLOCKED_BY_IAP = 4;
+ }
+
+ // Indicates the warning code.
+ Code code = 1;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto
new file mode 100644
index 00000000000..79be175b5cf
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto
@@ -0,0 +1,413 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.websecurityscanner.v1beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/websecurityscanner/v1beta/crawled_url.proto";
+import "google/cloud/websecurityscanner/v1beta/finding.proto";
+import "google/cloud/websecurityscanner/v1beta/finding_type_stats.proto";
+import "google/cloud/websecurityscanner/v1beta/scan_config.proto";
+import "google/cloud/websecurityscanner/v1beta/scan_run.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+
+option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta";
+option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner";
+option java_multiple_files = true;
+option java_outer_classname = "WebSecurityScannerProto";
+option java_package = "com.google.cloud.websecurityscanner.v1beta";
+option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta";
+option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta";
+
+// Cloud Web Security Scanner Service identifies security vulnerabilities in web
+// applications hosted on Google Cloud Platform. It crawls your application, and
+// attempts to exercise as many user inputs and event handlers as possible.
+service WebSecurityScanner {
+ option (google.api.default_host) = "websecurityscanner.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Creates a new ScanConfig.
+ rpc CreateScanConfig(CreateScanConfigRequest) returns (ScanConfig) {
+ option (google.api.http) = {
+ post: "/v1beta/{parent=projects/*}/scanConfigs"
+ body: "scan_config"
+ };
+ option (google.api.method_signature) = "parent,scan_config";
+ }
+
+ // Deletes an existing ScanConfig and its child resources.
+ rpc DeleteScanConfig(DeleteScanConfigRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1beta/{name=projects/*/scanConfigs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets a ScanConfig.
+ rpc GetScanConfig(GetScanConfigRequest) returns (ScanConfig) {
+ option (google.api.http) = {
+ get: "/v1beta/{name=projects/*/scanConfigs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists ScanConfigs under a given project.
+ rpc ListScanConfigs(ListScanConfigsRequest) returns (ListScanConfigsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta/{parent=projects/*}/scanConfigs"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Updates a ScanConfig. This method support partial update of a ScanConfig.
+ rpc UpdateScanConfig(UpdateScanConfigRequest) returns (ScanConfig) {
+ option (google.api.http) = {
+ patch: "/v1beta/{scan_config.name=projects/*/scanConfigs/*}"
+ body: "scan_config"
+ };
+ option (google.api.method_signature) = "scan_config,update_mask";
+ }
+
+ // Start a ScanRun according to the given ScanConfig.
+ rpc StartScanRun(StartScanRunRequest) returns (ScanRun) {
+ option (google.api.http) = {
+ post: "/v1beta/{name=projects/*/scanConfigs/*}:start"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets a ScanRun.
+ rpc GetScanRun(GetScanRunRequest) returns (ScanRun) {
+ option (google.api.http) = {
+ get: "/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+ // stop time.
+ rpc ListScanRuns(ListScanRunsRequest) returns (ListScanRunsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta/{parent=projects/*/scanConfigs/*}/scanRuns"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Stops a ScanRun. The stopped ScanRun is returned.
+ rpc StopScanRun(StopScanRunRequest) returns (ScanRun) {
+ option (google.api.http) = {
+ post: "/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*}:stop"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List CrawledUrls under a given ScanRun.
+ rpc ListCrawledUrls(ListCrawledUrlsRequest) returns (ListCrawledUrlsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets a Finding.
+ rpc GetFinding(GetFindingRequest) returns (Finding) {
+ option (google.api.http) = {
+ get: "/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List Findings under a given ScanRun.
+ rpc ListFindings(ListFindingsRequest) returns (ListFindingsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings"
+ };
+ option (google.api.method_signature) = "parent,filter";
+ }
+
+ // List all FindingTypeStats under a given ScanRun.
+ rpc ListFindingTypeStats(ListFindingTypeStatsRequest) returns (ListFindingTypeStatsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// Request for the `CreateScanConfig` method.
+message CreateScanConfigRequest {
+ // Required. The parent resource name where the scan is created, which should be a
+ // project resource name in the format 'projects/{projectId}'.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Required. The ScanConfig to be created.
+ ScanConfig scan_config = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request for the `DeleteScanConfig` method.
+message DeleteScanConfigRequest {
+ // Required. The resource name of the ScanConfig to be deleted. The name follows the
+ // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanConfig"
+ }
+ ];
+}
+
+// Request for the `GetScanConfig` method.
+message GetScanConfigRequest {
+ // Required. The resource name of the ScanConfig to be returned. The name follows the
+ // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanConfig"
+ }
+ ];
+}
+
+// Request for the `ListScanConfigs` method.
+message ListScanConfigsRequest {
+ // Required. The parent resource name, which should be a project resource name in the
+ // format 'projects/{projectId}'.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // A token identifying a page of results to be returned. This should be a
+ // `next_page_token` value returned from a previous List request.
+ // If unspecified, the first page of results is returned.
+ string page_token = 2;
+
+ // The maximum number of ScanConfigs to return, can be limited by server.
+ // If not specified or not positive, the implementation will select a
+ // reasonable value.
+ int32 page_size = 3;
+}
+
+// Request for the `UpdateScanConfigRequest` method.
+message UpdateScanConfigRequest {
+ // Required. The ScanConfig to be updated. The name field must be set to identify the
+ // resource to be updated. The values of fields not covered by the mask
+ // will be ignored.
+ ScanConfig scan_config = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The update mask applies to the resource. For the `FieldMask` definition,
+ // see
+ // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+ google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Response for the `ListScanConfigs` method.
+message ListScanConfigsResponse {
+ // The list of ScanConfigs returned.
+ repeated ScanConfig scan_configs = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// Request for the `StartScanRun` method.
+message StartScanRunRequest {
+ // Required. The resource name of the ScanConfig to be used. The name follows the
+ // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanConfig"
+ }
+ ];
+}
+
+// Request for the `GetScanRun` method.
+message GetScanRunRequest {
+ // Required. The resource name of the ScanRun to be returned. The name follows the
+ // format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanRun"
+ }
+ ];
+}
+
+// Request for the `ListScanRuns` method.
+message ListScanRunsRequest {
+ // Required. The parent resource name, which should be a scan resource name in the
+ // format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanConfig"
+ }
+ ];
+
+ // A token identifying a page of results to be returned. This should be a
+ // `next_page_token` value returned from a previous List request.
+ // If unspecified, the first page of results is returned.
+ string page_token = 2;
+
+ // The maximum number of ScanRuns to return, can be limited by server.
+ // If not specified or not positive, the implementation will select a
+ // reasonable value.
+ int32 page_size = 3;
+}
+
+// Response for the `ListScanRuns` method.
+message ListScanRunsResponse {
+ // The list of ScanRuns returned.
+ repeated ScanRun scan_runs = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// Request for the `StopScanRun` method.
+message StopScanRunRequest {
+ // Required. The resource name of the ScanRun to be stopped. The name follows the
+ // format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanRun"
+ }
+ ];
+}
+
+// Request for the `ListCrawledUrls` method.
+message ListCrawledUrlsRequest {
+ // Required. The parent resource name, which should be a scan run resource name in the
+ // format
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanRun"
+ }
+ ];
+
+ // A token identifying a page of results to be returned. This should be a
+ // `next_page_token` value returned from a previous List request.
+ // If unspecified, the first page of results is returned.
+ string page_token = 2;
+
+ // The maximum number of CrawledUrls to return, can be limited by server.
+ // If not specified or not positive, the implementation will select a
+ // reasonable value.
+ int32 page_size = 3;
+}
+
+// Response for the `ListCrawledUrls` method.
+message ListCrawledUrlsResponse {
+ // The list of CrawledUrls returned.
+ repeated CrawledUrl crawled_urls = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// Request for the `GetFinding` method.
+message GetFindingRequest {
+ // Required. The resource name of the Finding to be returned. The name follows the
+ // format of
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/Finding"
+ }
+ ];
+}
+
+// Request for the `ListFindings` method.
+message ListFindingsRequest {
+ // Required. The parent resource name, which should be a scan run resource name in the
+ // format
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanRun"
+ }
+ ];
+
+ // Required. The filter expression. The expression must be in the format:
+ // .
+ // Supported field: 'finding_type'.
+ // Supported operator: '='.
+ string filter = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // A token identifying a page of results to be returned. This should be a
+ // `next_page_token` value returned from a previous List request.
+ // If unspecified, the first page of results is returned.
+ string page_token = 3;
+
+ // The maximum number of Findings to return, can be limited by server.
+ // If not specified or not positive, the implementation will select a
+ // reasonable value.
+ int32 page_size = 4;
+}
+
+// Response for the `ListFindings` method.
+message ListFindingsResponse {
+ // The list of Findings returned.
+ repeated Finding findings = 1;
+
+ // Token to retrieve the next page of results, or empty if there are no
+ // more results in the list.
+ string next_page_token = 2;
+}
+
+// Request for the `ListFindingTypeStats` method.
+message ListFindingTypeStatsRequest {
+ // Required. The parent resource name, which should be a scan run resource name in the
+ // format
+ // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "websecurityscanner.googleapis.com/ScanRun"
+ }
+ ];
+}
+
+// Response for the `ListFindingTypeStats` method.
+message ListFindingTypeStatsResponse {
+ // The list of FindingTypeStats returned.
+ repeated FindingTypeStats finding_type_stats = 1;
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/protos.d.ts b/packages/google-cloud-websecurityscanner/protos/protos.d.ts
new file mode 100644
index 00000000000..47b4d1f254b
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/protos.d.ts
@@ -0,0 +1,17614 @@
+// 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 websecurityscanner. */
+ namespace websecurityscanner {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of a CrawledUrl. */
+ interface ICrawledUrl {
+
+ /** CrawledUrl httpMethod */
+ httpMethod?: (string|null);
+
+ /** CrawledUrl url */
+ url?: (string|null);
+
+ /** CrawledUrl body */
+ body?: (string|null);
+ }
+
+ /** Represents a CrawledUrl. */
+ class CrawledUrl implements ICrawledUrl {
+
+ /**
+ * Constructs a new CrawledUrl.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.ICrawledUrl);
+
+ /** CrawledUrl httpMethod. */
+ public httpMethod: string;
+
+ /** CrawledUrl url. */
+ public url: string;
+
+ /** CrawledUrl body. */
+ public body: string;
+
+ /**
+ * Creates a new CrawledUrl instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CrawledUrl instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.ICrawledUrl): google.cloud.websecurityscanner.v1.CrawledUrl;
+
+ /**
+ * Encodes the specified CrawledUrl message. Does not implicitly {@link google.cloud.websecurityscanner.v1.CrawledUrl.verify|verify} messages.
+ * @param message CrawledUrl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.ICrawledUrl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CrawledUrl message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.CrawledUrl.verify|verify} messages.
+ * @param message CrawledUrl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.ICrawledUrl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CrawledUrl message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CrawledUrl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.CrawledUrl;
+
+ /**
+ * Decodes a CrawledUrl message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CrawledUrl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.CrawledUrl;
+
+ /**
+ * Verifies a CrawledUrl message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CrawledUrl message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CrawledUrl
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.CrawledUrl;
+
+ /**
+ * Creates a plain object from a CrawledUrl message. Also converts values to other types if specified.
+ * @param message CrawledUrl
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.CrawledUrl, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CrawledUrl to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CrawledUrl
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Finding. */
+ interface IFinding {
+
+ /** Finding name */
+ name?: (string|null);
+
+ /** Finding findingType */
+ findingType?: (string|null);
+
+ /** Finding severity */
+ severity?: (google.cloud.websecurityscanner.v1.Finding.Severity|keyof typeof google.cloud.websecurityscanner.v1.Finding.Severity|null);
+
+ /** Finding httpMethod */
+ httpMethod?: (string|null);
+
+ /** Finding fuzzedUrl */
+ fuzzedUrl?: (string|null);
+
+ /** Finding body */
+ body?: (string|null);
+
+ /** Finding description */
+ description?: (string|null);
+
+ /** Finding reproductionUrl */
+ reproductionUrl?: (string|null);
+
+ /** Finding frameUrl */
+ frameUrl?: (string|null);
+
+ /** Finding finalUrl */
+ finalUrl?: (string|null);
+
+ /** Finding trackingId */
+ trackingId?: (string|null);
+
+ /** Finding form */
+ form?: (google.cloud.websecurityscanner.v1.IForm|null);
+
+ /** Finding outdatedLibrary */
+ outdatedLibrary?: (google.cloud.websecurityscanner.v1.IOutdatedLibrary|null);
+
+ /** Finding violatingResource */
+ violatingResource?: (google.cloud.websecurityscanner.v1.IViolatingResource|null);
+
+ /** Finding vulnerableHeaders */
+ vulnerableHeaders?: (google.cloud.websecurityscanner.v1.IVulnerableHeaders|null);
+
+ /** Finding vulnerableParameters */
+ vulnerableParameters?: (google.cloud.websecurityscanner.v1.IVulnerableParameters|null);
+
+ /** Finding xss */
+ xss?: (google.cloud.websecurityscanner.v1.IXss|null);
+
+ /** Finding xxe */
+ xxe?: (google.cloud.websecurityscanner.v1.IXxe|null);
+ }
+
+ /** Represents a Finding. */
+ class Finding implements IFinding {
+
+ /**
+ * Constructs a new Finding.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IFinding);
+
+ /** Finding name. */
+ public name: string;
+
+ /** Finding findingType. */
+ public findingType: string;
+
+ /** Finding severity. */
+ public severity: (google.cloud.websecurityscanner.v1.Finding.Severity|keyof typeof google.cloud.websecurityscanner.v1.Finding.Severity);
+
+ /** Finding httpMethod. */
+ public httpMethod: string;
+
+ /** Finding fuzzedUrl. */
+ public fuzzedUrl: string;
+
+ /** Finding body. */
+ public body: string;
+
+ /** Finding description. */
+ public description: string;
+
+ /** Finding reproductionUrl. */
+ public reproductionUrl: string;
+
+ /** Finding frameUrl. */
+ public frameUrl: string;
+
+ /** Finding finalUrl. */
+ public finalUrl: string;
+
+ /** Finding trackingId. */
+ public trackingId: string;
+
+ /** Finding form. */
+ public form?: (google.cloud.websecurityscanner.v1.IForm|null);
+
+ /** Finding outdatedLibrary. */
+ public outdatedLibrary?: (google.cloud.websecurityscanner.v1.IOutdatedLibrary|null);
+
+ /** Finding violatingResource. */
+ public violatingResource?: (google.cloud.websecurityscanner.v1.IViolatingResource|null);
+
+ /** Finding vulnerableHeaders. */
+ public vulnerableHeaders?: (google.cloud.websecurityscanner.v1.IVulnerableHeaders|null);
+
+ /** Finding vulnerableParameters. */
+ public vulnerableParameters?: (google.cloud.websecurityscanner.v1.IVulnerableParameters|null);
+
+ /** Finding xss. */
+ public xss?: (google.cloud.websecurityscanner.v1.IXss|null);
+
+ /** Finding xxe. */
+ public xxe?: (google.cloud.websecurityscanner.v1.IXxe|null);
+
+ /**
+ * Creates a new Finding instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Finding instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IFinding): google.cloud.websecurityscanner.v1.Finding;
+
+ /**
+ * Encodes the specified Finding message. Does not implicitly {@link google.cloud.websecurityscanner.v1.Finding.verify|verify} messages.
+ * @param message Finding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IFinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Finding message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.Finding.verify|verify} messages.
+ * @param message Finding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IFinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Finding message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Finding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.Finding;
+
+ /**
+ * Decodes a Finding message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Finding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.Finding;
+
+ /**
+ * Verifies a Finding message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Finding message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Finding
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.Finding;
+
+ /**
+ * Creates a plain object from a Finding message. Also converts values to other types if specified.
+ * @param message Finding
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.Finding, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Finding to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Finding
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Finding {
+
+ /** Severity enum. */
+ enum Severity {
+ SEVERITY_UNSPECIFIED = 0,
+ CRITICAL = 1,
+ HIGH = 2,
+ MEDIUM = 3,
+ LOW = 4
+ }
+ }
+
+ /** Properties of a Form. */
+ interface IForm {
+
+ /** Form actionUri */
+ actionUri?: (string|null);
+
+ /** Form fields */
+ fields?: (string[]|null);
+ }
+
+ /** Represents a Form. */
+ class Form implements IForm {
+
+ /**
+ * Constructs a new Form.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IForm);
+
+ /** Form actionUri. */
+ public actionUri: string;
+
+ /** Form fields. */
+ public fields: string[];
+
+ /**
+ * Creates a new Form instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Form instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IForm): google.cloud.websecurityscanner.v1.Form;
+
+ /**
+ * Encodes the specified Form message. Does not implicitly {@link google.cloud.websecurityscanner.v1.Form.verify|verify} messages.
+ * @param message Form message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IForm, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.Form.verify|verify} messages.
+ * @param message Form message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IForm, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Form message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Form
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.Form;
+
+ /**
+ * Decodes a Form message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Form
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.Form;
+
+ /**
+ * Verifies a Form message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Form message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Form
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.Form;
+
+ /**
+ * Creates a plain object from a Form message. Also converts values to other types if specified.
+ * @param message Form
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.Form, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Form to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Form
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OutdatedLibrary. */
+ interface IOutdatedLibrary {
+
+ /** OutdatedLibrary libraryName */
+ libraryName?: (string|null);
+
+ /** OutdatedLibrary version */
+ version?: (string|null);
+
+ /** OutdatedLibrary learnMoreUrls */
+ learnMoreUrls?: (string[]|null);
+ }
+
+ /** Represents an OutdatedLibrary. */
+ class OutdatedLibrary implements IOutdatedLibrary {
+
+ /**
+ * Constructs a new OutdatedLibrary.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IOutdatedLibrary);
+
+ /** OutdatedLibrary libraryName. */
+ public libraryName: string;
+
+ /** OutdatedLibrary version. */
+ public version: string;
+
+ /** OutdatedLibrary learnMoreUrls. */
+ public learnMoreUrls: string[];
+
+ /**
+ * Creates a new OutdatedLibrary instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OutdatedLibrary instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IOutdatedLibrary): google.cloud.websecurityscanner.v1.OutdatedLibrary;
+
+ /**
+ * Encodes the specified OutdatedLibrary message. Does not implicitly {@link google.cloud.websecurityscanner.v1.OutdatedLibrary.verify|verify} messages.
+ * @param message OutdatedLibrary message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IOutdatedLibrary, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OutdatedLibrary message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.OutdatedLibrary.verify|verify} messages.
+ * @param message OutdatedLibrary message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IOutdatedLibrary, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OutdatedLibrary message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OutdatedLibrary
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.OutdatedLibrary;
+
+ /**
+ * Decodes an OutdatedLibrary message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OutdatedLibrary
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.OutdatedLibrary;
+
+ /**
+ * Verifies an OutdatedLibrary message.
+ * @param message Plain 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 OutdatedLibrary message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OutdatedLibrary
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.OutdatedLibrary;
+
+ /**
+ * Creates a plain object from an OutdatedLibrary message. Also converts values to other types if specified.
+ * @param message OutdatedLibrary
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.OutdatedLibrary, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OutdatedLibrary to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OutdatedLibrary
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ViolatingResource. */
+ interface IViolatingResource {
+
+ /** ViolatingResource contentType */
+ contentType?: (string|null);
+
+ /** ViolatingResource resourceUrl */
+ resourceUrl?: (string|null);
+ }
+
+ /** Represents a ViolatingResource. */
+ class ViolatingResource implements IViolatingResource {
+
+ /**
+ * Constructs a new ViolatingResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IViolatingResource);
+
+ /** ViolatingResource contentType. */
+ public contentType: string;
+
+ /** ViolatingResource resourceUrl. */
+ public resourceUrl: string;
+
+ /**
+ * Creates a new ViolatingResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ViolatingResource instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IViolatingResource): google.cloud.websecurityscanner.v1.ViolatingResource;
+
+ /**
+ * Encodes the specified ViolatingResource message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ViolatingResource.verify|verify} messages.
+ * @param message ViolatingResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IViolatingResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ViolatingResource message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ViolatingResource.verify|verify} messages.
+ * @param message ViolatingResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IViolatingResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ViolatingResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ViolatingResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ViolatingResource;
+
+ /**
+ * Decodes a ViolatingResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ViolatingResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ViolatingResource;
+
+ /**
+ * Verifies a ViolatingResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ViolatingResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ViolatingResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ViolatingResource;
+
+ /**
+ * Creates a plain object from a ViolatingResource message. Also converts values to other types if specified.
+ * @param message ViolatingResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ViolatingResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ViolatingResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ViolatingResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VulnerableParameters. */
+ interface IVulnerableParameters {
+
+ /** VulnerableParameters parameterNames */
+ parameterNames?: (string[]|null);
+ }
+
+ /** Represents a VulnerableParameters. */
+ class VulnerableParameters implements IVulnerableParameters {
+
+ /**
+ * Constructs a new VulnerableParameters.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IVulnerableParameters);
+
+ /** VulnerableParameters parameterNames. */
+ public parameterNames: string[];
+
+ /**
+ * Creates a new VulnerableParameters instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VulnerableParameters instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IVulnerableParameters): google.cloud.websecurityscanner.v1.VulnerableParameters;
+
+ /**
+ * Encodes the specified VulnerableParameters message. Does not implicitly {@link google.cloud.websecurityscanner.v1.VulnerableParameters.verify|verify} messages.
+ * @param message VulnerableParameters message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IVulnerableParameters, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VulnerableParameters message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.VulnerableParameters.verify|verify} messages.
+ * @param message VulnerableParameters message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IVulnerableParameters, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VulnerableParameters message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VulnerableParameters
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.VulnerableParameters;
+
+ /**
+ * Decodes a VulnerableParameters message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VulnerableParameters
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.VulnerableParameters;
+
+ /**
+ * Verifies a VulnerableParameters message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VulnerableParameters message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VulnerableParameters
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.VulnerableParameters;
+
+ /**
+ * Creates a plain object from a VulnerableParameters message. Also converts values to other types if specified.
+ * @param message VulnerableParameters
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.VulnerableParameters, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VulnerableParameters to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VulnerableParameters
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VulnerableHeaders. */
+ interface IVulnerableHeaders {
+
+ /** VulnerableHeaders headers */
+ headers?: (google.cloud.websecurityscanner.v1.VulnerableHeaders.IHeader[]|null);
+
+ /** VulnerableHeaders missingHeaders */
+ missingHeaders?: (google.cloud.websecurityscanner.v1.VulnerableHeaders.IHeader[]|null);
+ }
+
+ /** Represents a VulnerableHeaders. */
+ class VulnerableHeaders implements IVulnerableHeaders {
+
+ /**
+ * Constructs a new VulnerableHeaders.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IVulnerableHeaders);
+
+ /** VulnerableHeaders headers. */
+ public headers: google.cloud.websecurityscanner.v1.VulnerableHeaders.IHeader[];
+
+ /** VulnerableHeaders missingHeaders. */
+ public missingHeaders: google.cloud.websecurityscanner.v1.VulnerableHeaders.IHeader[];
+
+ /**
+ * Creates a new VulnerableHeaders instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VulnerableHeaders instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IVulnerableHeaders): google.cloud.websecurityscanner.v1.VulnerableHeaders;
+
+ /**
+ * Encodes the specified VulnerableHeaders message. Does not implicitly {@link google.cloud.websecurityscanner.v1.VulnerableHeaders.verify|verify} messages.
+ * @param message VulnerableHeaders message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IVulnerableHeaders, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VulnerableHeaders message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.VulnerableHeaders.verify|verify} messages.
+ * @param message VulnerableHeaders message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IVulnerableHeaders, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VulnerableHeaders message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VulnerableHeaders
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.VulnerableHeaders;
+
+ /**
+ * Decodes a VulnerableHeaders message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VulnerableHeaders
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.VulnerableHeaders;
+
+ /**
+ * Verifies a VulnerableHeaders message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VulnerableHeaders message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VulnerableHeaders
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.VulnerableHeaders;
+
+ /**
+ * Creates a plain object from a VulnerableHeaders message. Also converts values to other types if specified.
+ * @param message VulnerableHeaders
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.VulnerableHeaders, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VulnerableHeaders to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VulnerableHeaders
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VulnerableHeaders {
+
+ /** Properties of a Header. */
+ interface IHeader {
+
+ /** Header name */
+ name?: (string|null);
+
+ /** Header value */
+ value?: (string|null);
+ }
+
+ /** Represents a Header. */
+ class Header implements IHeader {
+
+ /**
+ * Constructs a new Header.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.VulnerableHeaders.IHeader);
+
+ /** Header name. */
+ public name: string;
+
+ /** Header value. */
+ public value: string;
+
+ /**
+ * Creates a new Header instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Header instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.VulnerableHeaders.IHeader): google.cloud.websecurityscanner.v1.VulnerableHeaders.Header;
+
+ /**
+ * Encodes the specified Header message. Does not implicitly {@link google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.verify|verify} messages.
+ * @param message Header message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.VulnerableHeaders.IHeader, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.verify|verify} messages.
+ * @param message Header message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.VulnerableHeaders.IHeader, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Header message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Header
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.VulnerableHeaders.Header;
+
+ /**
+ * Decodes a Header message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Header
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.VulnerableHeaders.Header;
+
+ /**
+ * Verifies a Header message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Header message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Header
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.VulnerableHeaders.Header;
+
+ /**
+ * Creates a plain object from a Header message. Also converts values to other types if specified.
+ * @param message Header
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Header to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Header
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Xss. */
+ interface IXss {
+
+ /** Xss stackTraces */
+ stackTraces?: (string[]|null);
+
+ /** Xss errorMessage */
+ errorMessage?: (string|null);
+
+ /** Xss attackVector */
+ attackVector?: (google.cloud.websecurityscanner.v1.Xss.AttackVector|keyof typeof google.cloud.websecurityscanner.v1.Xss.AttackVector|null);
+
+ /** Xss storedXssSeedingUrl */
+ storedXssSeedingUrl?: (string|null);
+ }
+
+ /** Represents a Xss. */
+ class Xss implements IXss {
+
+ /**
+ * Constructs a new Xss.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IXss);
+
+ /** Xss stackTraces. */
+ public stackTraces: string[];
+
+ /** Xss errorMessage. */
+ public errorMessage: string;
+
+ /** Xss attackVector. */
+ public attackVector: (google.cloud.websecurityscanner.v1.Xss.AttackVector|keyof typeof google.cloud.websecurityscanner.v1.Xss.AttackVector);
+
+ /** Xss storedXssSeedingUrl. */
+ public storedXssSeedingUrl: string;
+
+ /**
+ * Creates a new Xss instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Xss instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IXss): google.cloud.websecurityscanner.v1.Xss;
+
+ /**
+ * Encodes the specified Xss message. Does not implicitly {@link google.cloud.websecurityscanner.v1.Xss.verify|verify} messages.
+ * @param message Xss message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IXss, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Xss message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.Xss.verify|verify} messages.
+ * @param message Xss message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IXss, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Xss message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Xss
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.Xss;
+
+ /**
+ * Decodes a Xss message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Xss
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.Xss;
+
+ /**
+ * Verifies a Xss message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Xss message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Xss
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.Xss;
+
+ /**
+ * Creates a plain object from a Xss message. Also converts values to other types if specified.
+ * @param message Xss
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.Xss, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Xss to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Xss
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Xss {
+
+ /** AttackVector enum. */
+ enum AttackVector {
+ ATTACK_VECTOR_UNSPECIFIED = 0,
+ LOCAL_STORAGE = 1,
+ SESSION_STORAGE = 2,
+ WINDOW_NAME = 3,
+ REFERRER = 4,
+ FORM_INPUT = 5,
+ COOKIE = 6,
+ POST_MESSAGE = 7,
+ GET_PARAMETERS = 8,
+ URL_FRAGMENT = 9,
+ HTML_COMMENT = 10,
+ POST_PARAMETERS = 11,
+ PROTOCOL = 12,
+ STORED_XSS = 13,
+ SAME_ORIGIN = 14,
+ USER_CONTROLLABLE_URL = 15
+ }
+ }
+
+ /** Properties of a Xxe. */
+ interface IXxe {
+
+ /** Xxe payloadValue */
+ payloadValue?: (string|null);
+
+ /** Xxe payloadLocation */
+ payloadLocation?: (google.cloud.websecurityscanner.v1.Xxe.Location|keyof typeof google.cloud.websecurityscanner.v1.Xxe.Location|null);
+ }
+
+ /** Represents a Xxe. */
+ class Xxe implements IXxe {
+
+ /**
+ * Constructs a new Xxe.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IXxe);
+
+ /** Xxe payloadValue. */
+ public payloadValue: string;
+
+ /** Xxe payloadLocation. */
+ public payloadLocation: (google.cloud.websecurityscanner.v1.Xxe.Location|keyof typeof google.cloud.websecurityscanner.v1.Xxe.Location);
+
+ /**
+ * Creates a new Xxe instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Xxe instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IXxe): google.cloud.websecurityscanner.v1.Xxe;
+
+ /**
+ * Encodes the specified Xxe message. Does not implicitly {@link google.cloud.websecurityscanner.v1.Xxe.verify|verify} messages.
+ * @param message Xxe message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IXxe, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Xxe message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.Xxe.verify|verify} messages.
+ * @param message Xxe message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IXxe, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Xxe message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Xxe
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.Xxe;
+
+ /**
+ * Decodes a Xxe message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Xxe
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.Xxe;
+
+ /**
+ * Verifies a Xxe message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Xxe message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Xxe
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.Xxe;
+
+ /**
+ * Creates a plain object from a Xxe message. Also converts values to other types if specified.
+ * @param message Xxe
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.Xxe, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Xxe to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Xxe
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Xxe {
+
+ /** Location enum. */
+ enum Location {
+ LOCATION_UNSPECIFIED = 0,
+ COMPLETE_REQUEST_BODY = 1
+ }
+ }
+
+ /** Properties of a FindingTypeStats. */
+ interface IFindingTypeStats {
+
+ /** FindingTypeStats findingType */
+ findingType?: (string|null);
+
+ /** FindingTypeStats findingCount */
+ findingCount?: (number|null);
+ }
+
+ /** Represents a FindingTypeStats. */
+ class FindingTypeStats implements IFindingTypeStats {
+
+ /**
+ * Constructs a new FindingTypeStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IFindingTypeStats);
+
+ /** FindingTypeStats findingType. */
+ public findingType: string;
+
+ /** FindingTypeStats findingCount. */
+ public findingCount: number;
+
+ /**
+ * Creates a new FindingTypeStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FindingTypeStats instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IFindingTypeStats): google.cloud.websecurityscanner.v1.FindingTypeStats;
+
+ /**
+ * Encodes the specified FindingTypeStats message. Does not implicitly {@link google.cloud.websecurityscanner.v1.FindingTypeStats.verify|verify} messages.
+ * @param message FindingTypeStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IFindingTypeStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FindingTypeStats message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.FindingTypeStats.verify|verify} messages.
+ * @param message FindingTypeStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IFindingTypeStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FindingTypeStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FindingTypeStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.FindingTypeStats;
+
+ /**
+ * Decodes a FindingTypeStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FindingTypeStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.FindingTypeStats;
+
+ /**
+ * Verifies a FindingTypeStats message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FindingTypeStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FindingTypeStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.FindingTypeStats;
+
+ /**
+ * Creates a plain object from a FindingTypeStats message. Also converts values to other types if specified.
+ * @param message FindingTypeStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.FindingTypeStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FindingTypeStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FindingTypeStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ScanConfig. */
+ interface IScanConfig {
+
+ /** ScanConfig name */
+ name?: (string|null);
+
+ /** ScanConfig displayName */
+ displayName?: (string|null);
+
+ /** ScanConfig maxQps */
+ maxQps?: (number|null);
+
+ /** ScanConfig startingUrls */
+ startingUrls?: (string[]|null);
+
+ /** ScanConfig authentication */
+ authentication?: (google.cloud.websecurityscanner.v1.ScanConfig.IAuthentication|null);
+
+ /** ScanConfig userAgent */
+ userAgent?: (google.cloud.websecurityscanner.v1.ScanConfig.UserAgent|keyof typeof google.cloud.websecurityscanner.v1.ScanConfig.UserAgent|null);
+
+ /** ScanConfig blacklistPatterns */
+ blacklistPatterns?: (string[]|null);
+
+ /** ScanConfig schedule */
+ schedule?: (google.cloud.websecurityscanner.v1.ScanConfig.ISchedule|null);
+
+ /** ScanConfig exportToSecurityCommandCenter */
+ exportToSecurityCommandCenter?: (google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter|keyof typeof google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter|null);
+
+ /** ScanConfig riskLevel */
+ riskLevel?: (google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel|keyof typeof google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel|null);
+
+ /** ScanConfig managedScan */
+ managedScan?: (boolean|null);
+
+ /** ScanConfig staticIpScan */
+ staticIpScan?: (boolean|null);
+
+ /** ScanConfig ignoreHttpStatusErrors */
+ ignoreHttpStatusErrors?: (boolean|null);
+ }
+
+ /** Represents a ScanConfig. */
+ class ScanConfig implements IScanConfig {
+
+ /**
+ * Constructs a new ScanConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IScanConfig);
+
+ /** ScanConfig name. */
+ public name: string;
+
+ /** ScanConfig displayName. */
+ public displayName: string;
+
+ /** ScanConfig maxQps. */
+ public maxQps: number;
+
+ /** ScanConfig startingUrls. */
+ public startingUrls: string[];
+
+ /** ScanConfig authentication. */
+ public authentication?: (google.cloud.websecurityscanner.v1.ScanConfig.IAuthentication|null);
+
+ /** ScanConfig userAgent. */
+ public userAgent: (google.cloud.websecurityscanner.v1.ScanConfig.UserAgent|keyof typeof google.cloud.websecurityscanner.v1.ScanConfig.UserAgent);
+
+ /** ScanConfig blacklistPatterns. */
+ public blacklistPatterns: string[];
+
+ /** ScanConfig schedule. */
+ public schedule?: (google.cloud.websecurityscanner.v1.ScanConfig.ISchedule|null);
+
+ /** ScanConfig exportToSecurityCommandCenter. */
+ public exportToSecurityCommandCenter: (google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter|keyof typeof google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter);
+
+ /** ScanConfig riskLevel. */
+ public riskLevel: (google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel|keyof typeof google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel);
+
+ /** ScanConfig managedScan. */
+ public managedScan: boolean;
+
+ /** ScanConfig staticIpScan. */
+ public staticIpScan: boolean;
+
+ /** ScanConfig ignoreHttpStatusErrors. */
+ public ignoreHttpStatusErrors: boolean;
+
+ /**
+ * Creates a new ScanConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanConfig instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IScanConfig): google.cloud.websecurityscanner.v1.ScanConfig;
+
+ /**
+ * Encodes the specified ScanConfig message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.verify|verify} messages.
+ * @param message ScanConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IScanConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanConfig message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.verify|verify} messages.
+ * @param message ScanConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IScanConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ScanConfig;
+
+ /**
+ * Decodes a ScanConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ScanConfig;
+
+ /**
+ * Verifies a ScanConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ScanConfig;
+
+ /**
+ * Creates a plain object from a ScanConfig message. Also converts values to other types if specified.
+ * @param message ScanConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ScanConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScanConfig {
+
+ /** Properties of an Authentication. */
+ interface IAuthentication {
+
+ /** Authentication googleAccount */
+ googleAccount?: (google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IGoogleAccount|null);
+
+ /** Authentication customAccount */
+ customAccount?: (google.cloud.websecurityscanner.v1.ScanConfig.Authentication.ICustomAccount|null);
+
+ /** Authentication iapCredential */
+ iapCredential?: (google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IIapCredential|null);
+ }
+
+ /** Represents an Authentication. */
+ class Authentication implements IAuthentication {
+
+ /**
+ * Constructs a new Authentication.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.ScanConfig.IAuthentication);
+
+ /** Authentication googleAccount. */
+ public googleAccount?: (google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IGoogleAccount|null);
+
+ /** Authentication customAccount. */
+ public customAccount?: (google.cloud.websecurityscanner.v1.ScanConfig.Authentication.ICustomAccount|null);
+
+ /** Authentication iapCredential. */
+ public iapCredential?: (google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IIapCredential|null);
+
+ /** Authentication authentication. */
+ public authentication?: ("googleAccount"|"customAccount"|"iapCredential");
+
+ /**
+ * Creates a new Authentication instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Authentication instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.ScanConfig.IAuthentication): google.cloud.websecurityscanner.v1.ScanConfig.Authentication;
+
+ /**
+ * Encodes the specified Authentication message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.verify|verify} messages.
+ * @param message Authentication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.ScanConfig.IAuthentication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Authentication message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.verify|verify} messages.
+ * @param message Authentication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.ScanConfig.IAuthentication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Authentication message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Authentication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ScanConfig.Authentication;
+
+ /**
+ * Decodes an Authentication message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Authentication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ScanConfig.Authentication;
+
+ /**
+ * Verifies an Authentication message.
+ * @param message Plain 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 Authentication message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Authentication
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ScanConfig.Authentication;
+
+ /**
+ * Creates a plain object from an Authentication message. Also converts values to other types if specified.
+ * @param message Authentication
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Authentication to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Authentication
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Authentication {
+
+ /** Properties of a GoogleAccount. */
+ interface IGoogleAccount {
+
+ /** GoogleAccount username */
+ username?: (string|null);
+
+ /** GoogleAccount password */
+ password?: (string|null);
+ }
+
+ /** Represents a GoogleAccount. */
+ class GoogleAccount implements IGoogleAccount {
+
+ /**
+ * Constructs a new GoogleAccount.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IGoogleAccount);
+
+ /** GoogleAccount username. */
+ public username: string;
+
+ /** GoogleAccount password. */
+ public password: string;
+
+ /**
+ * Creates a new GoogleAccount instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoogleAccount instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IGoogleAccount): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount;
+
+ /**
+ * Encodes the specified GoogleAccount message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.verify|verify} messages.
+ * @param message GoogleAccount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IGoogleAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoogleAccount message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.verify|verify} messages.
+ * @param message GoogleAccount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IGoogleAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoogleAccount message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoogleAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount;
+
+ /**
+ * Decodes a GoogleAccount message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoogleAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount;
+
+ /**
+ * Verifies a GoogleAccount message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoogleAccount message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoogleAccount
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount;
+
+ /**
+ * Creates a plain object from a GoogleAccount message. Also converts values to other types if specified.
+ * @param message GoogleAccount
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoogleAccount to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoogleAccount
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomAccount. */
+ interface ICustomAccount {
+
+ /** CustomAccount username */
+ username?: (string|null);
+
+ /** CustomAccount password */
+ password?: (string|null);
+
+ /** CustomAccount loginUrl */
+ loginUrl?: (string|null);
+ }
+
+ /** Represents a CustomAccount. */
+ class CustomAccount implements ICustomAccount {
+
+ /**
+ * Constructs a new CustomAccount.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.ICustomAccount);
+
+ /** CustomAccount username. */
+ public username: string;
+
+ /** CustomAccount password. */
+ public password: string;
+
+ /** CustomAccount loginUrl. */
+ public loginUrl: string;
+
+ /**
+ * Creates a new CustomAccount instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomAccount instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.ICustomAccount): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount;
+
+ /**
+ * Encodes the specified CustomAccount message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.verify|verify} messages.
+ * @param message CustomAccount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.ICustomAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomAccount message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.verify|verify} messages.
+ * @param message CustomAccount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.ICustomAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomAccount message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount;
+
+ /**
+ * Decodes a CustomAccount message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount;
+
+ /**
+ * Verifies a CustomAccount message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomAccount message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomAccount
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount;
+
+ /**
+ * Creates a plain object from a CustomAccount message. Also converts values to other types if specified.
+ * @param message CustomAccount
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomAccount to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomAccount
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an IapCredential. */
+ interface IIapCredential {
+
+ /** IapCredential iapTestServiceAccountInfo */
+ iapTestServiceAccountInfo?: (google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IIapTestServiceAccountInfo|null);
+ }
+
+ /** Represents an IapCredential. */
+ class IapCredential implements IIapCredential {
+
+ /**
+ * Constructs a new IapCredential.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IIapCredential);
+
+ /** IapCredential iapTestServiceAccountInfo. */
+ public iapTestServiceAccountInfo?: (google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IIapTestServiceAccountInfo|null);
+
+ /** IapCredential iapCredentials. */
+ public iapCredentials?: "iapTestServiceAccountInfo";
+
+ /**
+ * Creates a new IapCredential instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IapCredential instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IIapCredential): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential;
+
+ /**
+ * Encodes the specified IapCredential message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.verify|verify} messages.
+ * @param message IapCredential message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IIapCredential, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IapCredential message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.verify|verify} messages.
+ * @param message IapCredential message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IIapCredential, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IapCredential message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IapCredential
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential;
+
+ /**
+ * Decodes an IapCredential message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IapCredential
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential;
+
+ /**
+ * Verifies an IapCredential message.
+ * @param message Plain 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 IapCredential message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IapCredential
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential;
+
+ /**
+ * Creates a plain object from an IapCredential message. Also converts values to other types if specified.
+ * @param message IapCredential
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IapCredential to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IapCredential
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace IapCredential {
+
+ /** Properties of an IapTestServiceAccountInfo. */
+ interface IIapTestServiceAccountInfo {
+
+ /** IapTestServiceAccountInfo targetAudienceClientId */
+ targetAudienceClientId?: (string|null);
+ }
+
+ /** Represents an IapTestServiceAccountInfo. */
+ class IapTestServiceAccountInfo implements IIapTestServiceAccountInfo {
+
+ /**
+ * Constructs a new IapTestServiceAccountInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IIapTestServiceAccountInfo);
+
+ /** IapTestServiceAccountInfo targetAudienceClientId. */
+ public targetAudienceClientId: string;
+
+ /**
+ * Creates a new IapTestServiceAccountInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IapTestServiceAccountInfo instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IIapTestServiceAccountInfo): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo;
+
+ /**
+ * Encodes the specified IapTestServiceAccountInfo message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.verify|verify} messages.
+ * @param message IapTestServiceAccountInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IIapTestServiceAccountInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IapTestServiceAccountInfo message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.verify|verify} messages.
+ * @param message IapTestServiceAccountInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IIapTestServiceAccountInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IapTestServiceAccountInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IapTestServiceAccountInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo;
+
+ /**
+ * Decodes an IapTestServiceAccountInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IapTestServiceAccountInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo;
+
+ /**
+ * Verifies an IapTestServiceAccountInfo message.
+ * @param message Plain 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 IapTestServiceAccountInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IapTestServiceAccountInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo;
+
+ /**
+ * Creates a plain object from an IapTestServiceAccountInfo message. Also converts values to other types if specified.
+ * @param message IapTestServiceAccountInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IapTestServiceAccountInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IapTestServiceAccountInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of a Schedule. */
+ interface ISchedule {
+
+ /** Schedule scheduleTime */
+ scheduleTime?: (google.protobuf.ITimestamp|null);
+
+ /** Schedule intervalDurationDays */
+ intervalDurationDays?: (number|null);
+ }
+
+ /** Represents a Schedule. */
+ class Schedule implements ISchedule {
+
+ /**
+ * Constructs a new Schedule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.ScanConfig.ISchedule);
+
+ /** Schedule scheduleTime. */
+ public scheduleTime?: (google.protobuf.ITimestamp|null);
+
+ /** Schedule intervalDurationDays. */
+ public intervalDurationDays: number;
+
+ /**
+ * Creates a new Schedule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Schedule instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.ScanConfig.ISchedule): google.cloud.websecurityscanner.v1.ScanConfig.Schedule;
+
+ /**
+ * Encodes the specified Schedule message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Schedule.verify|verify} messages.
+ * @param message Schedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.ScanConfig.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Schedule message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Schedule.verify|verify} messages.
+ * @param message Schedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.ScanConfig.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Schedule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Schedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ScanConfig.Schedule;
+
+ /**
+ * Decodes a Schedule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Schedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ScanConfig.Schedule;
+
+ /**
+ * Verifies a Schedule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Schedule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Schedule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ScanConfig.Schedule;
+
+ /**
+ * Creates a plain object from a Schedule message. Also converts values to other types if specified.
+ * @param message Schedule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ScanConfig.Schedule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Schedule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Schedule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** UserAgent enum. */
+ enum UserAgent {
+ USER_AGENT_UNSPECIFIED = 0,
+ CHROME_LINUX = 1,
+ CHROME_ANDROID = 2,
+ SAFARI_IPHONE = 3
+ }
+
+ /** RiskLevel enum. */
+ enum RiskLevel {
+ RISK_LEVEL_UNSPECIFIED = 0,
+ NORMAL = 1,
+ LOW = 2
+ }
+
+ /** ExportToSecurityCommandCenter enum. */
+ enum ExportToSecurityCommandCenter {
+ EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED = 0,
+ ENABLED = 1,
+ DISABLED = 2
+ }
+ }
+
+ /** Properties of a ScanConfigError. */
+ interface IScanConfigError {
+
+ /** ScanConfigError code */
+ code?: (google.cloud.websecurityscanner.v1.ScanConfigError.Code|keyof typeof google.cloud.websecurityscanner.v1.ScanConfigError.Code|null);
+
+ /** ScanConfigError fieldName */
+ fieldName?: (string|null);
+ }
+
+ /** Represents a ScanConfigError. */
+ class ScanConfigError implements IScanConfigError {
+
+ /**
+ * Constructs a new ScanConfigError.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IScanConfigError);
+
+ /** ScanConfigError code. */
+ public code: (google.cloud.websecurityscanner.v1.ScanConfigError.Code|keyof typeof google.cloud.websecurityscanner.v1.ScanConfigError.Code);
+
+ /** ScanConfigError fieldName. */
+ public fieldName: string;
+
+ /**
+ * Creates a new ScanConfigError instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanConfigError instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IScanConfigError): google.cloud.websecurityscanner.v1.ScanConfigError;
+
+ /**
+ * Encodes the specified ScanConfigError message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfigError.verify|verify} messages.
+ * @param message ScanConfigError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IScanConfigError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanConfigError message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfigError.verify|verify} messages.
+ * @param message ScanConfigError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IScanConfigError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanConfigError message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanConfigError
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ScanConfigError;
+
+ /**
+ * Decodes a ScanConfigError message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanConfigError
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ScanConfigError;
+
+ /**
+ * Verifies a ScanConfigError message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanConfigError message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanConfigError
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ScanConfigError;
+
+ /**
+ * Creates a plain object from a ScanConfigError message. Also converts values to other types if specified.
+ * @param message ScanConfigError
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ScanConfigError, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanConfigError to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanConfigError
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScanConfigError {
+
+ /** Code enum. */
+ enum Code {
+ CODE_UNSPECIFIED = 0,
+ OK = 0,
+ INTERNAL_ERROR = 1,
+ APPENGINE_API_BACKEND_ERROR = 2,
+ APPENGINE_API_NOT_ACCESSIBLE = 3,
+ APPENGINE_DEFAULT_HOST_MISSING = 4,
+ CANNOT_USE_GOOGLE_COM_ACCOUNT = 6,
+ CANNOT_USE_OWNER_ACCOUNT = 7,
+ COMPUTE_API_BACKEND_ERROR = 8,
+ COMPUTE_API_NOT_ACCESSIBLE = 9,
+ CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT = 10,
+ CUSTOM_LOGIN_URL_MALFORMED = 11,
+ CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS = 12,
+ CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS = 13,
+ CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS = 14,
+ CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS = 15,
+ DUPLICATE_SCAN_NAME = 16,
+ INVALID_FIELD_VALUE = 18,
+ FAILED_TO_AUTHENTICATE_TO_TARGET = 19,
+ FINDING_TYPE_UNSPECIFIED = 20,
+ FORBIDDEN_TO_SCAN_COMPUTE = 21,
+ FORBIDDEN_UPDATE_TO_MANAGED_SCAN = 43,
+ MALFORMED_FILTER = 22,
+ MALFORMED_RESOURCE_NAME = 23,
+ PROJECT_INACTIVE = 24,
+ REQUIRED_FIELD = 25,
+ RESOURCE_NAME_INCONSISTENT = 26,
+ SCAN_ALREADY_RUNNING = 27,
+ SCAN_NOT_RUNNING = 28,
+ SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT = 29,
+ SEED_URL_MALFORMED = 30,
+ SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS = 31,
+ SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS = 32,
+ SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS = 33,
+ SEED_URL_HAS_UNRESERVED_IP_ADDRESS = 35,
+ SERVICE_ACCOUNT_NOT_CONFIGURED = 36,
+ TOO_MANY_SCANS = 37,
+ UNABLE_TO_RESOLVE_PROJECT_INFO = 38,
+ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT = 39,
+ UNSUPPORTED_FILTER = 40,
+ UNSUPPORTED_FINDING_TYPE = 41,
+ UNSUPPORTED_URL_SCHEME = 42
+ }
+ }
+
+ /** Properties of a ScanRun. */
+ interface IScanRun {
+
+ /** ScanRun name */
+ name?: (string|null);
+
+ /** ScanRun executionState */
+ executionState?: (google.cloud.websecurityscanner.v1.ScanRun.ExecutionState|keyof typeof google.cloud.websecurityscanner.v1.ScanRun.ExecutionState|null);
+
+ /** ScanRun resultState */
+ resultState?: (google.cloud.websecurityscanner.v1.ScanRun.ResultState|keyof typeof google.cloud.websecurityscanner.v1.ScanRun.ResultState|null);
+
+ /** ScanRun startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** ScanRun endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** ScanRun urlsCrawledCount */
+ urlsCrawledCount?: (number|Long|string|null);
+
+ /** ScanRun urlsTestedCount */
+ urlsTestedCount?: (number|Long|string|null);
+
+ /** ScanRun hasVulnerabilities */
+ hasVulnerabilities?: (boolean|null);
+
+ /** ScanRun progressPercent */
+ progressPercent?: (number|null);
+
+ /** ScanRun errorTrace */
+ errorTrace?: (google.cloud.websecurityscanner.v1.IScanRunErrorTrace|null);
+
+ /** ScanRun warningTraces */
+ warningTraces?: (google.cloud.websecurityscanner.v1.IScanRunWarningTrace[]|null);
+ }
+
+ /** Represents a ScanRun. */
+ class ScanRun implements IScanRun {
+
+ /**
+ * Constructs a new ScanRun.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IScanRun);
+
+ /** ScanRun name. */
+ public name: string;
+
+ /** ScanRun executionState. */
+ public executionState: (google.cloud.websecurityscanner.v1.ScanRun.ExecutionState|keyof typeof google.cloud.websecurityscanner.v1.ScanRun.ExecutionState);
+
+ /** ScanRun resultState. */
+ public resultState: (google.cloud.websecurityscanner.v1.ScanRun.ResultState|keyof typeof google.cloud.websecurityscanner.v1.ScanRun.ResultState);
+
+ /** ScanRun startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** ScanRun endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** ScanRun urlsCrawledCount. */
+ public urlsCrawledCount: (number|Long|string);
+
+ /** ScanRun urlsTestedCount. */
+ public urlsTestedCount: (number|Long|string);
+
+ /** ScanRun hasVulnerabilities. */
+ public hasVulnerabilities: boolean;
+
+ /** ScanRun progressPercent. */
+ public progressPercent: number;
+
+ /** ScanRun errorTrace. */
+ public errorTrace?: (google.cloud.websecurityscanner.v1.IScanRunErrorTrace|null);
+
+ /** ScanRun warningTraces. */
+ public warningTraces: google.cloud.websecurityscanner.v1.IScanRunWarningTrace[];
+
+ /**
+ * Creates a new ScanRun instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanRun instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IScanRun): google.cloud.websecurityscanner.v1.ScanRun;
+
+ /**
+ * Encodes the specified ScanRun message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRun.verify|verify} messages.
+ * @param message ScanRun message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IScanRun, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanRun message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRun.verify|verify} messages.
+ * @param message ScanRun message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IScanRun, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanRun message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanRun
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ScanRun;
+
+ /**
+ * Decodes a ScanRun message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanRun
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ScanRun;
+
+ /**
+ * Verifies a ScanRun message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanRun message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanRun
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ScanRun;
+
+ /**
+ * Creates a plain object from a ScanRun message. Also converts values to other types if specified.
+ * @param message ScanRun
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ScanRun, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanRun to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanRun
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScanRun {
+
+ /** ExecutionState enum. */
+ enum ExecutionState {
+ EXECUTION_STATE_UNSPECIFIED = 0,
+ QUEUED = 1,
+ SCANNING = 2,
+ FINISHED = 3
+ }
+
+ /** ResultState enum. */
+ enum ResultState {
+ RESULT_STATE_UNSPECIFIED = 0,
+ SUCCESS = 1,
+ ERROR = 2,
+ KILLED = 3
+ }
+ }
+
+ /** Properties of a ScanRunErrorTrace. */
+ interface IScanRunErrorTrace {
+
+ /** ScanRunErrorTrace code */
+ code?: (google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code|keyof typeof google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code|null);
+
+ /** ScanRunErrorTrace scanConfigError */
+ scanConfigError?: (google.cloud.websecurityscanner.v1.IScanConfigError|null);
+
+ /** ScanRunErrorTrace mostCommonHttpErrorCode */
+ mostCommonHttpErrorCode?: (number|null);
+ }
+
+ /** Represents a ScanRunErrorTrace. */
+ class ScanRunErrorTrace implements IScanRunErrorTrace {
+
+ /**
+ * Constructs a new ScanRunErrorTrace.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IScanRunErrorTrace);
+
+ /** ScanRunErrorTrace code. */
+ public code: (google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code|keyof typeof google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code);
+
+ /** ScanRunErrorTrace scanConfigError. */
+ public scanConfigError?: (google.cloud.websecurityscanner.v1.IScanConfigError|null);
+
+ /** ScanRunErrorTrace mostCommonHttpErrorCode. */
+ public mostCommonHttpErrorCode: number;
+
+ /**
+ * Creates a new ScanRunErrorTrace instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanRunErrorTrace instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IScanRunErrorTrace): google.cloud.websecurityscanner.v1.ScanRunErrorTrace;
+
+ /**
+ * Encodes the specified ScanRunErrorTrace message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRunErrorTrace.verify|verify} messages.
+ * @param message ScanRunErrorTrace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IScanRunErrorTrace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanRunErrorTrace message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRunErrorTrace.verify|verify} messages.
+ * @param message ScanRunErrorTrace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IScanRunErrorTrace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanRunErrorTrace message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanRunErrorTrace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ScanRunErrorTrace;
+
+ /**
+ * Decodes a ScanRunErrorTrace message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanRunErrorTrace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ScanRunErrorTrace;
+
+ /**
+ * Verifies a ScanRunErrorTrace message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanRunErrorTrace message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanRunErrorTrace
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ScanRunErrorTrace;
+
+ /**
+ * Creates a plain object from a ScanRunErrorTrace message. Also converts values to other types if specified.
+ * @param message ScanRunErrorTrace
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ScanRunErrorTrace, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanRunErrorTrace to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanRunErrorTrace
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScanRunErrorTrace {
+
+ /** Code enum. */
+ enum Code {
+ CODE_UNSPECIFIED = 0,
+ INTERNAL_ERROR = 1,
+ SCAN_CONFIG_ISSUE = 2,
+ AUTHENTICATION_CONFIG_ISSUE = 3,
+ TIMED_OUT_WHILE_SCANNING = 4,
+ TOO_MANY_REDIRECTS = 5,
+ TOO_MANY_HTTP_ERRORS = 6
+ }
+ }
+
+ /** Properties of a ScanRunWarningTrace. */
+ interface IScanRunWarningTrace {
+
+ /** ScanRunWarningTrace code */
+ code?: (google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code|keyof typeof google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code|null);
+ }
+
+ /** Represents a ScanRunWarningTrace. */
+ class ScanRunWarningTrace implements IScanRunWarningTrace {
+
+ /**
+ * Constructs a new ScanRunWarningTrace.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IScanRunWarningTrace);
+
+ /** ScanRunWarningTrace code. */
+ public code: (google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code|keyof typeof google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code);
+
+ /**
+ * Creates a new ScanRunWarningTrace instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanRunWarningTrace instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IScanRunWarningTrace): google.cloud.websecurityscanner.v1.ScanRunWarningTrace;
+
+ /**
+ * Encodes the specified ScanRunWarningTrace message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRunWarningTrace.verify|verify} messages.
+ * @param message ScanRunWarningTrace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IScanRunWarningTrace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanRunWarningTrace message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRunWarningTrace.verify|verify} messages.
+ * @param message ScanRunWarningTrace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IScanRunWarningTrace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanRunWarningTrace message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanRunWarningTrace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ScanRunWarningTrace;
+
+ /**
+ * Decodes a ScanRunWarningTrace message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanRunWarningTrace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ScanRunWarningTrace;
+
+ /**
+ * Verifies a ScanRunWarningTrace message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanRunWarningTrace message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanRunWarningTrace
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ScanRunWarningTrace;
+
+ /**
+ * Creates a plain object from a ScanRunWarningTrace message. Also converts values to other types if specified.
+ * @param message ScanRunWarningTrace
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ScanRunWarningTrace, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanRunWarningTrace to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanRunWarningTrace
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScanRunWarningTrace {
+
+ /** Code enum. */
+ enum Code {
+ CODE_UNSPECIFIED = 0,
+ INSUFFICIENT_CRAWL_RESULTS = 1,
+ TOO_MANY_CRAWL_RESULTS = 2,
+ TOO_MANY_FUZZ_TASKS = 3,
+ BLOCKED_BY_IAP = 4,
+ NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN = 5
+ }
+ }
+
+ /** Properties of a ScanRunLog. */
+ interface IScanRunLog {
+
+ /** ScanRunLog summary */
+ summary?: (string|null);
+
+ /** ScanRunLog name */
+ name?: (string|null);
+
+ /** ScanRunLog executionState */
+ executionState?: (google.cloud.websecurityscanner.v1.ScanRun.ExecutionState|keyof typeof google.cloud.websecurityscanner.v1.ScanRun.ExecutionState|null);
+
+ /** ScanRunLog resultState */
+ resultState?: (google.cloud.websecurityscanner.v1.ScanRun.ResultState|keyof typeof google.cloud.websecurityscanner.v1.ScanRun.ResultState|null);
+
+ /** ScanRunLog urlsCrawledCount */
+ urlsCrawledCount?: (number|Long|string|null);
+
+ /** ScanRunLog urlsTestedCount */
+ urlsTestedCount?: (number|Long|string|null);
+
+ /** ScanRunLog hasFindings */
+ hasFindings?: (boolean|null);
+
+ /** ScanRunLog errorTrace */
+ errorTrace?: (google.cloud.websecurityscanner.v1.IScanRunErrorTrace|null);
+ }
+
+ /** Represents a ScanRunLog. */
+ class ScanRunLog implements IScanRunLog {
+
+ /**
+ * Constructs a new ScanRunLog.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IScanRunLog);
+
+ /** ScanRunLog summary. */
+ public summary: string;
+
+ /** ScanRunLog name. */
+ public name: string;
+
+ /** ScanRunLog executionState. */
+ public executionState: (google.cloud.websecurityscanner.v1.ScanRun.ExecutionState|keyof typeof google.cloud.websecurityscanner.v1.ScanRun.ExecutionState);
+
+ /** ScanRunLog resultState. */
+ public resultState: (google.cloud.websecurityscanner.v1.ScanRun.ResultState|keyof typeof google.cloud.websecurityscanner.v1.ScanRun.ResultState);
+
+ /** ScanRunLog urlsCrawledCount. */
+ public urlsCrawledCount: (number|Long|string);
+
+ /** ScanRunLog urlsTestedCount. */
+ public urlsTestedCount: (number|Long|string);
+
+ /** ScanRunLog hasFindings. */
+ public hasFindings: boolean;
+
+ /** ScanRunLog errorTrace. */
+ public errorTrace?: (google.cloud.websecurityscanner.v1.IScanRunErrorTrace|null);
+
+ /**
+ * Creates a new ScanRunLog instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanRunLog instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IScanRunLog): google.cloud.websecurityscanner.v1.ScanRunLog;
+
+ /**
+ * Encodes the specified ScanRunLog message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRunLog.verify|verify} messages.
+ * @param message ScanRunLog message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IScanRunLog, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanRunLog message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRunLog.verify|verify} messages.
+ * @param message ScanRunLog message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IScanRunLog, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanRunLog message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanRunLog
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ScanRunLog;
+
+ /**
+ * Decodes a ScanRunLog message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanRunLog
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ScanRunLog;
+
+ /**
+ * Verifies a ScanRunLog message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanRunLog message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanRunLog
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ScanRunLog;
+
+ /**
+ * Creates a plain object from a ScanRunLog message. Also converts values to other types if specified.
+ * @param message ScanRunLog
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ScanRunLog, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanRunLog to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanRunLog
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a WebSecurityScanner */
+ class WebSecurityScanner extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new WebSecurityScanner 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 WebSecurityScanner 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): WebSecurityScanner;
+
+ /**
+ * Calls CreateScanConfig.
+ * @param request CreateScanConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanConfig
+ */
+ public createScanConfig(request: google.cloud.websecurityscanner.v1.ICreateScanConfigRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.CreateScanConfigCallback): void;
+
+ /**
+ * Calls CreateScanConfig.
+ * @param request CreateScanConfigRequest message or plain object
+ * @returns Promise
+ */
+ public createScanConfig(request: google.cloud.websecurityscanner.v1.ICreateScanConfigRequest): Promise;
+
+ /**
+ * Calls DeleteScanConfig.
+ * @param request DeleteScanConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteScanConfig(request: google.cloud.websecurityscanner.v1.IDeleteScanConfigRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.DeleteScanConfigCallback): void;
+
+ /**
+ * Calls DeleteScanConfig.
+ * @param request DeleteScanConfigRequest message or plain object
+ * @returns Promise
+ */
+ public deleteScanConfig(request: google.cloud.websecurityscanner.v1.IDeleteScanConfigRequest): Promise;
+
+ /**
+ * Calls GetScanConfig.
+ * @param request GetScanConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanConfig
+ */
+ public getScanConfig(request: google.cloud.websecurityscanner.v1.IGetScanConfigRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.GetScanConfigCallback): void;
+
+ /**
+ * Calls GetScanConfig.
+ * @param request GetScanConfigRequest message or plain object
+ * @returns Promise
+ */
+ public getScanConfig(request: google.cloud.websecurityscanner.v1.IGetScanConfigRequest): Promise;
+
+ /**
+ * Calls ListScanConfigs.
+ * @param request ListScanConfigsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListScanConfigsResponse
+ */
+ public listScanConfigs(request: google.cloud.websecurityscanner.v1.IListScanConfigsRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.ListScanConfigsCallback): void;
+
+ /**
+ * Calls ListScanConfigs.
+ * @param request ListScanConfigsRequest message or plain object
+ * @returns Promise
+ */
+ public listScanConfigs(request: google.cloud.websecurityscanner.v1.IListScanConfigsRequest): Promise;
+
+ /**
+ * Calls UpdateScanConfig.
+ * @param request UpdateScanConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanConfig
+ */
+ public updateScanConfig(request: google.cloud.websecurityscanner.v1.IUpdateScanConfigRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.UpdateScanConfigCallback): void;
+
+ /**
+ * Calls UpdateScanConfig.
+ * @param request UpdateScanConfigRequest message or plain object
+ * @returns Promise
+ */
+ public updateScanConfig(request: google.cloud.websecurityscanner.v1.IUpdateScanConfigRequest): Promise;
+
+ /**
+ * Calls StartScanRun.
+ * @param request StartScanRunRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanRun
+ */
+ public startScanRun(request: google.cloud.websecurityscanner.v1.IStartScanRunRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.StartScanRunCallback): void;
+
+ /**
+ * Calls StartScanRun.
+ * @param request StartScanRunRequest message or plain object
+ * @returns Promise
+ */
+ public startScanRun(request: google.cloud.websecurityscanner.v1.IStartScanRunRequest): Promise;
+
+ /**
+ * Calls GetScanRun.
+ * @param request GetScanRunRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanRun
+ */
+ public getScanRun(request: google.cloud.websecurityscanner.v1.IGetScanRunRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.GetScanRunCallback): void;
+
+ /**
+ * Calls GetScanRun.
+ * @param request GetScanRunRequest message or plain object
+ * @returns Promise
+ */
+ public getScanRun(request: google.cloud.websecurityscanner.v1.IGetScanRunRequest): Promise;
+
+ /**
+ * Calls ListScanRuns.
+ * @param request ListScanRunsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListScanRunsResponse
+ */
+ public listScanRuns(request: google.cloud.websecurityscanner.v1.IListScanRunsRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.ListScanRunsCallback): void;
+
+ /**
+ * Calls ListScanRuns.
+ * @param request ListScanRunsRequest message or plain object
+ * @returns Promise
+ */
+ public listScanRuns(request: google.cloud.websecurityscanner.v1.IListScanRunsRequest): Promise;
+
+ /**
+ * Calls StopScanRun.
+ * @param request StopScanRunRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanRun
+ */
+ public stopScanRun(request: google.cloud.websecurityscanner.v1.IStopScanRunRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.StopScanRunCallback): void;
+
+ /**
+ * Calls StopScanRun.
+ * @param request StopScanRunRequest message or plain object
+ * @returns Promise
+ */
+ public stopScanRun(request: google.cloud.websecurityscanner.v1.IStopScanRunRequest): Promise;
+
+ /**
+ * Calls ListCrawledUrls.
+ * @param request ListCrawledUrlsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListCrawledUrlsResponse
+ */
+ public listCrawledUrls(request: google.cloud.websecurityscanner.v1.IListCrawledUrlsRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.ListCrawledUrlsCallback): void;
+
+ /**
+ * Calls ListCrawledUrls.
+ * @param request ListCrawledUrlsRequest message or plain object
+ * @returns Promise
+ */
+ public listCrawledUrls(request: google.cloud.websecurityscanner.v1.IListCrawledUrlsRequest): Promise;
+
+ /**
+ * Calls GetFinding.
+ * @param request GetFindingRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Finding
+ */
+ public getFinding(request: google.cloud.websecurityscanner.v1.IGetFindingRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.GetFindingCallback): void;
+
+ /**
+ * Calls GetFinding.
+ * @param request GetFindingRequest message or plain object
+ * @returns Promise
+ */
+ public getFinding(request: google.cloud.websecurityscanner.v1.IGetFindingRequest): Promise;
+
+ /**
+ * Calls ListFindings.
+ * @param request ListFindingsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListFindingsResponse
+ */
+ public listFindings(request: google.cloud.websecurityscanner.v1.IListFindingsRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.ListFindingsCallback): void;
+
+ /**
+ * Calls ListFindings.
+ * @param request ListFindingsRequest message or plain object
+ * @returns Promise
+ */
+ public listFindings(request: google.cloud.websecurityscanner.v1.IListFindingsRequest): Promise;
+
+ /**
+ * Calls ListFindingTypeStats.
+ * @param request ListFindingTypeStatsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListFindingTypeStatsResponse
+ */
+ public listFindingTypeStats(request: google.cloud.websecurityscanner.v1.IListFindingTypeStatsRequest, callback: google.cloud.websecurityscanner.v1.WebSecurityScanner.ListFindingTypeStatsCallback): void;
+
+ /**
+ * Calls ListFindingTypeStats.
+ * @param request ListFindingTypeStatsRequest message or plain object
+ * @returns Promise
+ */
+ public listFindingTypeStats(request: google.cloud.websecurityscanner.v1.IListFindingTypeStatsRequest): Promise;
+ }
+
+ namespace WebSecurityScanner {
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|createScanConfig}.
+ * @param error Error, if any
+ * @param [response] ScanConfig
+ */
+ type CreateScanConfigCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1.ScanConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|deleteScanConfig}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteScanConfigCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|getScanConfig}.
+ * @param error Error, if any
+ * @param [response] ScanConfig
+ */
+ type GetScanConfigCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1.ScanConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|listScanConfigs}.
+ * @param error Error, if any
+ * @param [response] ListScanConfigsResponse
+ */
+ type ListScanConfigsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1.ListScanConfigsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|updateScanConfig}.
+ * @param error Error, if any
+ * @param [response] ScanConfig
+ */
+ type UpdateScanConfigCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1.ScanConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|startScanRun}.
+ * @param error Error, if any
+ * @param [response] ScanRun
+ */
+ type StartScanRunCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1.ScanRun) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|getScanRun}.
+ * @param error Error, if any
+ * @param [response] ScanRun
+ */
+ type GetScanRunCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1.ScanRun) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|listScanRuns}.
+ * @param error Error, if any
+ * @param [response] ListScanRunsResponse
+ */
+ type ListScanRunsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1.ListScanRunsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|stopScanRun}.
+ * @param error Error, if any
+ * @param [response] ScanRun
+ */
+ type StopScanRunCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1.ScanRun) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|listCrawledUrls}.
+ * @param error Error, if any
+ * @param [response] ListCrawledUrlsResponse
+ */
+ type ListCrawledUrlsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|getFinding}.
+ * @param error Error, if any
+ * @param [response] Finding
+ */
+ type GetFindingCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1.Finding) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|listFindings}.
+ * @param error Error, if any
+ * @param [response] ListFindingsResponse
+ */
+ type ListFindingsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1.ListFindingsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|listFindingTypeStats}.
+ * @param error Error, if any
+ * @param [response] ListFindingTypeStatsResponse
+ */
+ type ListFindingTypeStatsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) => void;
+ }
+
+ /** Properties of a CreateScanConfigRequest. */
+ interface ICreateScanConfigRequest {
+
+ /** CreateScanConfigRequest parent */
+ parent?: (string|null);
+
+ /** CreateScanConfigRequest scanConfig */
+ scanConfig?: (google.cloud.websecurityscanner.v1.IScanConfig|null);
+ }
+
+ /** Represents a CreateScanConfigRequest. */
+ class CreateScanConfigRequest implements ICreateScanConfigRequest {
+
+ /**
+ * Constructs a new CreateScanConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.ICreateScanConfigRequest);
+
+ /** CreateScanConfigRequest parent. */
+ public parent: string;
+
+ /** CreateScanConfigRequest scanConfig. */
+ public scanConfig?: (google.cloud.websecurityscanner.v1.IScanConfig|null);
+
+ /**
+ * Creates a new CreateScanConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateScanConfigRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.ICreateScanConfigRequest): google.cloud.websecurityscanner.v1.CreateScanConfigRequest;
+
+ /**
+ * Encodes the specified CreateScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.CreateScanConfigRequest.verify|verify} messages.
+ * @param message CreateScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.ICreateScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.CreateScanConfigRequest.verify|verify} messages.
+ * @param message CreateScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.ICreateScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateScanConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.CreateScanConfigRequest;
+
+ /**
+ * Decodes a CreateScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.CreateScanConfigRequest;
+
+ /**
+ * Verifies a CreateScanConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateScanConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.CreateScanConfigRequest;
+
+ /**
+ * Creates a plain object from a CreateScanConfigRequest message. Also converts values to other types if specified.
+ * @param message CreateScanConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.CreateScanConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateScanConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateScanConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteScanConfigRequest. */
+ interface IDeleteScanConfigRequest {
+
+ /** DeleteScanConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteScanConfigRequest. */
+ class DeleteScanConfigRequest implements IDeleteScanConfigRequest {
+
+ /**
+ * Constructs a new DeleteScanConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IDeleteScanConfigRequest);
+
+ /** DeleteScanConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteScanConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteScanConfigRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IDeleteScanConfigRequest): google.cloud.websecurityscanner.v1.DeleteScanConfigRequest;
+
+ /**
+ * Encodes the specified DeleteScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.verify|verify} messages.
+ * @param message DeleteScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IDeleteScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.verify|verify} messages.
+ * @param message DeleteScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IDeleteScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteScanConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.DeleteScanConfigRequest;
+
+ /**
+ * Decodes a DeleteScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.DeleteScanConfigRequest;
+
+ /**
+ * Verifies a DeleteScanConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteScanConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.DeleteScanConfigRequest;
+
+ /**
+ * Creates a plain object from a DeleteScanConfigRequest message. Also converts values to other types if specified.
+ * @param message DeleteScanConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteScanConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteScanConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetScanConfigRequest. */
+ interface IGetScanConfigRequest {
+
+ /** GetScanConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetScanConfigRequest. */
+ class GetScanConfigRequest implements IGetScanConfigRequest {
+
+ /**
+ * Constructs a new GetScanConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IGetScanConfigRequest);
+
+ /** GetScanConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetScanConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetScanConfigRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IGetScanConfigRequest): google.cloud.websecurityscanner.v1.GetScanConfigRequest;
+
+ /**
+ * Encodes the specified GetScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.GetScanConfigRequest.verify|verify} messages.
+ * @param message GetScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IGetScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.GetScanConfigRequest.verify|verify} messages.
+ * @param message GetScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IGetScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetScanConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.GetScanConfigRequest;
+
+ /**
+ * Decodes a GetScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.GetScanConfigRequest;
+
+ /**
+ * Verifies a GetScanConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetScanConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.GetScanConfigRequest;
+
+ /**
+ * Creates a plain object from a GetScanConfigRequest message. Also converts values to other types if specified.
+ * @param message GetScanConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.GetScanConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetScanConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetScanConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListScanConfigsRequest. */
+ interface IListScanConfigsRequest {
+
+ /** ListScanConfigsRequest parent */
+ parent?: (string|null);
+
+ /** ListScanConfigsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListScanConfigsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListScanConfigsRequest. */
+ class ListScanConfigsRequest implements IListScanConfigsRequest {
+
+ /**
+ * Constructs a new ListScanConfigsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IListScanConfigsRequest);
+
+ /** ListScanConfigsRequest parent. */
+ public parent: string;
+
+ /** ListScanConfigsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListScanConfigsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListScanConfigsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListScanConfigsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IListScanConfigsRequest): google.cloud.websecurityscanner.v1.ListScanConfigsRequest;
+
+ /**
+ * Encodes the specified ListScanConfigsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanConfigsRequest.verify|verify} messages.
+ * @param message ListScanConfigsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IListScanConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListScanConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanConfigsRequest.verify|verify} messages.
+ * @param message ListScanConfigsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IListScanConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListScanConfigsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListScanConfigsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ListScanConfigsRequest;
+
+ /**
+ * Decodes a ListScanConfigsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListScanConfigsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ListScanConfigsRequest;
+
+ /**
+ * Verifies a ListScanConfigsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListScanConfigsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListScanConfigsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ListScanConfigsRequest;
+
+ /**
+ * Creates a plain object from a ListScanConfigsRequest message. Also converts values to other types if specified.
+ * @param message ListScanConfigsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ListScanConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListScanConfigsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListScanConfigsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateScanConfigRequest. */
+ interface IUpdateScanConfigRequest {
+
+ /** UpdateScanConfigRequest scanConfig */
+ scanConfig?: (google.cloud.websecurityscanner.v1.IScanConfig|null);
+
+ /** UpdateScanConfigRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateScanConfigRequest. */
+ class UpdateScanConfigRequest implements IUpdateScanConfigRequest {
+
+ /**
+ * Constructs a new UpdateScanConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IUpdateScanConfigRequest);
+
+ /** UpdateScanConfigRequest scanConfig. */
+ public scanConfig?: (google.cloud.websecurityscanner.v1.IScanConfig|null);
+
+ /** UpdateScanConfigRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateScanConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateScanConfigRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IUpdateScanConfigRequest): google.cloud.websecurityscanner.v1.UpdateScanConfigRequest;
+
+ /**
+ * Encodes the specified UpdateScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.verify|verify} messages.
+ * @param message UpdateScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IUpdateScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.verify|verify} messages.
+ * @param message UpdateScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IUpdateScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateScanConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.UpdateScanConfigRequest;
+
+ /**
+ * Decodes an UpdateScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.UpdateScanConfigRequest;
+
+ /**
+ * Verifies an UpdateScanConfigRequest message.
+ * @param message Plain 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 UpdateScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateScanConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.UpdateScanConfigRequest;
+
+ /**
+ * Creates a plain object from an UpdateScanConfigRequest message. Also converts values to other types if specified.
+ * @param message UpdateScanConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateScanConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateScanConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListScanConfigsResponse. */
+ interface IListScanConfigsResponse {
+
+ /** ListScanConfigsResponse scanConfigs */
+ scanConfigs?: (google.cloud.websecurityscanner.v1.IScanConfig[]|null);
+
+ /** ListScanConfigsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListScanConfigsResponse. */
+ class ListScanConfigsResponse implements IListScanConfigsResponse {
+
+ /**
+ * Constructs a new ListScanConfigsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IListScanConfigsResponse);
+
+ /** ListScanConfigsResponse scanConfigs. */
+ public scanConfigs: google.cloud.websecurityscanner.v1.IScanConfig[];
+
+ /** ListScanConfigsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListScanConfigsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListScanConfigsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IListScanConfigsResponse): google.cloud.websecurityscanner.v1.ListScanConfigsResponse;
+
+ /**
+ * Encodes the specified ListScanConfigsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanConfigsResponse.verify|verify} messages.
+ * @param message ListScanConfigsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IListScanConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListScanConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanConfigsResponse.verify|verify} messages.
+ * @param message ListScanConfigsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IListScanConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListScanConfigsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListScanConfigsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ListScanConfigsResponse;
+
+ /**
+ * Decodes a ListScanConfigsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListScanConfigsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ListScanConfigsResponse;
+
+ /**
+ * Verifies a ListScanConfigsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListScanConfigsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListScanConfigsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ListScanConfigsResponse;
+
+ /**
+ * Creates a plain object from a ListScanConfigsResponse message. Also converts values to other types if specified.
+ * @param message ListScanConfigsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ListScanConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListScanConfigsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListScanConfigsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StartScanRunRequest. */
+ interface IStartScanRunRequest {
+
+ /** StartScanRunRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a StartScanRunRequest. */
+ class StartScanRunRequest implements IStartScanRunRequest {
+
+ /**
+ * Constructs a new StartScanRunRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IStartScanRunRequest);
+
+ /** StartScanRunRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new StartScanRunRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StartScanRunRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IStartScanRunRequest): google.cloud.websecurityscanner.v1.StartScanRunRequest;
+
+ /**
+ * Encodes the specified StartScanRunRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.StartScanRunRequest.verify|verify} messages.
+ * @param message StartScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IStartScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StartScanRunRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.StartScanRunRequest.verify|verify} messages.
+ * @param message StartScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IStartScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StartScanRunRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StartScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.StartScanRunRequest;
+
+ /**
+ * Decodes a StartScanRunRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StartScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.StartScanRunRequest;
+
+ /**
+ * Verifies a StartScanRunRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StartScanRunRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StartScanRunRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.StartScanRunRequest;
+
+ /**
+ * Creates a plain object from a StartScanRunRequest message. Also converts values to other types if specified.
+ * @param message StartScanRunRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.StartScanRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StartScanRunRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StartScanRunRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetScanRunRequest. */
+ interface IGetScanRunRequest {
+
+ /** GetScanRunRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetScanRunRequest. */
+ class GetScanRunRequest implements IGetScanRunRequest {
+
+ /**
+ * Constructs a new GetScanRunRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IGetScanRunRequest);
+
+ /** GetScanRunRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetScanRunRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetScanRunRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IGetScanRunRequest): google.cloud.websecurityscanner.v1.GetScanRunRequest;
+
+ /**
+ * Encodes the specified GetScanRunRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.GetScanRunRequest.verify|verify} messages.
+ * @param message GetScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IGetScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetScanRunRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.GetScanRunRequest.verify|verify} messages.
+ * @param message GetScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IGetScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetScanRunRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.GetScanRunRequest;
+
+ /**
+ * Decodes a GetScanRunRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.GetScanRunRequest;
+
+ /**
+ * Verifies a GetScanRunRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetScanRunRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetScanRunRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.GetScanRunRequest;
+
+ /**
+ * Creates a plain object from a GetScanRunRequest message. Also converts values to other types if specified.
+ * @param message GetScanRunRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.GetScanRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetScanRunRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetScanRunRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListScanRunsRequest. */
+ interface IListScanRunsRequest {
+
+ /** ListScanRunsRequest parent */
+ parent?: (string|null);
+
+ /** ListScanRunsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListScanRunsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListScanRunsRequest. */
+ class ListScanRunsRequest implements IListScanRunsRequest {
+
+ /**
+ * Constructs a new ListScanRunsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IListScanRunsRequest);
+
+ /** ListScanRunsRequest parent. */
+ public parent: string;
+
+ /** ListScanRunsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListScanRunsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListScanRunsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListScanRunsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IListScanRunsRequest): google.cloud.websecurityscanner.v1.ListScanRunsRequest;
+
+ /**
+ * Encodes the specified ListScanRunsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanRunsRequest.verify|verify} messages.
+ * @param message ListScanRunsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IListScanRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListScanRunsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanRunsRequest.verify|verify} messages.
+ * @param message ListScanRunsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IListScanRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListScanRunsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListScanRunsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ListScanRunsRequest;
+
+ /**
+ * Decodes a ListScanRunsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListScanRunsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ListScanRunsRequest;
+
+ /**
+ * Verifies a ListScanRunsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListScanRunsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListScanRunsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ListScanRunsRequest;
+
+ /**
+ * Creates a plain object from a ListScanRunsRequest message. Also converts values to other types if specified.
+ * @param message ListScanRunsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ListScanRunsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListScanRunsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListScanRunsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListScanRunsResponse. */
+ interface IListScanRunsResponse {
+
+ /** ListScanRunsResponse scanRuns */
+ scanRuns?: (google.cloud.websecurityscanner.v1.IScanRun[]|null);
+
+ /** ListScanRunsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListScanRunsResponse. */
+ class ListScanRunsResponse implements IListScanRunsResponse {
+
+ /**
+ * Constructs a new ListScanRunsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IListScanRunsResponse);
+
+ /** ListScanRunsResponse scanRuns. */
+ public scanRuns: google.cloud.websecurityscanner.v1.IScanRun[];
+
+ /** ListScanRunsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListScanRunsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListScanRunsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IListScanRunsResponse): google.cloud.websecurityscanner.v1.ListScanRunsResponse;
+
+ /**
+ * Encodes the specified ListScanRunsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanRunsResponse.verify|verify} messages.
+ * @param message ListScanRunsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IListScanRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListScanRunsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanRunsResponse.verify|verify} messages.
+ * @param message ListScanRunsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IListScanRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListScanRunsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListScanRunsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ListScanRunsResponse;
+
+ /**
+ * Decodes a ListScanRunsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListScanRunsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ListScanRunsResponse;
+
+ /**
+ * Verifies a ListScanRunsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListScanRunsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListScanRunsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ListScanRunsResponse;
+
+ /**
+ * Creates a plain object from a ListScanRunsResponse message. Also converts values to other types if specified.
+ * @param message ListScanRunsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ListScanRunsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListScanRunsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListScanRunsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StopScanRunRequest. */
+ interface IStopScanRunRequest {
+
+ /** StopScanRunRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a StopScanRunRequest. */
+ class StopScanRunRequest implements IStopScanRunRequest {
+
+ /**
+ * Constructs a new StopScanRunRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IStopScanRunRequest);
+
+ /** StopScanRunRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new StopScanRunRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StopScanRunRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IStopScanRunRequest): google.cloud.websecurityscanner.v1.StopScanRunRequest;
+
+ /**
+ * Encodes the specified StopScanRunRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.StopScanRunRequest.verify|verify} messages.
+ * @param message StopScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IStopScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StopScanRunRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.StopScanRunRequest.verify|verify} messages.
+ * @param message StopScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IStopScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StopScanRunRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StopScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.StopScanRunRequest;
+
+ /**
+ * Decodes a StopScanRunRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StopScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.StopScanRunRequest;
+
+ /**
+ * Verifies a StopScanRunRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StopScanRunRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StopScanRunRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.StopScanRunRequest;
+
+ /**
+ * Creates a plain object from a StopScanRunRequest message. Also converts values to other types if specified.
+ * @param message StopScanRunRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.StopScanRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StopScanRunRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StopScanRunRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCrawledUrlsRequest. */
+ interface IListCrawledUrlsRequest {
+
+ /** ListCrawledUrlsRequest parent */
+ parent?: (string|null);
+
+ /** ListCrawledUrlsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListCrawledUrlsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListCrawledUrlsRequest. */
+ class ListCrawledUrlsRequest implements IListCrawledUrlsRequest {
+
+ /**
+ * Constructs a new ListCrawledUrlsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IListCrawledUrlsRequest);
+
+ /** ListCrawledUrlsRequest parent. */
+ public parent: string;
+
+ /** ListCrawledUrlsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListCrawledUrlsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListCrawledUrlsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCrawledUrlsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IListCrawledUrlsRequest): google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest;
+
+ /**
+ * Encodes the specified ListCrawledUrlsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.verify|verify} messages.
+ * @param message ListCrawledUrlsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IListCrawledUrlsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCrawledUrlsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.verify|verify} messages.
+ * @param message ListCrawledUrlsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IListCrawledUrlsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCrawledUrlsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCrawledUrlsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest;
+
+ /**
+ * Decodes a ListCrawledUrlsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCrawledUrlsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest;
+
+ /**
+ * Verifies a ListCrawledUrlsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCrawledUrlsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCrawledUrlsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest;
+
+ /**
+ * Creates a plain object from a ListCrawledUrlsRequest message. Also converts values to other types if specified.
+ * @param message ListCrawledUrlsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCrawledUrlsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCrawledUrlsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCrawledUrlsResponse. */
+ interface IListCrawledUrlsResponse {
+
+ /** ListCrawledUrlsResponse crawledUrls */
+ crawledUrls?: (google.cloud.websecurityscanner.v1.ICrawledUrl[]|null);
+
+ /** ListCrawledUrlsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListCrawledUrlsResponse. */
+ class ListCrawledUrlsResponse implements IListCrawledUrlsResponse {
+
+ /**
+ * Constructs a new ListCrawledUrlsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IListCrawledUrlsResponse);
+
+ /** ListCrawledUrlsResponse crawledUrls. */
+ public crawledUrls: google.cloud.websecurityscanner.v1.ICrawledUrl[];
+
+ /** ListCrawledUrlsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListCrawledUrlsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCrawledUrlsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IListCrawledUrlsResponse): google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse;
+
+ /**
+ * Encodes the specified ListCrawledUrlsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.verify|verify} messages.
+ * @param message ListCrawledUrlsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IListCrawledUrlsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCrawledUrlsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.verify|verify} messages.
+ * @param message ListCrawledUrlsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IListCrawledUrlsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCrawledUrlsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCrawledUrlsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse;
+
+ /**
+ * Decodes a ListCrawledUrlsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCrawledUrlsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse;
+
+ /**
+ * Verifies a ListCrawledUrlsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCrawledUrlsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCrawledUrlsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse;
+
+ /**
+ * Creates a plain object from a ListCrawledUrlsResponse message. Also converts values to other types if specified.
+ * @param message ListCrawledUrlsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCrawledUrlsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCrawledUrlsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetFindingRequest. */
+ interface IGetFindingRequest {
+
+ /** GetFindingRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetFindingRequest. */
+ class GetFindingRequest implements IGetFindingRequest {
+
+ /**
+ * Constructs a new GetFindingRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IGetFindingRequest);
+
+ /** GetFindingRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetFindingRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetFindingRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IGetFindingRequest): google.cloud.websecurityscanner.v1.GetFindingRequest;
+
+ /**
+ * Encodes the specified GetFindingRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.GetFindingRequest.verify|verify} messages.
+ * @param message GetFindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IGetFindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetFindingRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.GetFindingRequest.verify|verify} messages.
+ * @param message GetFindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IGetFindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetFindingRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetFindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.GetFindingRequest;
+
+ /**
+ * Decodes a GetFindingRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetFindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.GetFindingRequest;
+
+ /**
+ * Verifies a GetFindingRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetFindingRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetFindingRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.GetFindingRequest;
+
+ /**
+ * Creates a plain object from a GetFindingRequest message. Also converts values to other types if specified.
+ * @param message GetFindingRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.GetFindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetFindingRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetFindingRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFindingsRequest. */
+ interface IListFindingsRequest {
+
+ /** ListFindingsRequest parent */
+ parent?: (string|null);
+
+ /** ListFindingsRequest filter */
+ filter?: (string|null);
+
+ /** ListFindingsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListFindingsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListFindingsRequest. */
+ class ListFindingsRequest implements IListFindingsRequest {
+
+ /**
+ * Constructs a new ListFindingsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IListFindingsRequest);
+
+ /** ListFindingsRequest parent. */
+ public parent: string;
+
+ /** ListFindingsRequest filter. */
+ public filter: string;
+
+ /** ListFindingsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListFindingsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListFindingsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFindingsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IListFindingsRequest): google.cloud.websecurityscanner.v1.ListFindingsRequest;
+
+ /**
+ * Encodes the specified ListFindingsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingsRequest.verify|verify} messages.
+ * @param message ListFindingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IListFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFindingsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingsRequest.verify|verify} messages.
+ * @param message ListFindingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IListFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFindingsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFindingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ListFindingsRequest;
+
+ /**
+ * Decodes a ListFindingsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFindingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ListFindingsRequest;
+
+ /**
+ * Verifies a ListFindingsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFindingsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFindingsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ListFindingsRequest;
+
+ /**
+ * Creates a plain object from a ListFindingsRequest message. Also converts values to other types if specified.
+ * @param message ListFindingsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ListFindingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFindingsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFindingsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFindingsResponse. */
+ interface IListFindingsResponse {
+
+ /** ListFindingsResponse findings */
+ findings?: (google.cloud.websecurityscanner.v1.IFinding[]|null);
+
+ /** ListFindingsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListFindingsResponse. */
+ class ListFindingsResponse implements IListFindingsResponse {
+
+ /**
+ * Constructs a new ListFindingsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IListFindingsResponse);
+
+ /** ListFindingsResponse findings. */
+ public findings: google.cloud.websecurityscanner.v1.IFinding[];
+
+ /** ListFindingsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListFindingsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFindingsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IListFindingsResponse): google.cloud.websecurityscanner.v1.ListFindingsResponse;
+
+ /**
+ * Encodes the specified ListFindingsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingsResponse.verify|verify} messages.
+ * @param message ListFindingsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IListFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFindingsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingsResponse.verify|verify} messages.
+ * @param message ListFindingsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IListFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFindingsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFindingsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ListFindingsResponse;
+
+ /**
+ * Decodes a ListFindingsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFindingsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ListFindingsResponse;
+
+ /**
+ * Verifies a ListFindingsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFindingsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFindingsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ListFindingsResponse;
+
+ /**
+ * Creates a plain object from a ListFindingsResponse message. Also converts values to other types if specified.
+ * @param message ListFindingsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ListFindingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFindingsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFindingsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFindingTypeStatsRequest. */
+ interface IListFindingTypeStatsRequest {
+
+ /** ListFindingTypeStatsRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a ListFindingTypeStatsRequest. */
+ class ListFindingTypeStatsRequest implements IListFindingTypeStatsRequest {
+
+ /**
+ * Constructs a new ListFindingTypeStatsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IListFindingTypeStatsRequest);
+
+ /** ListFindingTypeStatsRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new ListFindingTypeStatsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFindingTypeStatsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IListFindingTypeStatsRequest): google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest;
+
+ /**
+ * Encodes the specified ListFindingTypeStatsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.verify|verify} messages.
+ * @param message ListFindingTypeStatsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IListFindingTypeStatsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFindingTypeStatsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.verify|verify} messages.
+ * @param message ListFindingTypeStatsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IListFindingTypeStatsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFindingTypeStatsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFindingTypeStatsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest;
+
+ /**
+ * Decodes a ListFindingTypeStatsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFindingTypeStatsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest;
+
+ /**
+ * Verifies a ListFindingTypeStatsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFindingTypeStatsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFindingTypeStatsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest;
+
+ /**
+ * Creates a plain object from a ListFindingTypeStatsRequest message. Also converts values to other types if specified.
+ * @param message ListFindingTypeStatsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFindingTypeStatsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFindingTypeStatsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFindingTypeStatsResponse. */
+ interface IListFindingTypeStatsResponse {
+
+ /** ListFindingTypeStatsResponse findingTypeStats */
+ findingTypeStats?: (google.cloud.websecurityscanner.v1.IFindingTypeStats[]|null);
+ }
+
+ /** Represents a ListFindingTypeStatsResponse. */
+ class ListFindingTypeStatsResponse implements IListFindingTypeStatsResponse {
+
+ /**
+ * Constructs a new ListFindingTypeStatsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1.IListFindingTypeStatsResponse);
+
+ /** ListFindingTypeStatsResponse findingTypeStats. */
+ public findingTypeStats: google.cloud.websecurityscanner.v1.IFindingTypeStats[];
+
+ /**
+ * Creates a new ListFindingTypeStatsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFindingTypeStatsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1.IListFindingTypeStatsResponse): google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse;
+
+ /**
+ * Encodes the specified ListFindingTypeStatsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.verify|verify} messages.
+ * @param message ListFindingTypeStatsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1.IListFindingTypeStatsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFindingTypeStatsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.verify|verify} messages.
+ * @param message ListFindingTypeStatsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1.IListFindingTypeStatsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFindingTypeStatsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFindingTypeStatsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse;
+
+ /**
+ * Decodes a ListFindingTypeStatsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFindingTypeStatsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse;
+
+ /**
+ * Verifies a ListFindingTypeStatsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFindingTypeStatsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFindingTypeStatsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse;
+
+ /**
+ * Creates a plain object from a ListFindingTypeStatsResponse message. Also converts values to other types if specified.
+ * @param message ListFindingTypeStatsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFindingTypeStatsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFindingTypeStatsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace v1alpha. */
+ namespace v1alpha {
+
+ /** Properties of a CrawledUrl. */
+ interface ICrawledUrl {
+
+ /** CrawledUrl httpMethod */
+ httpMethod?: (string|null);
+
+ /** CrawledUrl url */
+ url?: (string|null);
+
+ /** CrawledUrl body */
+ body?: (string|null);
+ }
+
+ /** Represents a CrawledUrl. */
+ class CrawledUrl implements ICrawledUrl {
+
+ /**
+ * Constructs a new CrawledUrl.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.ICrawledUrl);
+
+ /** CrawledUrl httpMethod. */
+ public httpMethod: string;
+
+ /** CrawledUrl url. */
+ public url: string;
+
+ /** CrawledUrl body. */
+ public body: string;
+
+ /**
+ * Creates a new CrawledUrl instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CrawledUrl instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.ICrawledUrl): google.cloud.websecurityscanner.v1alpha.CrawledUrl;
+
+ /**
+ * Encodes the specified CrawledUrl message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.CrawledUrl.verify|verify} messages.
+ * @param message CrawledUrl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.ICrawledUrl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CrawledUrl message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.CrawledUrl.verify|verify} messages.
+ * @param message CrawledUrl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.ICrawledUrl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CrawledUrl message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CrawledUrl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.CrawledUrl;
+
+ /**
+ * Decodes a CrawledUrl message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CrawledUrl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.CrawledUrl;
+
+ /**
+ * Verifies a CrawledUrl message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CrawledUrl message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CrawledUrl
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.CrawledUrl;
+
+ /**
+ * Creates a plain object from a CrawledUrl message. Also converts values to other types if specified.
+ * @param message CrawledUrl
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.CrawledUrl, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CrawledUrl to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CrawledUrl
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Finding. */
+ interface IFinding {
+
+ /** Finding name */
+ name?: (string|null);
+
+ /** Finding findingType */
+ findingType?: (google.cloud.websecurityscanner.v1alpha.Finding.FindingType|keyof typeof google.cloud.websecurityscanner.v1alpha.Finding.FindingType|null);
+
+ /** Finding httpMethod */
+ httpMethod?: (string|null);
+
+ /** Finding fuzzedUrl */
+ fuzzedUrl?: (string|null);
+
+ /** Finding body */
+ body?: (string|null);
+
+ /** Finding description */
+ description?: (string|null);
+
+ /** Finding reproductionUrl */
+ reproductionUrl?: (string|null);
+
+ /** Finding frameUrl */
+ frameUrl?: (string|null);
+
+ /** Finding finalUrl */
+ finalUrl?: (string|null);
+
+ /** Finding trackingId */
+ trackingId?: (string|null);
+
+ /** Finding outdatedLibrary */
+ outdatedLibrary?: (google.cloud.websecurityscanner.v1alpha.IOutdatedLibrary|null);
+
+ /** Finding violatingResource */
+ violatingResource?: (google.cloud.websecurityscanner.v1alpha.IViolatingResource|null);
+
+ /** Finding vulnerableHeaders */
+ vulnerableHeaders?: (google.cloud.websecurityscanner.v1alpha.IVulnerableHeaders|null);
+
+ /** Finding vulnerableParameters */
+ vulnerableParameters?: (google.cloud.websecurityscanner.v1alpha.IVulnerableParameters|null);
+
+ /** Finding xss */
+ xss?: (google.cloud.websecurityscanner.v1alpha.IXss|null);
+ }
+
+ /** Represents a Finding. */
+ class Finding implements IFinding {
+
+ /**
+ * Constructs a new Finding.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IFinding);
+
+ /** Finding name. */
+ public name: string;
+
+ /** Finding findingType. */
+ public findingType: (google.cloud.websecurityscanner.v1alpha.Finding.FindingType|keyof typeof google.cloud.websecurityscanner.v1alpha.Finding.FindingType);
+
+ /** Finding httpMethod. */
+ public httpMethod: string;
+
+ /** Finding fuzzedUrl. */
+ public fuzzedUrl: string;
+
+ /** Finding body. */
+ public body: string;
+
+ /** Finding description. */
+ public description: string;
+
+ /** Finding reproductionUrl. */
+ public reproductionUrl: string;
+
+ /** Finding frameUrl. */
+ public frameUrl: string;
+
+ /** Finding finalUrl. */
+ public finalUrl: string;
+
+ /** Finding trackingId. */
+ public trackingId: string;
+
+ /** Finding outdatedLibrary. */
+ public outdatedLibrary?: (google.cloud.websecurityscanner.v1alpha.IOutdatedLibrary|null);
+
+ /** Finding violatingResource. */
+ public violatingResource?: (google.cloud.websecurityscanner.v1alpha.IViolatingResource|null);
+
+ /** Finding vulnerableHeaders. */
+ public vulnerableHeaders?: (google.cloud.websecurityscanner.v1alpha.IVulnerableHeaders|null);
+
+ /** Finding vulnerableParameters. */
+ public vulnerableParameters?: (google.cloud.websecurityscanner.v1alpha.IVulnerableParameters|null);
+
+ /** Finding xss. */
+ public xss?: (google.cloud.websecurityscanner.v1alpha.IXss|null);
+
+ /**
+ * Creates a new Finding instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Finding instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IFinding): google.cloud.websecurityscanner.v1alpha.Finding;
+
+ /**
+ * Encodes the specified Finding message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.Finding.verify|verify} messages.
+ * @param message Finding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IFinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Finding message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.Finding.verify|verify} messages.
+ * @param message Finding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IFinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Finding message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Finding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.Finding;
+
+ /**
+ * Decodes a Finding message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Finding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.Finding;
+
+ /**
+ * Verifies a Finding message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Finding message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Finding
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.Finding;
+
+ /**
+ * Creates a plain object from a Finding message. Also converts values to other types if specified.
+ * @param message Finding
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.Finding, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Finding to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Finding
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Finding {
+
+ /** FindingType enum. */
+ enum FindingType {
+ FINDING_TYPE_UNSPECIFIED = 0,
+ MIXED_CONTENT = 1,
+ OUTDATED_LIBRARY = 2,
+ ROSETTA_FLASH = 5,
+ XSS_CALLBACK = 3,
+ XSS_ERROR = 4,
+ CLEAR_TEXT_PASSWORD = 6,
+ INVALID_CONTENT_TYPE = 7,
+ XSS_ANGULAR_CALLBACK = 8,
+ INVALID_HEADER = 9,
+ MISSPELLED_SECURITY_HEADER_NAME = 10,
+ MISMATCHING_SECURITY_HEADER_VALUES = 11
+ }
+ }
+
+ /** Properties of an OutdatedLibrary. */
+ interface IOutdatedLibrary {
+
+ /** OutdatedLibrary libraryName */
+ libraryName?: (string|null);
+
+ /** OutdatedLibrary version */
+ version?: (string|null);
+
+ /** OutdatedLibrary learnMoreUrls */
+ learnMoreUrls?: (string[]|null);
+ }
+
+ /** Represents an OutdatedLibrary. */
+ class OutdatedLibrary implements IOutdatedLibrary {
+
+ /**
+ * Constructs a new OutdatedLibrary.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IOutdatedLibrary);
+
+ /** OutdatedLibrary libraryName. */
+ public libraryName: string;
+
+ /** OutdatedLibrary version. */
+ public version: string;
+
+ /** OutdatedLibrary learnMoreUrls. */
+ public learnMoreUrls: string[];
+
+ /**
+ * Creates a new OutdatedLibrary instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OutdatedLibrary instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IOutdatedLibrary): google.cloud.websecurityscanner.v1alpha.OutdatedLibrary;
+
+ /**
+ * Encodes the specified OutdatedLibrary message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.verify|verify} messages.
+ * @param message OutdatedLibrary message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IOutdatedLibrary, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OutdatedLibrary message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.verify|verify} messages.
+ * @param message OutdatedLibrary message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IOutdatedLibrary, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OutdatedLibrary message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OutdatedLibrary
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.OutdatedLibrary;
+
+ /**
+ * Decodes an OutdatedLibrary message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OutdatedLibrary
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.OutdatedLibrary;
+
+ /**
+ * Verifies an OutdatedLibrary message.
+ * @param message Plain 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 OutdatedLibrary message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OutdatedLibrary
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.OutdatedLibrary;
+
+ /**
+ * Creates a plain object from an OutdatedLibrary message. Also converts values to other types if specified.
+ * @param message OutdatedLibrary
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OutdatedLibrary to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OutdatedLibrary
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ViolatingResource. */
+ interface IViolatingResource {
+
+ /** ViolatingResource contentType */
+ contentType?: (string|null);
+
+ /** ViolatingResource resourceUrl */
+ resourceUrl?: (string|null);
+ }
+
+ /** Represents a ViolatingResource. */
+ class ViolatingResource implements IViolatingResource {
+
+ /**
+ * Constructs a new ViolatingResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IViolatingResource);
+
+ /** ViolatingResource contentType. */
+ public contentType: string;
+
+ /** ViolatingResource resourceUrl. */
+ public resourceUrl: string;
+
+ /**
+ * Creates a new ViolatingResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ViolatingResource instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IViolatingResource): google.cloud.websecurityscanner.v1alpha.ViolatingResource;
+
+ /**
+ * Encodes the specified ViolatingResource message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ViolatingResource.verify|verify} messages.
+ * @param message ViolatingResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IViolatingResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ViolatingResource message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ViolatingResource.verify|verify} messages.
+ * @param message ViolatingResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IViolatingResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ViolatingResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ViolatingResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ViolatingResource;
+
+ /**
+ * Decodes a ViolatingResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ViolatingResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ViolatingResource;
+
+ /**
+ * Verifies a ViolatingResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ViolatingResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ViolatingResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ViolatingResource;
+
+ /**
+ * Creates a plain object from a ViolatingResource message. Also converts values to other types if specified.
+ * @param message ViolatingResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ViolatingResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ViolatingResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ViolatingResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VulnerableParameters. */
+ interface IVulnerableParameters {
+
+ /** VulnerableParameters parameterNames */
+ parameterNames?: (string[]|null);
+ }
+
+ /** Represents a VulnerableParameters. */
+ class VulnerableParameters implements IVulnerableParameters {
+
+ /**
+ * Constructs a new VulnerableParameters.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IVulnerableParameters);
+
+ /** VulnerableParameters parameterNames. */
+ public parameterNames: string[];
+
+ /**
+ * Creates a new VulnerableParameters instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VulnerableParameters instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IVulnerableParameters): google.cloud.websecurityscanner.v1alpha.VulnerableParameters;
+
+ /**
+ * Encodes the specified VulnerableParameters message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.VulnerableParameters.verify|verify} messages.
+ * @param message VulnerableParameters message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IVulnerableParameters, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VulnerableParameters message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.VulnerableParameters.verify|verify} messages.
+ * @param message VulnerableParameters message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IVulnerableParameters, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VulnerableParameters message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VulnerableParameters
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.VulnerableParameters;
+
+ /**
+ * Decodes a VulnerableParameters message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VulnerableParameters
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.VulnerableParameters;
+
+ /**
+ * Verifies a VulnerableParameters message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VulnerableParameters message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VulnerableParameters
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.VulnerableParameters;
+
+ /**
+ * Creates a plain object from a VulnerableParameters message. Also converts values to other types if specified.
+ * @param message VulnerableParameters
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.VulnerableParameters, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VulnerableParameters to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VulnerableParameters
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VulnerableHeaders. */
+ interface IVulnerableHeaders {
+
+ /** VulnerableHeaders headers */
+ headers?: (google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.IHeader[]|null);
+
+ /** VulnerableHeaders missingHeaders */
+ missingHeaders?: (google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.IHeader[]|null);
+ }
+
+ /** Represents a VulnerableHeaders. */
+ class VulnerableHeaders implements IVulnerableHeaders {
+
+ /**
+ * Constructs a new VulnerableHeaders.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IVulnerableHeaders);
+
+ /** VulnerableHeaders headers. */
+ public headers: google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.IHeader[];
+
+ /** VulnerableHeaders missingHeaders. */
+ public missingHeaders: google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.IHeader[];
+
+ /**
+ * Creates a new VulnerableHeaders instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VulnerableHeaders instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IVulnerableHeaders): google.cloud.websecurityscanner.v1alpha.VulnerableHeaders;
+
+ /**
+ * Encodes the specified VulnerableHeaders message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.verify|verify} messages.
+ * @param message VulnerableHeaders message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IVulnerableHeaders, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VulnerableHeaders message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.verify|verify} messages.
+ * @param message VulnerableHeaders message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IVulnerableHeaders, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VulnerableHeaders message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VulnerableHeaders
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.VulnerableHeaders;
+
+ /**
+ * Decodes a VulnerableHeaders message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VulnerableHeaders
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.VulnerableHeaders;
+
+ /**
+ * Verifies a VulnerableHeaders message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VulnerableHeaders message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VulnerableHeaders
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.VulnerableHeaders;
+
+ /**
+ * Creates a plain object from a VulnerableHeaders message. Also converts values to other types if specified.
+ * @param message VulnerableHeaders
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VulnerableHeaders to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VulnerableHeaders
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VulnerableHeaders {
+
+ /** Properties of a Header. */
+ interface IHeader {
+
+ /** Header name */
+ name?: (string|null);
+
+ /** Header value */
+ value?: (string|null);
+ }
+
+ /** Represents a Header. */
+ class Header implements IHeader {
+
+ /**
+ * Constructs a new Header.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.IHeader);
+
+ /** Header name. */
+ public name: string;
+
+ /** Header value. */
+ public value: string;
+
+ /**
+ * Creates a new Header instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Header instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.IHeader): google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header;
+
+ /**
+ * Encodes the specified Header message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.verify|verify} messages.
+ * @param message Header message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.IHeader, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.verify|verify} messages.
+ * @param message Header message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.IHeader, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Header message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Header
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header;
+
+ /**
+ * Decodes a Header message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Header
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header;
+
+ /**
+ * Verifies a Header message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Header message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Header
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header;
+
+ /**
+ * Creates a plain object from a Header message. Also converts values to other types if specified.
+ * @param message Header
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Header to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Header
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Xss. */
+ interface IXss {
+
+ /** Xss stackTraces */
+ stackTraces?: (string[]|null);
+
+ /** Xss errorMessage */
+ errorMessage?: (string|null);
+ }
+
+ /** Represents a Xss. */
+ class Xss implements IXss {
+
+ /**
+ * Constructs a new Xss.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IXss);
+
+ /** Xss stackTraces. */
+ public stackTraces: string[];
+
+ /** Xss errorMessage. */
+ public errorMessage: string;
+
+ /**
+ * Creates a new Xss instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Xss instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IXss): google.cloud.websecurityscanner.v1alpha.Xss;
+
+ /**
+ * Encodes the specified Xss message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.Xss.verify|verify} messages.
+ * @param message Xss message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IXss, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Xss message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.Xss.verify|verify} messages.
+ * @param message Xss message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IXss, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Xss message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Xss
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.Xss;
+
+ /**
+ * Decodes a Xss message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Xss
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.Xss;
+
+ /**
+ * Verifies a Xss message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Xss message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Xss
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.Xss;
+
+ /**
+ * Creates a plain object from a Xss message. Also converts values to other types if specified.
+ * @param message Xss
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.Xss, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Xss to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Xss
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FindingTypeStats. */
+ interface IFindingTypeStats {
+
+ /** FindingTypeStats findingType */
+ findingType?: (google.cloud.websecurityscanner.v1alpha.Finding.FindingType|keyof typeof google.cloud.websecurityscanner.v1alpha.Finding.FindingType|null);
+
+ /** FindingTypeStats findingCount */
+ findingCount?: (number|null);
+ }
+
+ /** Represents a FindingTypeStats. */
+ class FindingTypeStats implements IFindingTypeStats {
+
+ /**
+ * Constructs a new FindingTypeStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IFindingTypeStats);
+
+ /** FindingTypeStats findingType. */
+ public findingType: (google.cloud.websecurityscanner.v1alpha.Finding.FindingType|keyof typeof google.cloud.websecurityscanner.v1alpha.Finding.FindingType);
+
+ /** FindingTypeStats findingCount. */
+ public findingCount: number;
+
+ /**
+ * Creates a new FindingTypeStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FindingTypeStats instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IFindingTypeStats): google.cloud.websecurityscanner.v1alpha.FindingTypeStats;
+
+ /**
+ * Encodes the specified FindingTypeStats message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.FindingTypeStats.verify|verify} messages.
+ * @param message FindingTypeStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IFindingTypeStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FindingTypeStats message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.FindingTypeStats.verify|verify} messages.
+ * @param message FindingTypeStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IFindingTypeStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FindingTypeStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FindingTypeStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.FindingTypeStats;
+
+ /**
+ * Decodes a FindingTypeStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FindingTypeStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.FindingTypeStats;
+
+ /**
+ * Verifies a FindingTypeStats message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FindingTypeStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FindingTypeStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.FindingTypeStats;
+
+ /**
+ * Creates a plain object from a FindingTypeStats message. Also converts values to other types if specified.
+ * @param message FindingTypeStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.FindingTypeStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FindingTypeStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FindingTypeStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ScanConfig. */
+ interface IScanConfig {
+
+ /** ScanConfig name */
+ name?: (string|null);
+
+ /** ScanConfig displayName */
+ displayName?: (string|null);
+
+ /** ScanConfig maxQps */
+ maxQps?: (number|null);
+
+ /** ScanConfig startingUrls */
+ startingUrls?: (string[]|null);
+
+ /** ScanConfig authentication */
+ authentication?: (google.cloud.websecurityscanner.v1alpha.ScanConfig.IAuthentication|null);
+
+ /** ScanConfig userAgent */
+ userAgent?: (google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent|keyof typeof google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent|null);
+
+ /** ScanConfig blacklistPatterns */
+ blacklistPatterns?: (string[]|null);
+
+ /** ScanConfig schedule */
+ schedule?: (google.cloud.websecurityscanner.v1alpha.ScanConfig.ISchedule|null);
+
+ /** ScanConfig targetPlatforms */
+ targetPlatforms?: (google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform[]|null);
+
+ /** ScanConfig latestRun */
+ latestRun?: (google.cloud.websecurityscanner.v1alpha.IScanRun|null);
+ }
+
+ /** Represents a ScanConfig. */
+ class ScanConfig implements IScanConfig {
+
+ /**
+ * Constructs a new ScanConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IScanConfig);
+
+ /** ScanConfig name. */
+ public name: string;
+
+ /** ScanConfig displayName. */
+ public displayName: string;
+
+ /** ScanConfig maxQps. */
+ public maxQps: number;
+
+ /** ScanConfig startingUrls. */
+ public startingUrls: string[];
+
+ /** ScanConfig authentication. */
+ public authentication?: (google.cloud.websecurityscanner.v1alpha.ScanConfig.IAuthentication|null);
+
+ /** ScanConfig userAgent. */
+ public userAgent: (google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent|keyof typeof google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent);
+
+ /** ScanConfig blacklistPatterns. */
+ public blacklistPatterns: string[];
+
+ /** ScanConfig schedule. */
+ public schedule?: (google.cloud.websecurityscanner.v1alpha.ScanConfig.ISchedule|null);
+
+ /** ScanConfig targetPlatforms. */
+ public targetPlatforms: google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform[];
+
+ /** ScanConfig latestRun. */
+ public latestRun?: (google.cloud.websecurityscanner.v1alpha.IScanRun|null);
+
+ /**
+ * Creates a new ScanConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanConfig instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IScanConfig): google.cloud.websecurityscanner.v1alpha.ScanConfig;
+
+ /**
+ * Encodes the specified ScanConfig message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ScanConfig.verify|verify} messages.
+ * @param message ScanConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IScanConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanConfig message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ScanConfig.verify|verify} messages.
+ * @param message ScanConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IScanConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ScanConfig;
+
+ /**
+ * Decodes a ScanConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ScanConfig;
+
+ /**
+ * Verifies a ScanConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ScanConfig;
+
+ /**
+ * Creates a plain object from a ScanConfig message. Also converts values to other types if specified.
+ * @param message ScanConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ScanConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScanConfig {
+
+ /** Properties of an Authentication. */
+ interface IAuthentication {
+
+ /** Authentication googleAccount */
+ googleAccount?: (google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.IGoogleAccount|null);
+
+ /** Authentication customAccount */
+ customAccount?: (google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.ICustomAccount|null);
+ }
+
+ /** Represents an Authentication. */
+ class Authentication implements IAuthentication {
+
+ /**
+ * Constructs a new Authentication.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.ScanConfig.IAuthentication);
+
+ /** Authentication googleAccount. */
+ public googleAccount?: (google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.IGoogleAccount|null);
+
+ /** Authentication customAccount. */
+ public customAccount?: (google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.ICustomAccount|null);
+
+ /** Authentication authentication. */
+ public authentication?: ("googleAccount"|"customAccount");
+
+ /**
+ * Creates a new Authentication instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Authentication instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.ScanConfig.IAuthentication): google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication;
+
+ /**
+ * Encodes the specified Authentication message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.verify|verify} messages.
+ * @param message Authentication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.ScanConfig.IAuthentication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Authentication message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.verify|verify} messages.
+ * @param message Authentication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.ScanConfig.IAuthentication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Authentication message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Authentication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication;
+
+ /**
+ * Decodes an Authentication message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Authentication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication;
+
+ /**
+ * Verifies an Authentication message.
+ * @param message Plain 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 Authentication message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Authentication
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication;
+
+ /**
+ * Creates a plain object from an Authentication message. Also converts values to other types if specified.
+ * @param message Authentication
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Authentication to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Authentication
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Authentication {
+
+ /** Properties of a GoogleAccount. */
+ interface IGoogleAccount {
+
+ /** GoogleAccount username */
+ username?: (string|null);
+
+ /** GoogleAccount password */
+ password?: (string|null);
+ }
+
+ /** Represents a GoogleAccount. */
+ class GoogleAccount implements IGoogleAccount {
+
+ /**
+ * Constructs a new GoogleAccount.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.IGoogleAccount);
+
+ /** GoogleAccount username. */
+ public username: string;
+
+ /** GoogleAccount password. */
+ public password: string;
+
+ /**
+ * Creates a new GoogleAccount instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoogleAccount instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.IGoogleAccount): google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount;
+
+ /**
+ * Encodes the specified GoogleAccount message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.verify|verify} messages.
+ * @param message GoogleAccount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.IGoogleAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoogleAccount message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.verify|verify} messages.
+ * @param message GoogleAccount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.IGoogleAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoogleAccount message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoogleAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount;
+
+ /**
+ * Decodes a GoogleAccount message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoogleAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount;
+
+ /**
+ * Verifies a GoogleAccount message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoogleAccount message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoogleAccount
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount;
+
+ /**
+ * Creates a plain object from a GoogleAccount message. Also converts values to other types if specified.
+ * @param message GoogleAccount
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoogleAccount to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoogleAccount
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomAccount. */
+ interface ICustomAccount {
+
+ /** CustomAccount username */
+ username?: (string|null);
+
+ /** CustomAccount password */
+ password?: (string|null);
+
+ /** CustomAccount loginUrl */
+ loginUrl?: (string|null);
+ }
+
+ /** Represents a CustomAccount. */
+ class CustomAccount implements ICustomAccount {
+
+ /**
+ * Constructs a new CustomAccount.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.ICustomAccount);
+
+ /** CustomAccount username. */
+ public username: string;
+
+ /** CustomAccount password. */
+ public password: string;
+
+ /** CustomAccount loginUrl. */
+ public loginUrl: string;
+
+ /**
+ * Creates a new CustomAccount instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomAccount instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.ICustomAccount): google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount;
+
+ /**
+ * Encodes the specified CustomAccount message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.verify|verify} messages.
+ * @param message CustomAccount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.ICustomAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomAccount message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.verify|verify} messages.
+ * @param message CustomAccount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.ICustomAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomAccount message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount;
+
+ /**
+ * Decodes a CustomAccount message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount;
+
+ /**
+ * Verifies a CustomAccount message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomAccount message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomAccount
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount;
+
+ /**
+ * Creates a plain object from a CustomAccount message. Also converts values to other types if specified.
+ * @param message CustomAccount
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomAccount to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomAccount
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Schedule. */
+ interface ISchedule {
+
+ /** Schedule scheduleTime */
+ scheduleTime?: (google.protobuf.ITimestamp|null);
+
+ /** Schedule intervalDurationDays */
+ intervalDurationDays?: (number|null);
+ }
+
+ /** Represents a Schedule. */
+ class Schedule implements ISchedule {
+
+ /**
+ * Constructs a new Schedule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.ScanConfig.ISchedule);
+
+ /** Schedule scheduleTime. */
+ public scheduleTime?: (google.protobuf.ITimestamp|null);
+
+ /** Schedule intervalDurationDays. */
+ public intervalDurationDays: number;
+
+ /**
+ * Creates a new Schedule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Schedule instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.ScanConfig.ISchedule): google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule;
+
+ /**
+ * Encodes the specified Schedule message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.verify|verify} messages.
+ * @param message Schedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.ScanConfig.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Schedule message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.verify|verify} messages.
+ * @param message Schedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.ScanConfig.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Schedule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Schedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule;
+
+ /**
+ * Decodes a Schedule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Schedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule;
+
+ /**
+ * Verifies a Schedule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Schedule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Schedule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule;
+
+ /**
+ * Creates a plain object from a Schedule message. Also converts values to other types if specified.
+ * @param message Schedule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Schedule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Schedule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** UserAgent enum. */
+ enum UserAgent {
+ USER_AGENT_UNSPECIFIED = 0,
+ CHROME_LINUX = 1,
+ CHROME_ANDROID = 2,
+ SAFARI_IPHONE = 3
+ }
+
+ /** TargetPlatform enum. */
+ enum TargetPlatform {
+ TARGET_PLATFORM_UNSPECIFIED = 0,
+ APP_ENGINE = 1,
+ COMPUTE = 2
+ }
+ }
+
+ /** Properties of a ScanRun. */
+ interface IScanRun {
+
+ /** ScanRun name */
+ name?: (string|null);
+
+ /** ScanRun executionState */
+ executionState?: (google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState|keyof typeof google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState|null);
+
+ /** ScanRun resultState */
+ resultState?: (google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState|keyof typeof google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState|null);
+
+ /** ScanRun startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** ScanRun endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** ScanRun urlsCrawledCount */
+ urlsCrawledCount?: (number|Long|string|null);
+
+ /** ScanRun urlsTestedCount */
+ urlsTestedCount?: (number|Long|string|null);
+
+ /** ScanRun hasVulnerabilities */
+ hasVulnerabilities?: (boolean|null);
+
+ /** ScanRun progressPercent */
+ progressPercent?: (number|null);
+ }
+
+ /** Represents a ScanRun. */
+ class ScanRun implements IScanRun {
+
+ /**
+ * Constructs a new ScanRun.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IScanRun);
+
+ /** ScanRun name. */
+ public name: string;
+
+ /** ScanRun executionState. */
+ public executionState: (google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState|keyof typeof google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState);
+
+ /** ScanRun resultState. */
+ public resultState: (google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState|keyof typeof google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState);
+
+ /** ScanRun startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** ScanRun endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** ScanRun urlsCrawledCount. */
+ public urlsCrawledCount: (number|Long|string);
+
+ /** ScanRun urlsTestedCount. */
+ public urlsTestedCount: (number|Long|string);
+
+ /** ScanRun hasVulnerabilities. */
+ public hasVulnerabilities: boolean;
+
+ /** ScanRun progressPercent. */
+ public progressPercent: number;
+
+ /**
+ * Creates a new ScanRun instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanRun instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IScanRun): google.cloud.websecurityscanner.v1alpha.ScanRun;
+
+ /**
+ * Encodes the specified ScanRun message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ScanRun.verify|verify} messages.
+ * @param message ScanRun message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IScanRun, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanRun message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ScanRun.verify|verify} messages.
+ * @param message ScanRun message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IScanRun, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanRun message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanRun
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ScanRun;
+
+ /**
+ * Decodes a ScanRun message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanRun
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ScanRun;
+
+ /**
+ * Verifies a ScanRun message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanRun message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanRun
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ScanRun;
+
+ /**
+ * Creates a plain object from a ScanRun message. Also converts values to other types if specified.
+ * @param message ScanRun
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ScanRun, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanRun to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanRun
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScanRun {
+
+ /** ExecutionState enum. */
+ enum ExecutionState {
+ EXECUTION_STATE_UNSPECIFIED = 0,
+ QUEUED = 1,
+ SCANNING = 2,
+ FINISHED = 3
+ }
+
+ /** ResultState enum. */
+ enum ResultState {
+ RESULT_STATE_UNSPECIFIED = 0,
+ SUCCESS = 1,
+ ERROR = 2,
+ KILLED = 3
+ }
+ }
+
+ /** Represents a WebSecurityScanner */
+ class WebSecurityScanner extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new WebSecurityScanner 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 WebSecurityScanner 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): WebSecurityScanner;
+
+ /**
+ * Calls CreateScanConfig.
+ * @param request CreateScanConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanConfig
+ */
+ public createScanConfig(request: google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.CreateScanConfigCallback): void;
+
+ /**
+ * Calls CreateScanConfig.
+ * @param request CreateScanConfigRequest message or plain object
+ * @returns Promise
+ */
+ public createScanConfig(request: google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest): Promise;
+
+ /**
+ * Calls DeleteScanConfig.
+ * @param request DeleteScanConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteScanConfig(request: google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.DeleteScanConfigCallback): void;
+
+ /**
+ * Calls DeleteScanConfig.
+ * @param request DeleteScanConfigRequest message or plain object
+ * @returns Promise
+ */
+ public deleteScanConfig(request: google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest): Promise;
+
+ /**
+ * Calls GetScanConfig.
+ * @param request GetScanConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanConfig
+ */
+ public getScanConfig(request: google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetScanConfigCallback): void;
+
+ /**
+ * Calls GetScanConfig.
+ * @param request GetScanConfigRequest message or plain object
+ * @returns Promise
+ */
+ public getScanConfig(request: google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest): Promise;
+
+ /**
+ * Calls ListScanConfigs.
+ * @param request ListScanConfigsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListScanConfigsResponse
+ */
+ public listScanConfigs(request: google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListScanConfigsCallback): void;
+
+ /**
+ * Calls ListScanConfigs.
+ * @param request ListScanConfigsRequest message or plain object
+ * @returns Promise
+ */
+ public listScanConfigs(request: google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest): Promise;
+
+ /**
+ * Calls UpdateScanConfig.
+ * @param request UpdateScanConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanConfig
+ */
+ public updateScanConfig(request: google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.UpdateScanConfigCallback): void;
+
+ /**
+ * Calls UpdateScanConfig.
+ * @param request UpdateScanConfigRequest message or plain object
+ * @returns Promise
+ */
+ public updateScanConfig(request: google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest): Promise;
+
+ /**
+ * Calls StartScanRun.
+ * @param request StartScanRunRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanRun
+ */
+ public startScanRun(request: google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.StartScanRunCallback): void;
+
+ /**
+ * Calls StartScanRun.
+ * @param request StartScanRunRequest message or plain object
+ * @returns Promise
+ */
+ public startScanRun(request: google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest): Promise;
+
+ /**
+ * Calls GetScanRun.
+ * @param request GetScanRunRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanRun
+ */
+ public getScanRun(request: google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetScanRunCallback): void;
+
+ /**
+ * Calls GetScanRun.
+ * @param request GetScanRunRequest message or plain object
+ * @returns Promise
+ */
+ public getScanRun(request: google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest): Promise;
+
+ /**
+ * Calls ListScanRuns.
+ * @param request ListScanRunsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListScanRunsResponse
+ */
+ public listScanRuns(request: google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListScanRunsCallback): void;
+
+ /**
+ * Calls ListScanRuns.
+ * @param request ListScanRunsRequest message or plain object
+ * @returns Promise
+ */
+ public listScanRuns(request: google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest): Promise;
+
+ /**
+ * Calls StopScanRun.
+ * @param request StopScanRunRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanRun
+ */
+ public stopScanRun(request: google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.StopScanRunCallback): void;
+
+ /**
+ * Calls StopScanRun.
+ * @param request StopScanRunRequest message or plain object
+ * @returns Promise
+ */
+ public stopScanRun(request: google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest): Promise;
+
+ /**
+ * Calls ListCrawledUrls.
+ * @param request ListCrawledUrlsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListCrawledUrlsResponse
+ */
+ public listCrawledUrls(request: google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListCrawledUrlsCallback): void;
+
+ /**
+ * Calls ListCrawledUrls.
+ * @param request ListCrawledUrlsRequest message or plain object
+ * @returns Promise
+ */
+ public listCrawledUrls(request: google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest): Promise;
+
+ /**
+ * Calls GetFinding.
+ * @param request GetFindingRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Finding
+ */
+ public getFinding(request: google.cloud.websecurityscanner.v1alpha.IGetFindingRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetFindingCallback): void;
+
+ /**
+ * Calls GetFinding.
+ * @param request GetFindingRequest message or plain object
+ * @returns Promise
+ */
+ public getFinding(request: google.cloud.websecurityscanner.v1alpha.IGetFindingRequest): Promise;
+
+ /**
+ * Calls ListFindings.
+ * @param request ListFindingsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListFindingsResponse
+ */
+ public listFindings(request: google.cloud.websecurityscanner.v1alpha.IListFindingsRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListFindingsCallback): void;
+
+ /**
+ * Calls ListFindings.
+ * @param request ListFindingsRequest message or plain object
+ * @returns Promise
+ */
+ public listFindings(request: google.cloud.websecurityscanner.v1alpha.IListFindingsRequest): Promise;
+
+ /**
+ * Calls ListFindingTypeStats.
+ * @param request ListFindingTypeStatsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListFindingTypeStatsResponse
+ */
+ public listFindingTypeStats(request: google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest, callback: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListFindingTypeStatsCallback): void;
+
+ /**
+ * Calls ListFindingTypeStats.
+ * @param request ListFindingTypeStatsRequest message or plain object
+ * @returns Promise
+ */
+ public listFindingTypeStats(request: google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest): Promise;
+ }
+
+ namespace WebSecurityScanner {
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|createScanConfig}.
+ * @param error Error, if any
+ * @param [response] ScanConfig
+ */
+ type CreateScanConfigCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1alpha.ScanConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|deleteScanConfig}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteScanConfigCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|getScanConfig}.
+ * @param error Error, if any
+ * @param [response] ScanConfig
+ */
+ type GetScanConfigCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1alpha.ScanConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|listScanConfigs}.
+ * @param error Error, if any
+ * @param [response] ListScanConfigsResponse
+ */
+ type ListScanConfigsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|updateScanConfig}.
+ * @param error Error, if any
+ * @param [response] ScanConfig
+ */
+ type UpdateScanConfigCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1alpha.ScanConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|startScanRun}.
+ * @param error Error, if any
+ * @param [response] ScanRun
+ */
+ type StartScanRunCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1alpha.ScanRun) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|getScanRun}.
+ * @param error Error, if any
+ * @param [response] ScanRun
+ */
+ type GetScanRunCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1alpha.ScanRun) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|listScanRuns}.
+ * @param error Error, if any
+ * @param [response] ListScanRunsResponse
+ */
+ type ListScanRunsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|stopScanRun}.
+ * @param error Error, if any
+ * @param [response] ScanRun
+ */
+ type StopScanRunCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1alpha.ScanRun) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|listCrawledUrls}.
+ * @param error Error, if any
+ * @param [response] ListCrawledUrlsResponse
+ */
+ type ListCrawledUrlsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|getFinding}.
+ * @param error Error, if any
+ * @param [response] Finding
+ */
+ type GetFindingCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1alpha.Finding) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|listFindings}.
+ * @param error Error, if any
+ * @param [response] ListFindingsResponse
+ */
+ type ListFindingsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1alpha.WebSecurityScanner|listFindingTypeStats}.
+ * @param error Error, if any
+ * @param [response] ListFindingTypeStatsResponse
+ */
+ type ListFindingTypeStatsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) => void;
+ }
+
+ /** Properties of a CreateScanConfigRequest. */
+ interface ICreateScanConfigRequest {
+
+ /** CreateScanConfigRequest parent */
+ parent?: (string|null);
+
+ /** CreateScanConfigRequest scanConfig */
+ scanConfig?: (google.cloud.websecurityscanner.v1alpha.IScanConfig|null);
+ }
+
+ /** Represents a CreateScanConfigRequest. */
+ class CreateScanConfigRequest implements ICreateScanConfigRequest {
+
+ /**
+ * Constructs a new CreateScanConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest);
+
+ /** CreateScanConfigRequest parent. */
+ public parent: string;
+
+ /** CreateScanConfigRequest scanConfig. */
+ public scanConfig?: (google.cloud.websecurityscanner.v1alpha.IScanConfig|null);
+
+ /**
+ * Creates a new CreateScanConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateScanConfigRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest): google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest;
+
+ /**
+ * Encodes the specified CreateScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.verify|verify} messages.
+ * @param message CreateScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.verify|verify} messages.
+ * @param message CreateScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateScanConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest;
+
+ /**
+ * Decodes a CreateScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest;
+
+ /**
+ * Verifies a CreateScanConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateScanConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest;
+
+ /**
+ * Creates a plain object from a CreateScanConfigRequest message. Also converts values to other types if specified.
+ * @param message CreateScanConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateScanConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateScanConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteScanConfigRequest. */
+ interface IDeleteScanConfigRequest {
+
+ /** DeleteScanConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteScanConfigRequest. */
+ class DeleteScanConfigRequest implements IDeleteScanConfigRequest {
+
+ /**
+ * Constructs a new DeleteScanConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest);
+
+ /** DeleteScanConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteScanConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteScanConfigRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest): google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest;
+
+ /**
+ * Encodes the specified DeleteScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.verify|verify} messages.
+ * @param message DeleteScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.verify|verify} messages.
+ * @param message DeleteScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteScanConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest;
+
+ /**
+ * Decodes a DeleteScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest;
+
+ /**
+ * Verifies a DeleteScanConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteScanConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest;
+
+ /**
+ * Creates a plain object from a DeleteScanConfigRequest message. Also converts values to other types if specified.
+ * @param message DeleteScanConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteScanConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteScanConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetScanConfigRequest. */
+ interface IGetScanConfigRequest {
+
+ /** GetScanConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetScanConfigRequest. */
+ class GetScanConfigRequest implements IGetScanConfigRequest {
+
+ /**
+ * Constructs a new GetScanConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest);
+
+ /** GetScanConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetScanConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetScanConfigRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest): google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest;
+
+ /**
+ * Encodes the specified GetScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.verify|verify} messages.
+ * @param message GetScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.verify|verify} messages.
+ * @param message GetScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetScanConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest;
+
+ /**
+ * Decodes a GetScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest;
+
+ /**
+ * Verifies a GetScanConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetScanConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest;
+
+ /**
+ * Creates a plain object from a GetScanConfigRequest message. Also converts values to other types if specified.
+ * @param message GetScanConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetScanConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetScanConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListScanConfigsRequest. */
+ interface IListScanConfigsRequest {
+
+ /** ListScanConfigsRequest parent */
+ parent?: (string|null);
+
+ /** ListScanConfigsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListScanConfigsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListScanConfigsRequest. */
+ class ListScanConfigsRequest implements IListScanConfigsRequest {
+
+ /**
+ * Constructs a new ListScanConfigsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest);
+
+ /** ListScanConfigsRequest parent. */
+ public parent: string;
+
+ /** ListScanConfigsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListScanConfigsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListScanConfigsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListScanConfigsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest): google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest;
+
+ /**
+ * Encodes the specified ListScanConfigsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.verify|verify} messages.
+ * @param message ListScanConfigsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListScanConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.verify|verify} messages.
+ * @param message ListScanConfigsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListScanConfigsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListScanConfigsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest;
+
+ /**
+ * Decodes a ListScanConfigsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListScanConfigsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest;
+
+ /**
+ * Verifies a ListScanConfigsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListScanConfigsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListScanConfigsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest;
+
+ /**
+ * Creates a plain object from a ListScanConfigsRequest message. Also converts values to other types if specified.
+ * @param message ListScanConfigsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListScanConfigsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListScanConfigsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateScanConfigRequest. */
+ interface IUpdateScanConfigRequest {
+
+ /** UpdateScanConfigRequest scanConfig */
+ scanConfig?: (google.cloud.websecurityscanner.v1alpha.IScanConfig|null);
+
+ /** UpdateScanConfigRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateScanConfigRequest. */
+ class UpdateScanConfigRequest implements IUpdateScanConfigRequest {
+
+ /**
+ * Constructs a new UpdateScanConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest);
+
+ /** UpdateScanConfigRequest scanConfig. */
+ public scanConfig?: (google.cloud.websecurityscanner.v1alpha.IScanConfig|null);
+
+ /** UpdateScanConfigRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateScanConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateScanConfigRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest): google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest;
+
+ /**
+ * Encodes the specified UpdateScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.verify|verify} messages.
+ * @param message UpdateScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.verify|verify} messages.
+ * @param message UpdateScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateScanConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest;
+
+ /**
+ * Decodes an UpdateScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest;
+
+ /**
+ * Verifies an UpdateScanConfigRequest message.
+ * @param message Plain 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 UpdateScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateScanConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest;
+
+ /**
+ * Creates a plain object from an UpdateScanConfigRequest message. Also converts values to other types if specified.
+ * @param message UpdateScanConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateScanConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateScanConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListScanConfigsResponse. */
+ interface IListScanConfigsResponse {
+
+ /** ListScanConfigsResponse scanConfigs */
+ scanConfigs?: (google.cloud.websecurityscanner.v1alpha.IScanConfig[]|null);
+
+ /** ListScanConfigsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListScanConfigsResponse. */
+ class ListScanConfigsResponse implements IListScanConfigsResponse {
+
+ /**
+ * Constructs a new ListScanConfigsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IListScanConfigsResponse);
+
+ /** ListScanConfigsResponse scanConfigs. */
+ public scanConfigs: google.cloud.websecurityscanner.v1alpha.IScanConfig[];
+
+ /** ListScanConfigsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListScanConfigsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListScanConfigsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IListScanConfigsResponse): google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse;
+
+ /**
+ * Encodes the specified ListScanConfigsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.verify|verify} messages.
+ * @param message ListScanConfigsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IListScanConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListScanConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.verify|verify} messages.
+ * @param message ListScanConfigsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IListScanConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListScanConfigsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListScanConfigsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse;
+
+ /**
+ * Decodes a ListScanConfigsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListScanConfigsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse;
+
+ /**
+ * Verifies a ListScanConfigsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListScanConfigsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListScanConfigsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse;
+
+ /**
+ * Creates a plain object from a ListScanConfigsResponse message. Also converts values to other types if specified.
+ * @param message ListScanConfigsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListScanConfigsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListScanConfigsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StartScanRunRequest. */
+ interface IStartScanRunRequest {
+
+ /** StartScanRunRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a StartScanRunRequest. */
+ class StartScanRunRequest implements IStartScanRunRequest {
+
+ /**
+ * Constructs a new StartScanRunRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest);
+
+ /** StartScanRunRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new StartScanRunRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StartScanRunRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest): google.cloud.websecurityscanner.v1alpha.StartScanRunRequest;
+
+ /**
+ * Encodes the specified StartScanRunRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.verify|verify} messages.
+ * @param message StartScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StartScanRunRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.verify|verify} messages.
+ * @param message StartScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StartScanRunRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StartScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.StartScanRunRequest;
+
+ /**
+ * Decodes a StartScanRunRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StartScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.StartScanRunRequest;
+
+ /**
+ * Verifies a StartScanRunRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StartScanRunRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StartScanRunRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.StartScanRunRequest;
+
+ /**
+ * Creates a plain object from a StartScanRunRequest message. Also converts values to other types if specified.
+ * @param message StartScanRunRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StartScanRunRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StartScanRunRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetScanRunRequest. */
+ interface IGetScanRunRequest {
+
+ /** GetScanRunRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetScanRunRequest. */
+ class GetScanRunRequest implements IGetScanRunRequest {
+
+ /**
+ * Constructs a new GetScanRunRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest);
+
+ /** GetScanRunRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetScanRunRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetScanRunRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest): google.cloud.websecurityscanner.v1alpha.GetScanRunRequest;
+
+ /**
+ * Encodes the specified GetScanRunRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.verify|verify} messages.
+ * @param message GetScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetScanRunRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.verify|verify} messages.
+ * @param message GetScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetScanRunRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.GetScanRunRequest;
+
+ /**
+ * Decodes a GetScanRunRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.GetScanRunRequest;
+
+ /**
+ * Verifies a GetScanRunRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetScanRunRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetScanRunRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.GetScanRunRequest;
+
+ /**
+ * Creates a plain object from a GetScanRunRequest message. Also converts values to other types if specified.
+ * @param message GetScanRunRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetScanRunRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetScanRunRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListScanRunsRequest. */
+ interface IListScanRunsRequest {
+
+ /** ListScanRunsRequest parent */
+ parent?: (string|null);
+
+ /** ListScanRunsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListScanRunsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListScanRunsRequest. */
+ class ListScanRunsRequest implements IListScanRunsRequest {
+
+ /**
+ * Constructs a new ListScanRunsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest);
+
+ /** ListScanRunsRequest parent. */
+ public parent: string;
+
+ /** ListScanRunsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListScanRunsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListScanRunsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListScanRunsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest): google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest;
+
+ /**
+ * Encodes the specified ListScanRunsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.verify|verify} messages.
+ * @param message ListScanRunsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListScanRunsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.verify|verify} messages.
+ * @param message ListScanRunsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListScanRunsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListScanRunsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest;
+
+ /**
+ * Decodes a ListScanRunsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListScanRunsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest;
+
+ /**
+ * Verifies a ListScanRunsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListScanRunsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListScanRunsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest;
+
+ /**
+ * Creates a plain object from a ListScanRunsRequest message. Also converts values to other types if specified.
+ * @param message ListScanRunsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListScanRunsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListScanRunsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListScanRunsResponse. */
+ interface IListScanRunsResponse {
+
+ /** ListScanRunsResponse scanRuns */
+ scanRuns?: (google.cloud.websecurityscanner.v1alpha.IScanRun[]|null);
+
+ /** ListScanRunsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListScanRunsResponse. */
+ class ListScanRunsResponse implements IListScanRunsResponse {
+
+ /**
+ * Constructs a new ListScanRunsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IListScanRunsResponse);
+
+ /** ListScanRunsResponse scanRuns. */
+ public scanRuns: google.cloud.websecurityscanner.v1alpha.IScanRun[];
+
+ /** ListScanRunsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListScanRunsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListScanRunsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IListScanRunsResponse): google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse;
+
+ /**
+ * Encodes the specified ListScanRunsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.verify|verify} messages.
+ * @param message ListScanRunsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IListScanRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListScanRunsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.verify|verify} messages.
+ * @param message ListScanRunsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IListScanRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListScanRunsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListScanRunsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse;
+
+ /**
+ * Decodes a ListScanRunsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListScanRunsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse;
+
+ /**
+ * Verifies a ListScanRunsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListScanRunsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListScanRunsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse;
+
+ /**
+ * Creates a plain object from a ListScanRunsResponse message. Also converts values to other types if specified.
+ * @param message ListScanRunsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListScanRunsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListScanRunsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StopScanRunRequest. */
+ interface IStopScanRunRequest {
+
+ /** StopScanRunRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a StopScanRunRequest. */
+ class StopScanRunRequest implements IStopScanRunRequest {
+
+ /**
+ * Constructs a new StopScanRunRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest);
+
+ /** StopScanRunRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new StopScanRunRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StopScanRunRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest): google.cloud.websecurityscanner.v1alpha.StopScanRunRequest;
+
+ /**
+ * Encodes the specified StopScanRunRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.verify|verify} messages.
+ * @param message StopScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StopScanRunRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.verify|verify} messages.
+ * @param message StopScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StopScanRunRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StopScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.StopScanRunRequest;
+
+ /**
+ * Decodes a StopScanRunRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StopScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.StopScanRunRequest;
+
+ /**
+ * Verifies a StopScanRunRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StopScanRunRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StopScanRunRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.StopScanRunRequest;
+
+ /**
+ * Creates a plain object from a StopScanRunRequest message. Also converts values to other types if specified.
+ * @param message StopScanRunRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StopScanRunRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StopScanRunRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCrawledUrlsRequest. */
+ interface IListCrawledUrlsRequest {
+
+ /** ListCrawledUrlsRequest parent */
+ parent?: (string|null);
+
+ /** ListCrawledUrlsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListCrawledUrlsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListCrawledUrlsRequest. */
+ class ListCrawledUrlsRequest implements IListCrawledUrlsRequest {
+
+ /**
+ * Constructs a new ListCrawledUrlsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest);
+
+ /** ListCrawledUrlsRequest parent. */
+ public parent: string;
+
+ /** ListCrawledUrlsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListCrawledUrlsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListCrawledUrlsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCrawledUrlsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest): google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest;
+
+ /**
+ * Encodes the specified ListCrawledUrlsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.verify|verify} messages.
+ * @param message ListCrawledUrlsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCrawledUrlsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.verify|verify} messages.
+ * @param message ListCrawledUrlsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCrawledUrlsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCrawledUrlsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest;
+
+ /**
+ * Decodes a ListCrawledUrlsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCrawledUrlsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest;
+
+ /**
+ * Verifies a ListCrawledUrlsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCrawledUrlsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCrawledUrlsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest;
+
+ /**
+ * Creates a plain object from a ListCrawledUrlsRequest message. Also converts values to other types if specified.
+ * @param message ListCrawledUrlsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCrawledUrlsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCrawledUrlsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCrawledUrlsResponse. */
+ interface IListCrawledUrlsResponse {
+
+ /** ListCrawledUrlsResponse crawledUrls */
+ crawledUrls?: (google.cloud.websecurityscanner.v1alpha.ICrawledUrl[]|null);
+
+ /** ListCrawledUrlsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListCrawledUrlsResponse. */
+ class ListCrawledUrlsResponse implements IListCrawledUrlsResponse {
+
+ /**
+ * Constructs a new ListCrawledUrlsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsResponse);
+
+ /** ListCrawledUrlsResponse crawledUrls. */
+ public crawledUrls: google.cloud.websecurityscanner.v1alpha.ICrawledUrl[];
+
+ /** ListCrawledUrlsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListCrawledUrlsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCrawledUrlsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsResponse): google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse;
+
+ /**
+ * Encodes the specified ListCrawledUrlsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.verify|verify} messages.
+ * @param message ListCrawledUrlsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCrawledUrlsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.verify|verify} messages.
+ * @param message ListCrawledUrlsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCrawledUrlsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCrawledUrlsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse;
+
+ /**
+ * Decodes a ListCrawledUrlsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCrawledUrlsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse;
+
+ /**
+ * Verifies a ListCrawledUrlsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCrawledUrlsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCrawledUrlsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse;
+
+ /**
+ * Creates a plain object from a ListCrawledUrlsResponse message. Also converts values to other types if specified.
+ * @param message ListCrawledUrlsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCrawledUrlsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCrawledUrlsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetFindingRequest. */
+ interface IGetFindingRequest {
+
+ /** GetFindingRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetFindingRequest. */
+ class GetFindingRequest implements IGetFindingRequest {
+
+ /**
+ * Constructs a new GetFindingRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IGetFindingRequest);
+
+ /** GetFindingRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetFindingRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetFindingRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IGetFindingRequest): google.cloud.websecurityscanner.v1alpha.GetFindingRequest;
+
+ /**
+ * Encodes the specified GetFindingRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.GetFindingRequest.verify|verify} messages.
+ * @param message GetFindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IGetFindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetFindingRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.GetFindingRequest.verify|verify} messages.
+ * @param message GetFindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IGetFindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetFindingRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetFindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.GetFindingRequest;
+
+ /**
+ * Decodes a GetFindingRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetFindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.GetFindingRequest;
+
+ /**
+ * Verifies a GetFindingRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetFindingRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetFindingRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.GetFindingRequest;
+
+ /**
+ * Creates a plain object from a GetFindingRequest message. Also converts values to other types if specified.
+ * @param message GetFindingRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.GetFindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetFindingRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetFindingRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFindingsRequest. */
+ interface IListFindingsRequest {
+
+ /** ListFindingsRequest parent */
+ parent?: (string|null);
+
+ /** ListFindingsRequest filter */
+ filter?: (string|null);
+
+ /** ListFindingsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListFindingsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListFindingsRequest. */
+ class ListFindingsRequest implements IListFindingsRequest {
+
+ /**
+ * Constructs a new ListFindingsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IListFindingsRequest);
+
+ /** ListFindingsRequest parent. */
+ public parent: string;
+
+ /** ListFindingsRequest filter. */
+ public filter: string;
+
+ /** ListFindingsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListFindingsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListFindingsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFindingsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IListFindingsRequest): google.cloud.websecurityscanner.v1alpha.ListFindingsRequest;
+
+ /**
+ * Encodes the specified ListFindingsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.verify|verify} messages.
+ * @param message ListFindingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IListFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFindingsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.verify|verify} messages.
+ * @param message ListFindingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IListFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFindingsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFindingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ListFindingsRequest;
+
+ /**
+ * Decodes a ListFindingsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFindingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ListFindingsRequest;
+
+ /**
+ * Verifies a ListFindingsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFindingsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFindingsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ListFindingsRequest;
+
+ /**
+ * Creates a plain object from a ListFindingsRequest message. Also converts values to other types if specified.
+ * @param message ListFindingsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFindingsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFindingsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFindingsResponse. */
+ interface IListFindingsResponse {
+
+ /** ListFindingsResponse findings */
+ findings?: (google.cloud.websecurityscanner.v1alpha.IFinding[]|null);
+
+ /** ListFindingsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListFindingsResponse. */
+ class ListFindingsResponse implements IListFindingsResponse {
+
+ /**
+ * Constructs a new ListFindingsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IListFindingsResponse);
+
+ /** ListFindingsResponse findings. */
+ public findings: google.cloud.websecurityscanner.v1alpha.IFinding[];
+
+ /** ListFindingsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListFindingsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFindingsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IListFindingsResponse): google.cloud.websecurityscanner.v1alpha.ListFindingsResponse;
+
+ /**
+ * Encodes the specified ListFindingsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.verify|verify} messages.
+ * @param message ListFindingsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IListFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFindingsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.verify|verify} messages.
+ * @param message ListFindingsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IListFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFindingsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFindingsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ListFindingsResponse;
+
+ /**
+ * Decodes a ListFindingsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFindingsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ListFindingsResponse;
+
+ /**
+ * Verifies a ListFindingsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFindingsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFindingsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ListFindingsResponse;
+
+ /**
+ * Creates a plain object from a ListFindingsResponse message. Also converts values to other types if specified.
+ * @param message ListFindingsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ListFindingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFindingsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFindingsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFindingTypeStatsRequest. */
+ interface IListFindingTypeStatsRequest {
+
+ /** ListFindingTypeStatsRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a ListFindingTypeStatsRequest. */
+ class ListFindingTypeStatsRequest implements IListFindingTypeStatsRequest {
+
+ /**
+ * Constructs a new ListFindingTypeStatsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest);
+
+ /** ListFindingTypeStatsRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new ListFindingTypeStatsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFindingTypeStatsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest): google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest;
+
+ /**
+ * Encodes the specified ListFindingTypeStatsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.verify|verify} messages.
+ * @param message ListFindingTypeStatsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFindingTypeStatsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.verify|verify} messages.
+ * @param message ListFindingTypeStatsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFindingTypeStatsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFindingTypeStatsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest;
+
+ /**
+ * Decodes a ListFindingTypeStatsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFindingTypeStatsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest;
+
+ /**
+ * Verifies a ListFindingTypeStatsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFindingTypeStatsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFindingTypeStatsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest;
+
+ /**
+ * Creates a plain object from a ListFindingTypeStatsRequest message. Also converts values to other types if specified.
+ * @param message ListFindingTypeStatsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFindingTypeStatsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFindingTypeStatsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFindingTypeStatsResponse. */
+ interface IListFindingTypeStatsResponse {
+
+ /** ListFindingTypeStatsResponse findingTypeStats */
+ findingTypeStats?: (google.cloud.websecurityscanner.v1alpha.IFindingTypeStats[]|null);
+ }
+
+ /** Represents a ListFindingTypeStatsResponse. */
+ class ListFindingTypeStatsResponse implements IListFindingTypeStatsResponse {
+
+ /**
+ * Constructs a new ListFindingTypeStatsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsResponse);
+
+ /** ListFindingTypeStatsResponse findingTypeStats. */
+ public findingTypeStats: google.cloud.websecurityscanner.v1alpha.IFindingTypeStats[];
+
+ /**
+ * Creates a new ListFindingTypeStatsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFindingTypeStatsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsResponse): google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse;
+
+ /**
+ * Encodes the specified ListFindingTypeStatsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.verify|verify} messages.
+ * @param message ListFindingTypeStatsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFindingTypeStatsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.verify|verify} messages.
+ * @param message ListFindingTypeStatsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFindingTypeStatsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFindingTypeStatsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse;
+
+ /**
+ * Decodes a ListFindingTypeStatsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFindingTypeStatsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse;
+
+ /**
+ * Verifies a ListFindingTypeStatsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFindingTypeStatsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFindingTypeStatsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse;
+
+ /**
+ * Creates a plain object from a ListFindingTypeStatsResponse message. Also converts values to other types if specified.
+ * @param message ListFindingTypeStatsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFindingTypeStatsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFindingTypeStatsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace v1beta. */
+ namespace v1beta {
+
+ /** Properties of a CrawledUrl. */
+ interface ICrawledUrl {
+
+ /** CrawledUrl httpMethod */
+ httpMethod?: (string|null);
+
+ /** CrawledUrl url */
+ url?: (string|null);
+
+ /** CrawledUrl body */
+ body?: (string|null);
+ }
+
+ /** Represents a CrawledUrl. */
+ class CrawledUrl implements ICrawledUrl {
+
+ /**
+ * Constructs a new CrawledUrl.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.ICrawledUrl);
+
+ /** CrawledUrl httpMethod. */
+ public httpMethod: string;
+
+ /** CrawledUrl url. */
+ public url: string;
+
+ /** CrawledUrl body. */
+ public body: string;
+
+ /**
+ * Creates a new CrawledUrl instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CrawledUrl instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.ICrawledUrl): google.cloud.websecurityscanner.v1beta.CrawledUrl;
+
+ /**
+ * Encodes the specified CrawledUrl message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.CrawledUrl.verify|verify} messages.
+ * @param message CrawledUrl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.ICrawledUrl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CrawledUrl message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.CrawledUrl.verify|verify} messages.
+ * @param message CrawledUrl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.ICrawledUrl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CrawledUrl message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CrawledUrl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.CrawledUrl;
+
+ /**
+ * Decodes a CrawledUrl message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CrawledUrl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.CrawledUrl;
+
+ /**
+ * Verifies a CrawledUrl message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CrawledUrl message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CrawledUrl
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.CrawledUrl;
+
+ /**
+ * Creates a plain object from a CrawledUrl message. Also converts values to other types if specified.
+ * @param message CrawledUrl
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.CrawledUrl, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CrawledUrl to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CrawledUrl
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Finding. */
+ interface IFinding {
+
+ /** Finding name */
+ name?: (string|null);
+
+ /** Finding findingType */
+ findingType?: (string|null);
+
+ /** Finding httpMethod */
+ httpMethod?: (string|null);
+
+ /** Finding fuzzedUrl */
+ fuzzedUrl?: (string|null);
+
+ /** Finding body */
+ body?: (string|null);
+
+ /** Finding description */
+ description?: (string|null);
+
+ /** Finding reproductionUrl */
+ reproductionUrl?: (string|null);
+
+ /** Finding frameUrl */
+ frameUrl?: (string|null);
+
+ /** Finding finalUrl */
+ finalUrl?: (string|null);
+
+ /** Finding trackingId */
+ trackingId?: (string|null);
+
+ /** Finding form */
+ form?: (google.cloud.websecurityscanner.v1beta.IForm|null);
+
+ /** Finding outdatedLibrary */
+ outdatedLibrary?: (google.cloud.websecurityscanner.v1beta.IOutdatedLibrary|null);
+
+ /** Finding violatingResource */
+ violatingResource?: (google.cloud.websecurityscanner.v1beta.IViolatingResource|null);
+
+ /** Finding vulnerableHeaders */
+ vulnerableHeaders?: (google.cloud.websecurityscanner.v1beta.IVulnerableHeaders|null);
+
+ /** Finding vulnerableParameters */
+ vulnerableParameters?: (google.cloud.websecurityscanner.v1beta.IVulnerableParameters|null);
+
+ /** Finding xss */
+ xss?: (google.cloud.websecurityscanner.v1beta.IXss|null);
+ }
+
+ /** Represents a Finding. */
+ class Finding implements IFinding {
+
+ /**
+ * Constructs a new Finding.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IFinding);
+
+ /** Finding name. */
+ public name: string;
+
+ /** Finding findingType. */
+ public findingType: string;
+
+ /** Finding httpMethod. */
+ public httpMethod: string;
+
+ /** Finding fuzzedUrl. */
+ public fuzzedUrl: string;
+
+ /** Finding body. */
+ public body: string;
+
+ /** Finding description. */
+ public description: string;
+
+ /** Finding reproductionUrl. */
+ public reproductionUrl: string;
+
+ /** Finding frameUrl. */
+ public frameUrl: string;
+
+ /** Finding finalUrl. */
+ public finalUrl: string;
+
+ /** Finding trackingId. */
+ public trackingId: string;
+
+ /** Finding form. */
+ public form?: (google.cloud.websecurityscanner.v1beta.IForm|null);
+
+ /** Finding outdatedLibrary. */
+ public outdatedLibrary?: (google.cloud.websecurityscanner.v1beta.IOutdatedLibrary|null);
+
+ /** Finding violatingResource. */
+ public violatingResource?: (google.cloud.websecurityscanner.v1beta.IViolatingResource|null);
+
+ /** Finding vulnerableHeaders. */
+ public vulnerableHeaders?: (google.cloud.websecurityscanner.v1beta.IVulnerableHeaders|null);
+
+ /** Finding vulnerableParameters. */
+ public vulnerableParameters?: (google.cloud.websecurityscanner.v1beta.IVulnerableParameters|null);
+
+ /** Finding xss. */
+ public xss?: (google.cloud.websecurityscanner.v1beta.IXss|null);
+
+ /**
+ * Creates a new Finding instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Finding instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IFinding): google.cloud.websecurityscanner.v1beta.Finding;
+
+ /**
+ * Encodes the specified Finding message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.Finding.verify|verify} messages.
+ * @param message Finding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IFinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Finding message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.Finding.verify|verify} messages.
+ * @param message Finding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IFinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Finding message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Finding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.Finding;
+
+ /**
+ * Decodes a Finding message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Finding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.Finding;
+
+ /**
+ * Verifies a Finding message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Finding message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Finding
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.Finding;
+
+ /**
+ * Creates a plain object from a Finding message. Also converts values to other types if specified.
+ * @param message Finding
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.Finding, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Finding to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Finding
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Form. */
+ interface IForm {
+
+ /** Form actionUri */
+ actionUri?: (string|null);
+
+ /** Form fields */
+ fields?: (string[]|null);
+ }
+
+ /** Represents a Form. */
+ class Form implements IForm {
+
+ /**
+ * Constructs a new Form.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IForm);
+
+ /** Form actionUri. */
+ public actionUri: string;
+
+ /** Form fields. */
+ public fields: string[];
+
+ /**
+ * Creates a new Form instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Form instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IForm): google.cloud.websecurityscanner.v1beta.Form;
+
+ /**
+ * Encodes the specified Form message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.Form.verify|verify} messages.
+ * @param message Form message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IForm, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.Form.verify|verify} messages.
+ * @param message Form message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IForm, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Form message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Form
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.Form;
+
+ /**
+ * Decodes a Form message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Form
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.Form;
+
+ /**
+ * Verifies a Form message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Form message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Form
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.Form;
+
+ /**
+ * Creates a plain object from a Form message. Also converts values to other types if specified.
+ * @param message Form
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.Form, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Form to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Form
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OutdatedLibrary. */
+ interface IOutdatedLibrary {
+
+ /** OutdatedLibrary libraryName */
+ libraryName?: (string|null);
+
+ /** OutdatedLibrary version */
+ version?: (string|null);
+
+ /** OutdatedLibrary learnMoreUrls */
+ learnMoreUrls?: (string[]|null);
+ }
+
+ /** Represents an OutdatedLibrary. */
+ class OutdatedLibrary implements IOutdatedLibrary {
+
+ /**
+ * Constructs a new OutdatedLibrary.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IOutdatedLibrary);
+
+ /** OutdatedLibrary libraryName. */
+ public libraryName: string;
+
+ /** OutdatedLibrary version. */
+ public version: string;
+
+ /** OutdatedLibrary learnMoreUrls. */
+ public learnMoreUrls: string[];
+
+ /**
+ * Creates a new OutdatedLibrary instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OutdatedLibrary instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IOutdatedLibrary): google.cloud.websecurityscanner.v1beta.OutdatedLibrary;
+
+ /**
+ * Encodes the specified OutdatedLibrary message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.OutdatedLibrary.verify|verify} messages.
+ * @param message OutdatedLibrary message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IOutdatedLibrary, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OutdatedLibrary message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.OutdatedLibrary.verify|verify} messages.
+ * @param message OutdatedLibrary message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IOutdatedLibrary, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OutdatedLibrary message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OutdatedLibrary
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.OutdatedLibrary;
+
+ /**
+ * Decodes an OutdatedLibrary message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OutdatedLibrary
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.OutdatedLibrary;
+
+ /**
+ * Verifies an OutdatedLibrary message.
+ * @param message Plain 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 OutdatedLibrary message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OutdatedLibrary
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.OutdatedLibrary;
+
+ /**
+ * Creates a plain object from an OutdatedLibrary message. Also converts values to other types if specified.
+ * @param message OutdatedLibrary
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.OutdatedLibrary, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OutdatedLibrary to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OutdatedLibrary
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ViolatingResource. */
+ interface IViolatingResource {
+
+ /** ViolatingResource contentType */
+ contentType?: (string|null);
+
+ /** ViolatingResource resourceUrl */
+ resourceUrl?: (string|null);
+ }
+
+ /** Represents a ViolatingResource. */
+ class ViolatingResource implements IViolatingResource {
+
+ /**
+ * Constructs a new ViolatingResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IViolatingResource);
+
+ /** ViolatingResource contentType. */
+ public contentType: string;
+
+ /** ViolatingResource resourceUrl. */
+ public resourceUrl: string;
+
+ /**
+ * Creates a new ViolatingResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ViolatingResource instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IViolatingResource): google.cloud.websecurityscanner.v1beta.ViolatingResource;
+
+ /**
+ * Encodes the specified ViolatingResource message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ViolatingResource.verify|verify} messages.
+ * @param message ViolatingResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IViolatingResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ViolatingResource message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ViolatingResource.verify|verify} messages.
+ * @param message ViolatingResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IViolatingResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ViolatingResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ViolatingResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ViolatingResource;
+
+ /**
+ * Decodes a ViolatingResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ViolatingResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ViolatingResource;
+
+ /**
+ * Verifies a ViolatingResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ViolatingResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ViolatingResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ViolatingResource;
+
+ /**
+ * Creates a plain object from a ViolatingResource message. Also converts values to other types if specified.
+ * @param message ViolatingResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ViolatingResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ViolatingResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ViolatingResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VulnerableParameters. */
+ interface IVulnerableParameters {
+
+ /** VulnerableParameters parameterNames */
+ parameterNames?: (string[]|null);
+ }
+
+ /** Represents a VulnerableParameters. */
+ class VulnerableParameters implements IVulnerableParameters {
+
+ /**
+ * Constructs a new VulnerableParameters.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IVulnerableParameters);
+
+ /** VulnerableParameters parameterNames. */
+ public parameterNames: string[];
+
+ /**
+ * Creates a new VulnerableParameters instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VulnerableParameters instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IVulnerableParameters): google.cloud.websecurityscanner.v1beta.VulnerableParameters;
+
+ /**
+ * Encodes the specified VulnerableParameters message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.VulnerableParameters.verify|verify} messages.
+ * @param message VulnerableParameters message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IVulnerableParameters, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VulnerableParameters message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.VulnerableParameters.verify|verify} messages.
+ * @param message VulnerableParameters message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IVulnerableParameters, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VulnerableParameters message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VulnerableParameters
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.VulnerableParameters;
+
+ /**
+ * Decodes a VulnerableParameters message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VulnerableParameters
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.VulnerableParameters;
+
+ /**
+ * Verifies a VulnerableParameters message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VulnerableParameters message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VulnerableParameters
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.VulnerableParameters;
+
+ /**
+ * Creates a plain object from a VulnerableParameters message. Also converts values to other types if specified.
+ * @param message VulnerableParameters
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.VulnerableParameters, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VulnerableParameters to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VulnerableParameters
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VulnerableHeaders. */
+ interface IVulnerableHeaders {
+
+ /** VulnerableHeaders headers */
+ headers?: (google.cloud.websecurityscanner.v1beta.VulnerableHeaders.IHeader[]|null);
+
+ /** VulnerableHeaders missingHeaders */
+ missingHeaders?: (google.cloud.websecurityscanner.v1beta.VulnerableHeaders.IHeader[]|null);
+ }
+
+ /** Represents a VulnerableHeaders. */
+ class VulnerableHeaders implements IVulnerableHeaders {
+
+ /**
+ * Constructs a new VulnerableHeaders.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IVulnerableHeaders);
+
+ /** VulnerableHeaders headers. */
+ public headers: google.cloud.websecurityscanner.v1beta.VulnerableHeaders.IHeader[];
+
+ /** VulnerableHeaders missingHeaders. */
+ public missingHeaders: google.cloud.websecurityscanner.v1beta.VulnerableHeaders.IHeader[];
+
+ /**
+ * Creates a new VulnerableHeaders instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VulnerableHeaders instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IVulnerableHeaders): google.cloud.websecurityscanner.v1beta.VulnerableHeaders;
+
+ /**
+ * Encodes the specified VulnerableHeaders message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.VulnerableHeaders.verify|verify} messages.
+ * @param message VulnerableHeaders message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IVulnerableHeaders, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VulnerableHeaders message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.VulnerableHeaders.verify|verify} messages.
+ * @param message VulnerableHeaders message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IVulnerableHeaders, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VulnerableHeaders message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VulnerableHeaders
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.VulnerableHeaders;
+
+ /**
+ * Decodes a VulnerableHeaders message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VulnerableHeaders
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.VulnerableHeaders;
+
+ /**
+ * Verifies a VulnerableHeaders message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VulnerableHeaders message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VulnerableHeaders
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.VulnerableHeaders;
+
+ /**
+ * Creates a plain object from a VulnerableHeaders message. Also converts values to other types if specified.
+ * @param message VulnerableHeaders
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.VulnerableHeaders, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VulnerableHeaders to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VulnerableHeaders
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VulnerableHeaders {
+
+ /** Properties of a Header. */
+ interface IHeader {
+
+ /** Header name */
+ name?: (string|null);
+
+ /** Header value */
+ value?: (string|null);
+ }
+
+ /** Represents a Header. */
+ class Header implements IHeader {
+
+ /**
+ * Constructs a new Header.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.VulnerableHeaders.IHeader);
+
+ /** Header name. */
+ public name: string;
+
+ /** Header value. */
+ public value: string;
+
+ /**
+ * Creates a new Header instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Header instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.VulnerableHeaders.IHeader): google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header;
+
+ /**
+ * Encodes the specified Header message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.verify|verify} messages.
+ * @param message Header message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.VulnerableHeaders.IHeader, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.verify|verify} messages.
+ * @param message Header message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.VulnerableHeaders.IHeader, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Header message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Header
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header;
+
+ /**
+ * Decodes a Header message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Header
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header;
+
+ /**
+ * Verifies a Header message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Header message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Header
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header;
+
+ /**
+ * Creates a plain object from a Header message. Also converts values to other types if specified.
+ * @param message Header
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Header to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Header
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Xss. */
+ interface IXss {
+
+ /** Xss stackTraces */
+ stackTraces?: (string[]|null);
+
+ /** Xss errorMessage */
+ errorMessage?: (string|null);
+ }
+
+ /** Represents a Xss. */
+ class Xss implements IXss {
+
+ /**
+ * Constructs a new Xss.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IXss);
+
+ /** Xss stackTraces. */
+ public stackTraces: string[];
+
+ /** Xss errorMessage. */
+ public errorMessage: string;
+
+ /**
+ * Creates a new Xss instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Xss instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IXss): google.cloud.websecurityscanner.v1beta.Xss;
+
+ /**
+ * Encodes the specified Xss message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.Xss.verify|verify} messages.
+ * @param message Xss message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IXss, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Xss message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.Xss.verify|verify} messages.
+ * @param message Xss message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IXss, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Xss message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Xss
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.Xss;
+
+ /**
+ * Decodes a Xss message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Xss
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.Xss;
+
+ /**
+ * Verifies a Xss message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Xss message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Xss
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.Xss;
+
+ /**
+ * Creates a plain object from a Xss message. Also converts values to other types if specified.
+ * @param message Xss
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.Xss, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Xss to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Xss
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FindingTypeStats. */
+ interface IFindingTypeStats {
+
+ /** FindingTypeStats findingType */
+ findingType?: (string|null);
+
+ /** FindingTypeStats findingCount */
+ findingCount?: (number|null);
+ }
+
+ /** Represents a FindingTypeStats. */
+ class FindingTypeStats implements IFindingTypeStats {
+
+ /**
+ * Constructs a new FindingTypeStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IFindingTypeStats);
+
+ /** FindingTypeStats findingType. */
+ public findingType: string;
+
+ /** FindingTypeStats findingCount. */
+ public findingCount: number;
+
+ /**
+ * Creates a new FindingTypeStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FindingTypeStats instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IFindingTypeStats): google.cloud.websecurityscanner.v1beta.FindingTypeStats;
+
+ /**
+ * Encodes the specified FindingTypeStats message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.FindingTypeStats.verify|verify} messages.
+ * @param message FindingTypeStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IFindingTypeStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FindingTypeStats message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.FindingTypeStats.verify|verify} messages.
+ * @param message FindingTypeStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IFindingTypeStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FindingTypeStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FindingTypeStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.FindingTypeStats;
+
+ /**
+ * Decodes a FindingTypeStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FindingTypeStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.FindingTypeStats;
+
+ /**
+ * Verifies a FindingTypeStats message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FindingTypeStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FindingTypeStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.FindingTypeStats;
+
+ /**
+ * Creates a plain object from a FindingTypeStats message. Also converts values to other types if specified.
+ * @param message FindingTypeStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.FindingTypeStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FindingTypeStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FindingTypeStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ScanConfig. */
+ interface IScanConfig {
+
+ /** ScanConfig name */
+ name?: (string|null);
+
+ /** ScanConfig displayName */
+ displayName?: (string|null);
+
+ /** ScanConfig maxQps */
+ maxQps?: (number|null);
+
+ /** ScanConfig startingUrls */
+ startingUrls?: (string[]|null);
+
+ /** ScanConfig authentication */
+ authentication?: (google.cloud.websecurityscanner.v1beta.ScanConfig.IAuthentication|null);
+
+ /** ScanConfig userAgent */
+ userAgent?: (google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent|keyof typeof google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent|null);
+
+ /** ScanConfig blacklistPatterns */
+ blacklistPatterns?: (string[]|null);
+
+ /** ScanConfig schedule */
+ schedule?: (google.cloud.websecurityscanner.v1beta.ScanConfig.ISchedule|null);
+
+ /** ScanConfig targetPlatforms */
+ targetPlatforms?: (google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform[]|null);
+
+ /** ScanConfig exportToSecurityCommandCenter */
+ exportToSecurityCommandCenter?: (google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter|keyof typeof google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter|null);
+
+ /** ScanConfig latestRun */
+ latestRun?: (google.cloud.websecurityscanner.v1beta.IScanRun|null);
+
+ /** ScanConfig riskLevel */
+ riskLevel?: (google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel|keyof typeof google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel|null);
+ }
+
+ /** Represents a ScanConfig. */
+ class ScanConfig implements IScanConfig {
+
+ /**
+ * Constructs a new ScanConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IScanConfig);
+
+ /** ScanConfig name. */
+ public name: string;
+
+ /** ScanConfig displayName. */
+ public displayName: string;
+
+ /** ScanConfig maxQps. */
+ public maxQps: number;
+
+ /** ScanConfig startingUrls. */
+ public startingUrls: string[];
+
+ /** ScanConfig authentication. */
+ public authentication?: (google.cloud.websecurityscanner.v1beta.ScanConfig.IAuthentication|null);
+
+ /** ScanConfig userAgent. */
+ public userAgent: (google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent|keyof typeof google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent);
+
+ /** ScanConfig blacklistPatterns. */
+ public blacklistPatterns: string[];
+
+ /** ScanConfig schedule. */
+ public schedule?: (google.cloud.websecurityscanner.v1beta.ScanConfig.ISchedule|null);
+
+ /** ScanConfig targetPlatforms. */
+ public targetPlatforms: google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform[];
+
+ /** ScanConfig exportToSecurityCommandCenter. */
+ public exportToSecurityCommandCenter: (google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter|keyof typeof google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter);
+
+ /** ScanConfig latestRun. */
+ public latestRun?: (google.cloud.websecurityscanner.v1beta.IScanRun|null);
+
+ /** ScanConfig riskLevel. */
+ public riskLevel: (google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel|keyof typeof google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel);
+
+ /**
+ * Creates a new ScanConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanConfig instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IScanConfig): google.cloud.websecurityscanner.v1beta.ScanConfig;
+
+ /**
+ * Encodes the specified ScanConfig message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanConfig.verify|verify} messages.
+ * @param message ScanConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IScanConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanConfig message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanConfig.verify|verify} messages.
+ * @param message ScanConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IScanConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ScanConfig;
+
+ /**
+ * Decodes a ScanConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ScanConfig;
+
+ /**
+ * Verifies a ScanConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ScanConfig;
+
+ /**
+ * Creates a plain object from a ScanConfig message. Also converts values to other types if specified.
+ * @param message ScanConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ScanConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScanConfig {
+
+ /** Properties of an Authentication. */
+ interface IAuthentication {
+
+ /** Authentication googleAccount */
+ googleAccount?: (google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.IGoogleAccount|null);
+
+ /** Authentication customAccount */
+ customAccount?: (google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.ICustomAccount|null);
+ }
+
+ /** Represents an Authentication. */
+ class Authentication implements IAuthentication {
+
+ /**
+ * Constructs a new Authentication.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.ScanConfig.IAuthentication);
+
+ /** Authentication googleAccount. */
+ public googleAccount?: (google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.IGoogleAccount|null);
+
+ /** Authentication customAccount. */
+ public customAccount?: (google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.ICustomAccount|null);
+
+ /** Authentication authentication. */
+ public authentication?: ("googleAccount"|"customAccount");
+
+ /**
+ * Creates a new Authentication instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Authentication instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.ScanConfig.IAuthentication): google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication;
+
+ /**
+ * Encodes the specified Authentication message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.verify|verify} messages.
+ * @param message Authentication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.ScanConfig.IAuthentication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Authentication message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.verify|verify} messages.
+ * @param message Authentication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.ScanConfig.IAuthentication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Authentication message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Authentication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication;
+
+ /**
+ * Decodes an Authentication message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Authentication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication;
+
+ /**
+ * Verifies an Authentication message.
+ * @param message Plain 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 Authentication message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Authentication
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication;
+
+ /**
+ * Creates a plain object from an Authentication message. Also converts values to other types if specified.
+ * @param message Authentication
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Authentication to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Authentication
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Authentication {
+
+ /** Properties of a GoogleAccount. */
+ interface IGoogleAccount {
+
+ /** GoogleAccount username */
+ username?: (string|null);
+
+ /** GoogleAccount password */
+ password?: (string|null);
+ }
+
+ /** Represents a GoogleAccount. */
+ class GoogleAccount implements IGoogleAccount {
+
+ /**
+ * Constructs a new GoogleAccount.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.IGoogleAccount);
+
+ /** GoogleAccount username. */
+ public username: string;
+
+ /** GoogleAccount password. */
+ public password: string;
+
+ /**
+ * Creates a new GoogleAccount instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoogleAccount instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.IGoogleAccount): google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount;
+
+ /**
+ * Encodes the specified GoogleAccount message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.verify|verify} messages.
+ * @param message GoogleAccount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.IGoogleAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoogleAccount message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.verify|verify} messages.
+ * @param message GoogleAccount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.IGoogleAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoogleAccount message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoogleAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount;
+
+ /**
+ * Decodes a GoogleAccount message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoogleAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount;
+
+ /**
+ * Verifies a GoogleAccount message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoogleAccount message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoogleAccount
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount;
+
+ /**
+ * Creates a plain object from a GoogleAccount message. Also converts values to other types if specified.
+ * @param message GoogleAccount
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoogleAccount to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoogleAccount
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomAccount. */
+ interface ICustomAccount {
+
+ /** CustomAccount username */
+ username?: (string|null);
+
+ /** CustomAccount password */
+ password?: (string|null);
+
+ /** CustomAccount loginUrl */
+ loginUrl?: (string|null);
+ }
+
+ /** Represents a CustomAccount. */
+ class CustomAccount implements ICustomAccount {
+
+ /**
+ * Constructs a new CustomAccount.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.ICustomAccount);
+
+ /** CustomAccount username. */
+ public username: string;
+
+ /** CustomAccount password. */
+ public password: string;
+
+ /** CustomAccount loginUrl. */
+ public loginUrl: string;
+
+ /**
+ * Creates a new CustomAccount instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomAccount instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.ICustomAccount): google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount;
+
+ /**
+ * Encodes the specified CustomAccount message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.verify|verify} messages.
+ * @param message CustomAccount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.ICustomAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomAccount message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.verify|verify} messages.
+ * @param message CustomAccount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.ICustomAccount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomAccount message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount;
+
+ /**
+ * Decodes a CustomAccount message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount;
+
+ /**
+ * Verifies a CustomAccount message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomAccount message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomAccount
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount;
+
+ /**
+ * Creates a plain object from a CustomAccount message. Also converts values to other types if specified.
+ * @param message CustomAccount
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomAccount to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomAccount
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Schedule. */
+ interface ISchedule {
+
+ /** Schedule scheduleTime */
+ scheduleTime?: (google.protobuf.ITimestamp|null);
+
+ /** Schedule intervalDurationDays */
+ intervalDurationDays?: (number|null);
+ }
+
+ /** Represents a Schedule. */
+ class Schedule implements ISchedule {
+
+ /**
+ * Constructs a new Schedule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.ScanConfig.ISchedule);
+
+ /** Schedule scheduleTime. */
+ public scheduleTime?: (google.protobuf.ITimestamp|null);
+
+ /** Schedule intervalDurationDays. */
+ public intervalDurationDays: number;
+
+ /**
+ * Creates a new Schedule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Schedule instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.ScanConfig.ISchedule): google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule;
+
+ /**
+ * Encodes the specified Schedule message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.verify|verify} messages.
+ * @param message Schedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.ScanConfig.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Schedule message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.verify|verify} messages.
+ * @param message Schedule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.ScanConfig.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Schedule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Schedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule;
+
+ /**
+ * Decodes a Schedule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Schedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule;
+
+ /**
+ * Verifies a Schedule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Schedule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Schedule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule;
+
+ /**
+ * Creates a plain object from a Schedule message. Also converts values to other types if specified.
+ * @param message Schedule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Schedule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Schedule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** UserAgent enum. */
+ enum UserAgent {
+ USER_AGENT_UNSPECIFIED = 0,
+ CHROME_LINUX = 1,
+ CHROME_ANDROID = 2,
+ SAFARI_IPHONE = 3
+ }
+
+ /** TargetPlatform enum. */
+ enum TargetPlatform {
+ TARGET_PLATFORM_UNSPECIFIED = 0,
+ APP_ENGINE = 1,
+ COMPUTE = 2
+ }
+
+ /** RiskLevel enum. */
+ enum RiskLevel {
+ RISK_LEVEL_UNSPECIFIED = 0,
+ NORMAL = 1,
+ LOW = 2
+ }
+
+ /** ExportToSecurityCommandCenter enum. */
+ enum ExportToSecurityCommandCenter {
+ EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED = 0,
+ ENABLED = 1,
+ DISABLED = 2
+ }
+ }
+
+ /** Properties of a ScanRun. */
+ interface IScanRun {
+
+ /** ScanRun name */
+ name?: (string|null);
+
+ /** ScanRun executionState */
+ executionState?: (google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState|keyof typeof google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState|null);
+
+ /** ScanRun resultState */
+ resultState?: (google.cloud.websecurityscanner.v1beta.ScanRun.ResultState|keyof typeof google.cloud.websecurityscanner.v1beta.ScanRun.ResultState|null);
+
+ /** ScanRun startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** ScanRun endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** ScanRun urlsCrawledCount */
+ urlsCrawledCount?: (number|Long|string|null);
+
+ /** ScanRun urlsTestedCount */
+ urlsTestedCount?: (number|Long|string|null);
+
+ /** ScanRun hasVulnerabilities */
+ hasVulnerabilities?: (boolean|null);
+
+ /** ScanRun progressPercent */
+ progressPercent?: (number|null);
+
+ /** ScanRun errorTrace */
+ errorTrace?: (google.cloud.websecurityscanner.v1beta.IScanRunErrorTrace|null);
+
+ /** ScanRun warningTraces */
+ warningTraces?: (google.cloud.websecurityscanner.v1beta.IScanRunWarningTrace[]|null);
+ }
+
+ /** Represents a ScanRun. */
+ class ScanRun implements IScanRun {
+
+ /**
+ * Constructs a new ScanRun.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IScanRun);
+
+ /** ScanRun name. */
+ public name: string;
+
+ /** ScanRun executionState. */
+ public executionState: (google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState|keyof typeof google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState);
+
+ /** ScanRun resultState. */
+ public resultState: (google.cloud.websecurityscanner.v1beta.ScanRun.ResultState|keyof typeof google.cloud.websecurityscanner.v1beta.ScanRun.ResultState);
+
+ /** ScanRun startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** ScanRun endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** ScanRun urlsCrawledCount. */
+ public urlsCrawledCount: (number|Long|string);
+
+ /** ScanRun urlsTestedCount. */
+ public urlsTestedCount: (number|Long|string);
+
+ /** ScanRun hasVulnerabilities. */
+ public hasVulnerabilities: boolean;
+
+ /** ScanRun progressPercent. */
+ public progressPercent: number;
+
+ /** ScanRun errorTrace. */
+ public errorTrace?: (google.cloud.websecurityscanner.v1beta.IScanRunErrorTrace|null);
+
+ /** ScanRun warningTraces. */
+ public warningTraces: google.cloud.websecurityscanner.v1beta.IScanRunWarningTrace[];
+
+ /**
+ * Creates a new ScanRun instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanRun instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IScanRun): google.cloud.websecurityscanner.v1beta.ScanRun;
+
+ /**
+ * Encodes the specified ScanRun message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanRun.verify|verify} messages.
+ * @param message ScanRun message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IScanRun, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanRun message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanRun.verify|verify} messages.
+ * @param message ScanRun message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IScanRun, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanRun message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanRun
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ScanRun;
+
+ /**
+ * Decodes a ScanRun message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanRun
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ScanRun;
+
+ /**
+ * Verifies a ScanRun message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanRun message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanRun
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ScanRun;
+
+ /**
+ * Creates a plain object from a ScanRun message. Also converts values to other types if specified.
+ * @param message ScanRun
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ScanRun, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanRun to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanRun
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScanRun {
+
+ /** ExecutionState enum. */
+ enum ExecutionState {
+ EXECUTION_STATE_UNSPECIFIED = 0,
+ QUEUED = 1,
+ SCANNING = 2,
+ FINISHED = 3
+ }
+
+ /** ResultState enum. */
+ enum ResultState {
+ RESULT_STATE_UNSPECIFIED = 0,
+ SUCCESS = 1,
+ ERROR = 2,
+ KILLED = 3
+ }
+ }
+
+ /** Properties of a ScanRunErrorTrace. */
+ interface IScanRunErrorTrace {
+
+ /** ScanRunErrorTrace code */
+ code?: (google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code|keyof typeof google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code|null);
+
+ /** ScanRunErrorTrace scanConfigError */
+ scanConfigError?: (google.cloud.websecurityscanner.v1beta.IScanConfigError|null);
+
+ /** ScanRunErrorTrace mostCommonHttpErrorCode */
+ mostCommonHttpErrorCode?: (number|null);
+ }
+
+ /** Represents a ScanRunErrorTrace. */
+ class ScanRunErrorTrace implements IScanRunErrorTrace {
+
+ /**
+ * Constructs a new ScanRunErrorTrace.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IScanRunErrorTrace);
+
+ /** ScanRunErrorTrace code. */
+ public code: (google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code|keyof typeof google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code);
+
+ /** ScanRunErrorTrace scanConfigError. */
+ public scanConfigError?: (google.cloud.websecurityscanner.v1beta.IScanConfigError|null);
+
+ /** ScanRunErrorTrace mostCommonHttpErrorCode. */
+ public mostCommonHttpErrorCode: number;
+
+ /**
+ * Creates a new ScanRunErrorTrace instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanRunErrorTrace instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IScanRunErrorTrace): google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace;
+
+ /**
+ * Encodes the specified ScanRunErrorTrace message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.verify|verify} messages.
+ * @param message ScanRunErrorTrace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IScanRunErrorTrace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanRunErrorTrace message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.verify|verify} messages.
+ * @param message ScanRunErrorTrace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IScanRunErrorTrace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanRunErrorTrace message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanRunErrorTrace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace;
+
+ /**
+ * Decodes a ScanRunErrorTrace message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanRunErrorTrace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace;
+
+ /**
+ * Verifies a ScanRunErrorTrace message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanRunErrorTrace message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanRunErrorTrace
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace;
+
+ /**
+ * Creates a plain object from a ScanRunErrorTrace message. Also converts values to other types if specified.
+ * @param message ScanRunErrorTrace
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanRunErrorTrace to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanRunErrorTrace
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScanRunErrorTrace {
+
+ /** Code enum. */
+ enum Code {
+ CODE_UNSPECIFIED = 0,
+ INTERNAL_ERROR = 1,
+ SCAN_CONFIG_ISSUE = 2,
+ AUTHENTICATION_CONFIG_ISSUE = 3,
+ TIMED_OUT_WHILE_SCANNING = 4,
+ TOO_MANY_REDIRECTS = 5,
+ TOO_MANY_HTTP_ERRORS = 6
+ }
+ }
+
+ /** Properties of a ScanConfigError. */
+ interface IScanConfigError {
+
+ /** ScanConfigError code */
+ code?: (google.cloud.websecurityscanner.v1beta.ScanConfigError.Code|keyof typeof google.cloud.websecurityscanner.v1beta.ScanConfigError.Code|null);
+
+ /** ScanConfigError fieldName */
+ fieldName?: (string|null);
+ }
+
+ /** Represents a ScanConfigError. */
+ class ScanConfigError implements IScanConfigError {
+
+ /**
+ * Constructs a new ScanConfigError.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IScanConfigError);
+
+ /** ScanConfigError code. */
+ public code: (google.cloud.websecurityscanner.v1beta.ScanConfigError.Code|keyof typeof google.cloud.websecurityscanner.v1beta.ScanConfigError.Code);
+
+ /** ScanConfigError fieldName. */
+ public fieldName: string;
+
+ /**
+ * Creates a new ScanConfigError instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanConfigError instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IScanConfigError): google.cloud.websecurityscanner.v1beta.ScanConfigError;
+
+ /**
+ * Encodes the specified ScanConfigError message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanConfigError.verify|verify} messages.
+ * @param message ScanConfigError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IScanConfigError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanConfigError message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanConfigError.verify|verify} messages.
+ * @param message ScanConfigError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IScanConfigError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanConfigError message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanConfigError
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ScanConfigError;
+
+ /**
+ * Decodes a ScanConfigError message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanConfigError
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ScanConfigError;
+
+ /**
+ * Verifies a ScanConfigError message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanConfigError message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanConfigError
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ScanConfigError;
+
+ /**
+ * Creates a plain object from a ScanConfigError message. Also converts values to other types if specified.
+ * @param message ScanConfigError
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ScanConfigError, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanConfigError to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanConfigError
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScanConfigError {
+
+ /** Code enum. */
+ enum Code {
+ CODE_UNSPECIFIED = 0,
+ OK = 0,
+ INTERNAL_ERROR = 1,
+ APPENGINE_API_BACKEND_ERROR = 2,
+ APPENGINE_API_NOT_ACCESSIBLE = 3,
+ APPENGINE_DEFAULT_HOST_MISSING = 4,
+ CANNOT_USE_GOOGLE_COM_ACCOUNT = 6,
+ CANNOT_USE_OWNER_ACCOUNT = 7,
+ COMPUTE_API_BACKEND_ERROR = 8,
+ COMPUTE_API_NOT_ACCESSIBLE = 9,
+ CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT = 10,
+ CUSTOM_LOGIN_URL_MALFORMED = 11,
+ CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS = 12,
+ CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS = 13,
+ CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS = 14,
+ CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS = 15,
+ DUPLICATE_SCAN_NAME = 16,
+ INVALID_FIELD_VALUE = 18,
+ FAILED_TO_AUTHENTICATE_TO_TARGET = 19,
+ FINDING_TYPE_UNSPECIFIED = 20,
+ FORBIDDEN_TO_SCAN_COMPUTE = 21,
+ FORBIDDEN_UPDATE_TO_MANAGED_SCAN = 43,
+ MALFORMED_FILTER = 22,
+ MALFORMED_RESOURCE_NAME = 23,
+ PROJECT_INACTIVE = 24,
+ REQUIRED_FIELD = 25,
+ RESOURCE_NAME_INCONSISTENT = 26,
+ SCAN_ALREADY_RUNNING = 27,
+ SCAN_NOT_RUNNING = 28,
+ SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT = 29,
+ SEED_URL_MALFORMED = 30,
+ SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS = 31,
+ SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS = 32,
+ SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS = 33,
+ SEED_URL_HAS_UNRESERVED_IP_ADDRESS = 35,
+ SERVICE_ACCOUNT_NOT_CONFIGURED = 36,
+ TOO_MANY_SCANS = 37,
+ UNABLE_TO_RESOLVE_PROJECT_INFO = 38,
+ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT = 39,
+ UNSUPPORTED_FILTER = 40,
+ UNSUPPORTED_FINDING_TYPE = 41,
+ UNSUPPORTED_URL_SCHEME = 42
+ }
+ }
+
+ /** Properties of a ScanRunWarningTrace. */
+ interface IScanRunWarningTrace {
+
+ /** ScanRunWarningTrace code */
+ code?: (google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code|keyof typeof google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code|null);
+ }
+
+ /** Represents a ScanRunWarningTrace. */
+ class ScanRunWarningTrace implements IScanRunWarningTrace {
+
+ /**
+ * Constructs a new ScanRunWarningTrace.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IScanRunWarningTrace);
+
+ /** ScanRunWarningTrace code. */
+ public code: (google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code|keyof typeof google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code);
+
+ /**
+ * Creates a new ScanRunWarningTrace instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScanRunWarningTrace instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IScanRunWarningTrace): google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace;
+
+ /**
+ * Encodes the specified ScanRunWarningTrace message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.verify|verify} messages.
+ * @param message ScanRunWarningTrace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IScanRunWarningTrace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScanRunWarningTrace message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.verify|verify} messages.
+ * @param message ScanRunWarningTrace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IScanRunWarningTrace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScanRunWarningTrace message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScanRunWarningTrace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace;
+
+ /**
+ * Decodes a ScanRunWarningTrace message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScanRunWarningTrace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace;
+
+ /**
+ * Verifies a ScanRunWarningTrace message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ScanRunWarningTrace message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScanRunWarningTrace
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace;
+
+ /**
+ * Creates a plain object from a ScanRunWarningTrace message. Also converts values to other types if specified.
+ * @param message ScanRunWarningTrace
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScanRunWarningTrace to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScanRunWarningTrace
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScanRunWarningTrace {
+
+ /** Code enum. */
+ enum Code {
+ CODE_UNSPECIFIED = 0,
+ INSUFFICIENT_CRAWL_RESULTS = 1,
+ TOO_MANY_CRAWL_RESULTS = 2,
+ TOO_MANY_FUZZ_TASKS = 3,
+ BLOCKED_BY_IAP = 4
+ }
+ }
+
+ /** Represents a WebSecurityScanner */
+ class WebSecurityScanner extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new WebSecurityScanner 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 WebSecurityScanner 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): WebSecurityScanner;
+
+ /**
+ * Calls CreateScanConfig.
+ * @param request CreateScanConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanConfig
+ */
+ public createScanConfig(request: google.cloud.websecurityscanner.v1beta.ICreateScanConfigRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.CreateScanConfigCallback): void;
+
+ /**
+ * Calls CreateScanConfig.
+ * @param request CreateScanConfigRequest message or plain object
+ * @returns Promise
+ */
+ public createScanConfig(request: google.cloud.websecurityscanner.v1beta.ICreateScanConfigRequest): Promise;
+
+ /**
+ * Calls DeleteScanConfig.
+ * @param request DeleteScanConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteScanConfig(request: google.cloud.websecurityscanner.v1beta.IDeleteScanConfigRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.DeleteScanConfigCallback): void;
+
+ /**
+ * Calls DeleteScanConfig.
+ * @param request DeleteScanConfigRequest message or plain object
+ * @returns Promise
+ */
+ public deleteScanConfig(request: google.cloud.websecurityscanner.v1beta.IDeleteScanConfigRequest): Promise;
+
+ /**
+ * Calls GetScanConfig.
+ * @param request GetScanConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanConfig
+ */
+ public getScanConfig(request: google.cloud.websecurityscanner.v1beta.IGetScanConfigRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.GetScanConfigCallback): void;
+
+ /**
+ * Calls GetScanConfig.
+ * @param request GetScanConfigRequest message or plain object
+ * @returns Promise
+ */
+ public getScanConfig(request: google.cloud.websecurityscanner.v1beta.IGetScanConfigRequest): Promise;
+
+ /**
+ * Calls ListScanConfigs.
+ * @param request ListScanConfigsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListScanConfigsResponse
+ */
+ public listScanConfigs(request: google.cloud.websecurityscanner.v1beta.IListScanConfigsRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListScanConfigsCallback): void;
+
+ /**
+ * Calls ListScanConfigs.
+ * @param request ListScanConfigsRequest message or plain object
+ * @returns Promise
+ */
+ public listScanConfigs(request: google.cloud.websecurityscanner.v1beta.IListScanConfigsRequest): Promise;
+
+ /**
+ * Calls UpdateScanConfig.
+ * @param request UpdateScanConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanConfig
+ */
+ public updateScanConfig(request: google.cloud.websecurityscanner.v1beta.IUpdateScanConfigRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.UpdateScanConfigCallback): void;
+
+ /**
+ * Calls UpdateScanConfig.
+ * @param request UpdateScanConfigRequest message or plain object
+ * @returns Promise
+ */
+ public updateScanConfig(request: google.cloud.websecurityscanner.v1beta.IUpdateScanConfigRequest): Promise;
+
+ /**
+ * Calls StartScanRun.
+ * @param request StartScanRunRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanRun
+ */
+ public startScanRun(request: google.cloud.websecurityscanner.v1beta.IStartScanRunRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.StartScanRunCallback): void;
+
+ /**
+ * Calls StartScanRun.
+ * @param request StartScanRunRequest message or plain object
+ * @returns Promise
+ */
+ public startScanRun(request: google.cloud.websecurityscanner.v1beta.IStartScanRunRequest): Promise;
+
+ /**
+ * Calls GetScanRun.
+ * @param request GetScanRunRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanRun
+ */
+ public getScanRun(request: google.cloud.websecurityscanner.v1beta.IGetScanRunRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.GetScanRunCallback): void;
+
+ /**
+ * Calls GetScanRun.
+ * @param request GetScanRunRequest message or plain object
+ * @returns Promise
+ */
+ public getScanRun(request: google.cloud.websecurityscanner.v1beta.IGetScanRunRequest): Promise;
+
+ /**
+ * Calls ListScanRuns.
+ * @param request ListScanRunsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListScanRunsResponse
+ */
+ public listScanRuns(request: google.cloud.websecurityscanner.v1beta.IListScanRunsRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListScanRunsCallback): void;
+
+ /**
+ * Calls ListScanRuns.
+ * @param request ListScanRunsRequest message or plain object
+ * @returns Promise
+ */
+ public listScanRuns(request: google.cloud.websecurityscanner.v1beta.IListScanRunsRequest): Promise;
+
+ /**
+ * Calls StopScanRun.
+ * @param request StopScanRunRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ScanRun
+ */
+ public stopScanRun(request: google.cloud.websecurityscanner.v1beta.IStopScanRunRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.StopScanRunCallback): void;
+
+ /**
+ * Calls StopScanRun.
+ * @param request StopScanRunRequest message or plain object
+ * @returns Promise
+ */
+ public stopScanRun(request: google.cloud.websecurityscanner.v1beta.IStopScanRunRequest): Promise;
+
+ /**
+ * Calls ListCrawledUrls.
+ * @param request ListCrawledUrlsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListCrawledUrlsResponse
+ */
+ public listCrawledUrls(request: google.cloud.websecurityscanner.v1beta.IListCrawledUrlsRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListCrawledUrlsCallback): void;
+
+ /**
+ * Calls ListCrawledUrls.
+ * @param request ListCrawledUrlsRequest message or plain object
+ * @returns Promise
+ */
+ public listCrawledUrls(request: google.cloud.websecurityscanner.v1beta.IListCrawledUrlsRequest): Promise;
+
+ /**
+ * Calls GetFinding.
+ * @param request GetFindingRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Finding
+ */
+ public getFinding(request: google.cloud.websecurityscanner.v1beta.IGetFindingRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.GetFindingCallback): void;
+
+ /**
+ * Calls GetFinding.
+ * @param request GetFindingRequest message or plain object
+ * @returns Promise
+ */
+ public getFinding(request: google.cloud.websecurityscanner.v1beta.IGetFindingRequest): Promise;
+
+ /**
+ * Calls ListFindings.
+ * @param request ListFindingsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListFindingsResponse
+ */
+ public listFindings(request: google.cloud.websecurityscanner.v1beta.IListFindingsRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListFindingsCallback): void;
+
+ /**
+ * Calls ListFindings.
+ * @param request ListFindingsRequest message or plain object
+ * @returns Promise
+ */
+ public listFindings(request: google.cloud.websecurityscanner.v1beta.IListFindingsRequest): Promise;
+
+ /**
+ * Calls ListFindingTypeStats.
+ * @param request ListFindingTypeStatsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListFindingTypeStatsResponse
+ */
+ public listFindingTypeStats(request: google.cloud.websecurityscanner.v1beta.IListFindingTypeStatsRequest, callback: google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListFindingTypeStatsCallback): void;
+
+ /**
+ * Calls ListFindingTypeStats.
+ * @param request ListFindingTypeStatsRequest message or plain object
+ * @returns Promise
+ */
+ public listFindingTypeStats(request: google.cloud.websecurityscanner.v1beta.IListFindingTypeStatsRequest): Promise;
+ }
+
+ namespace WebSecurityScanner {
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|createScanConfig}.
+ * @param error Error, if any
+ * @param [response] ScanConfig
+ */
+ type CreateScanConfigCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1beta.ScanConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|deleteScanConfig}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteScanConfigCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|getScanConfig}.
+ * @param error Error, if any
+ * @param [response] ScanConfig
+ */
+ type GetScanConfigCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1beta.ScanConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|listScanConfigs}.
+ * @param error Error, if any
+ * @param [response] ListScanConfigsResponse
+ */
+ type ListScanConfigsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|updateScanConfig}.
+ * @param error Error, if any
+ * @param [response] ScanConfig
+ */
+ type UpdateScanConfigCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1beta.ScanConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|startScanRun}.
+ * @param error Error, if any
+ * @param [response] ScanRun
+ */
+ type StartScanRunCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1beta.ScanRun) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|getScanRun}.
+ * @param error Error, if any
+ * @param [response] ScanRun
+ */
+ type GetScanRunCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1beta.ScanRun) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|listScanRuns}.
+ * @param error Error, if any
+ * @param [response] ListScanRunsResponse
+ */
+ type ListScanRunsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|stopScanRun}.
+ * @param error Error, if any
+ * @param [response] ScanRun
+ */
+ type StopScanRunCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1beta.ScanRun) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|listCrawledUrls}.
+ * @param error Error, if any
+ * @param [response] ListCrawledUrlsResponse
+ */
+ type ListCrawledUrlsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|getFinding}.
+ * @param error Error, if any
+ * @param [response] Finding
+ */
+ type GetFindingCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1beta.Finding) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|listFindings}.
+ * @param error Error, if any
+ * @param [response] ListFindingsResponse
+ */
+ type ListFindingsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1beta.ListFindingsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1beta.WebSecurityScanner|listFindingTypeStats}.
+ * @param error Error, if any
+ * @param [response] ListFindingTypeStatsResponse
+ */
+ type ListFindingTypeStatsCallback = (error: (Error|null), response?: google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) => void;
+ }
+
+ /** Properties of a CreateScanConfigRequest. */
+ interface ICreateScanConfigRequest {
+
+ /** CreateScanConfigRequest parent */
+ parent?: (string|null);
+
+ /** CreateScanConfigRequest scanConfig */
+ scanConfig?: (google.cloud.websecurityscanner.v1beta.IScanConfig|null);
+ }
+
+ /** Represents a CreateScanConfigRequest. */
+ class CreateScanConfigRequest implements ICreateScanConfigRequest {
+
+ /**
+ * Constructs a new CreateScanConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.ICreateScanConfigRequest);
+
+ /** CreateScanConfigRequest parent. */
+ public parent: string;
+
+ /** CreateScanConfigRequest scanConfig. */
+ public scanConfig?: (google.cloud.websecurityscanner.v1beta.IScanConfig|null);
+
+ /**
+ * Creates a new CreateScanConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateScanConfigRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.ICreateScanConfigRequest): google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest;
+
+ /**
+ * Encodes the specified CreateScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.verify|verify} messages.
+ * @param message CreateScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.ICreateScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.verify|verify} messages.
+ * @param message CreateScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.ICreateScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateScanConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest;
+
+ /**
+ * Decodes a CreateScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest;
+
+ /**
+ * Verifies a CreateScanConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateScanConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest;
+
+ /**
+ * Creates a plain object from a CreateScanConfigRequest message. Also converts values to other types if specified.
+ * @param message CreateScanConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateScanConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateScanConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteScanConfigRequest. */
+ interface IDeleteScanConfigRequest {
+
+ /** DeleteScanConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteScanConfigRequest. */
+ class DeleteScanConfigRequest implements IDeleteScanConfigRequest {
+
+ /**
+ * Constructs a new DeleteScanConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IDeleteScanConfigRequest);
+
+ /** DeleteScanConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteScanConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteScanConfigRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IDeleteScanConfigRequest): google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest;
+
+ /**
+ * Encodes the specified DeleteScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.verify|verify} messages.
+ * @param message DeleteScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IDeleteScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.verify|verify} messages.
+ * @param message DeleteScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IDeleteScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteScanConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest;
+
+ /**
+ * Decodes a DeleteScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest;
+
+ /**
+ * Verifies a DeleteScanConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteScanConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest;
+
+ /**
+ * Creates a plain object from a DeleteScanConfigRequest message. Also converts values to other types if specified.
+ * @param message DeleteScanConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteScanConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteScanConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetScanConfigRequest. */
+ interface IGetScanConfigRequest {
+
+ /** GetScanConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetScanConfigRequest. */
+ class GetScanConfigRequest implements IGetScanConfigRequest {
+
+ /**
+ * Constructs a new GetScanConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IGetScanConfigRequest);
+
+ /** GetScanConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetScanConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetScanConfigRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IGetScanConfigRequest): google.cloud.websecurityscanner.v1beta.GetScanConfigRequest;
+
+ /**
+ * Encodes the specified GetScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.verify|verify} messages.
+ * @param message GetScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IGetScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.verify|verify} messages.
+ * @param message GetScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IGetScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetScanConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.GetScanConfigRequest;
+
+ /**
+ * Decodes a GetScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.GetScanConfigRequest;
+
+ /**
+ * Verifies a GetScanConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetScanConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.GetScanConfigRequest;
+
+ /**
+ * Creates a plain object from a GetScanConfigRequest message. Also converts values to other types if specified.
+ * @param message GetScanConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetScanConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetScanConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListScanConfigsRequest. */
+ interface IListScanConfigsRequest {
+
+ /** ListScanConfigsRequest parent */
+ parent?: (string|null);
+
+ /** ListScanConfigsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListScanConfigsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListScanConfigsRequest. */
+ class ListScanConfigsRequest implements IListScanConfigsRequest {
+
+ /**
+ * Constructs a new ListScanConfigsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IListScanConfigsRequest);
+
+ /** ListScanConfigsRequest parent. */
+ public parent: string;
+
+ /** ListScanConfigsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListScanConfigsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListScanConfigsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListScanConfigsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IListScanConfigsRequest): google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest;
+
+ /**
+ * Encodes the specified ListScanConfigsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.verify|verify} messages.
+ * @param message ListScanConfigsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IListScanConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListScanConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.verify|verify} messages.
+ * @param message ListScanConfigsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IListScanConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListScanConfigsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListScanConfigsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest;
+
+ /**
+ * Decodes a ListScanConfigsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListScanConfigsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest;
+
+ /**
+ * Verifies a ListScanConfigsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListScanConfigsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListScanConfigsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest;
+
+ /**
+ * Creates a plain object from a ListScanConfigsRequest message. Also converts values to other types if specified.
+ * @param message ListScanConfigsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListScanConfigsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListScanConfigsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateScanConfigRequest. */
+ interface IUpdateScanConfigRequest {
+
+ /** UpdateScanConfigRequest scanConfig */
+ scanConfig?: (google.cloud.websecurityscanner.v1beta.IScanConfig|null);
+
+ /** UpdateScanConfigRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateScanConfigRequest. */
+ class UpdateScanConfigRequest implements IUpdateScanConfigRequest {
+
+ /**
+ * Constructs a new UpdateScanConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IUpdateScanConfigRequest);
+
+ /** UpdateScanConfigRequest scanConfig. */
+ public scanConfig?: (google.cloud.websecurityscanner.v1beta.IScanConfig|null);
+
+ /** UpdateScanConfigRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateScanConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateScanConfigRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IUpdateScanConfigRequest): google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest;
+
+ /**
+ * Encodes the specified UpdateScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.verify|verify} messages.
+ * @param message UpdateScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IUpdateScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.verify|verify} messages.
+ * @param message UpdateScanConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IUpdateScanConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateScanConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest;
+
+ /**
+ * Decodes an UpdateScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest;
+
+ /**
+ * Verifies an UpdateScanConfigRequest message.
+ * @param message Plain 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 UpdateScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateScanConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest;
+
+ /**
+ * Creates a plain object from an UpdateScanConfigRequest message. Also converts values to other types if specified.
+ * @param message UpdateScanConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateScanConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateScanConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListScanConfigsResponse. */
+ interface IListScanConfigsResponse {
+
+ /** ListScanConfigsResponse scanConfigs */
+ scanConfigs?: (google.cloud.websecurityscanner.v1beta.IScanConfig[]|null);
+
+ /** ListScanConfigsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListScanConfigsResponse. */
+ class ListScanConfigsResponse implements IListScanConfigsResponse {
+
+ /**
+ * Constructs a new ListScanConfigsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IListScanConfigsResponse);
+
+ /** ListScanConfigsResponse scanConfigs. */
+ public scanConfigs: google.cloud.websecurityscanner.v1beta.IScanConfig[];
+
+ /** ListScanConfigsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListScanConfigsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListScanConfigsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IListScanConfigsResponse): google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse;
+
+ /**
+ * Encodes the specified ListScanConfigsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.verify|verify} messages.
+ * @param message ListScanConfigsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IListScanConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListScanConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.verify|verify} messages.
+ * @param message ListScanConfigsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IListScanConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListScanConfigsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListScanConfigsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse;
+
+ /**
+ * Decodes a ListScanConfigsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListScanConfigsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse;
+
+ /**
+ * Verifies a ListScanConfigsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListScanConfigsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListScanConfigsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse;
+
+ /**
+ * Creates a plain object from a ListScanConfigsResponse message. Also converts values to other types if specified.
+ * @param message ListScanConfigsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListScanConfigsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListScanConfigsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StartScanRunRequest. */
+ interface IStartScanRunRequest {
+
+ /** StartScanRunRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a StartScanRunRequest. */
+ class StartScanRunRequest implements IStartScanRunRequest {
+
+ /**
+ * Constructs a new StartScanRunRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IStartScanRunRequest);
+
+ /** StartScanRunRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new StartScanRunRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StartScanRunRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IStartScanRunRequest): google.cloud.websecurityscanner.v1beta.StartScanRunRequest;
+
+ /**
+ * Encodes the specified StartScanRunRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.StartScanRunRequest.verify|verify} messages.
+ * @param message StartScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IStartScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StartScanRunRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.StartScanRunRequest.verify|verify} messages.
+ * @param message StartScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IStartScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StartScanRunRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StartScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.StartScanRunRequest;
+
+ /**
+ * Decodes a StartScanRunRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StartScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.StartScanRunRequest;
+
+ /**
+ * Verifies a StartScanRunRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StartScanRunRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StartScanRunRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.StartScanRunRequest;
+
+ /**
+ * Creates a plain object from a StartScanRunRequest message. Also converts values to other types if specified.
+ * @param message StartScanRunRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.StartScanRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StartScanRunRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StartScanRunRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetScanRunRequest. */
+ interface IGetScanRunRequest {
+
+ /** GetScanRunRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetScanRunRequest. */
+ class GetScanRunRequest implements IGetScanRunRequest {
+
+ /**
+ * Constructs a new GetScanRunRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IGetScanRunRequest);
+
+ /** GetScanRunRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetScanRunRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetScanRunRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IGetScanRunRequest): google.cloud.websecurityscanner.v1beta.GetScanRunRequest;
+
+ /**
+ * Encodes the specified GetScanRunRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.GetScanRunRequest.verify|verify} messages.
+ * @param message GetScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IGetScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetScanRunRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.GetScanRunRequest.verify|verify} messages.
+ * @param message GetScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IGetScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetScanRunRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.GetScanRunRequest;
+
+ /**
+ * Decodes a GetScanRunRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.GetScanRunRequest;
+
+ /**
+ * Verifies a GetScanRunRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetScanRunRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetScanRunRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.GetScanRunRequest;
+
+ /**
+ * Creates a plain object from a GetScanRunRequest message. Also converts values to other types if specified.
+ * @param message GetScanRunRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.GetScanRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetScanRunRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetScanRunRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListScanRunsRequest. */
+ interface IListScanRunsRequest {
+
+ /** ListScanRunsRequest parent */
+ parent?: (string|null);
+
+ /** ListScanRunsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListScanRunsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListScanRunsRequest. */
+ class ListScanRunsRequest implements IListScanRunsRequest {
+
+ /**
+ * Constructs a new ListScanRunsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IListScanRunsRequest);
+
+ /** ListScanRunsRequest parent. */
+ public parent: string;
+
+ /** ListScanRunsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListScanRunsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListScanRunsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListScanRunsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IListScanRunsRequest): google.cloud.websecurityscanner.v1beta.ListScanRunsRequest;
+
+ /**
+ * Encodes the specified ListScanRunsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.verify|verify} messages.
+ * @param message ListScanRunsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IListScanRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListScanRunsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.verify|verify} messages.
+ * @param message ListScanRunsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IListScanRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListScanRunsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListScanRunsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ListScanRunsRequest;
+
+ /**
+ * Decodes a ListScanRunsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListScanRunsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ListScanRunsRequest;
+
+ /**
+ * Verifies a ListScanRunsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListScanRunsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListScanRunsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ListScanRunsRequest;
+
+ /**
+ * Creates a plain object from a ListScanRunsRequest message. Also converts values to other types if specified.
+ * @param message ListScanRunsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListScanRunsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListScanRunsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListScanRunsResponse. */
+ interface IListScanRunsResponse {
+
+ /** ListScanRunsResponse scanRuns */
+ scanRuns?: (google.cloud.websecurityscanner.v1beta.IScanRun[]|null);
+
+ /** ListScanRunsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListScanRunsResponse. */
+ class ListScanRunsResponse implements IListScanRunsResponse {
+
+ /**
+ * Constructs a new ListScanRunsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IListScanRunsResponse);
+
+ /** ListScanRunsResponse scanRuns. */
+ public scanRuns: google.cloud.websecurityscanner.v1beta.IScanRun[];
+
+ /** ListScanRunsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListScanRunsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListScanRunsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IListScanRunsResponse): google.cloud.websecurityscanner.v1beta.ListScanRunsResponse;
+
+ /**
+ * Encodes the specified ListScanRunsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.verify|verify} messages.
+ * @param message ListScanRunsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IListScanRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListScanRunsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.verify|verify} messages.
+ * @param message ListScanRunsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IListScanRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListScanRunsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListScanRunsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ListScanRunsResponse;
+
+ /**
+ * Decodes a ListScanRunsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListScanRunsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ListScanRunsResponse;
+
+ /**
+ * Verifies a ListScanRunsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListScanRunsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListScanRunsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ListScanRunsResponse;
+
+ /**
+ * Creates a plain object from a ListScanRunsResponse message. Also converts values to other types if specified.
+ * @param message ListScanRunsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ListScanRunsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListScanRunsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListScanRunsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StopScanRunRequest. */
+ interface IStopScanRunRequest {
+
+ /** StopScanRunRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a StopScanRunRequest. */
+ class StopScanRunRequest implements IStopScanRunRequest {
+
+ /**
+ * Constructs a new StopScanRunRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IStopScanRunRequest);
+
+ /** StopScanRunRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new StopScanRunRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StopScanRunRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IStopScanRunRequest): google.cloud.websecurityscanner.v1beta.StopScanRunRequest;
+
+ /**
+ * Encodes the specified StopScanRunRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.StopScanRunRequest.verify|verify} messages.
+ * @param message StopScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IStopScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StopScanRunRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.StopScanRunRequest.verify|verify} messages.
+ * @param message StopScanRunRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IStopScanRunRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StopScanRunRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StopScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.StopScanRunRequest;
+
+ /**
+ * Decodes a StopScanRunRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StopScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.StopScanRunRequest;
+
+ /**
+ * Verifies a StopScanRunRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StopScanRunRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StopScanRunRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.StopScanRunRequest;
+
+ /**
+ * Creates a plain object from a StopScanRunRequest message. Also converts values to other types if specified.
+ * @param message StopScanRunRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.StopScanRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StopScanRunRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StopScanRunRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCrawledUrlsRequest. */
+ interface IListCrawledUrlsRequest {
+
+ /** ListCrawledUrlsRequest parent */
+ parent?: (string|null);
+
+ /** ListCrawledUrlsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListCrawledUrlsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListCrawledUrlsRequest. */
+ class ListCrawledUrlsRequest implements IListCrawledUrlsRequest {
+
+ /**
+ * Constructs a new ListCrawledUrlsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IListCrawledUrlsRequest);
+
+ /** ListCrawledUrlsRequest parent. */
+ public parent: string;
+
+ /** ListCrawledUrlsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListCrawledUrlsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListCrawledUrlsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCrawledUrlsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IListCrawledUrlsRequest): google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest;
+
+ /**
+ * Encodes the specified ListCrawledUrlsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.verify|verify} messages.
+ * @param message ListCrawledUrlsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IListCrawledUrlsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCrawledUrlsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.verify|verify} messages.
+ * @param message ListCrawledUrlsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IListCrawledUrlsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCrawledUrlsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCrawledUrlsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest;
+
+ /**
+ * Decodes a ListCrawledUrlsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCrawledUrlsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest;
+
+ /**
+ * Verifies a ListCrawledUrlsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCrawledUrlsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCrawledUrlsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest;
+
+ /**
+ * Creates a plain object from a ListCrawledUrlsRequest message. Also converts values to other types if specified.
+ * @param message ListCrawledUrlsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCrawledUrlsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCrawledUrlsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCrawledUrlsResponse. */
+ interface IListCrawledUrlsResponse {
+
+ /** ListCrawledUrlsResponse crawledUrls */
+ crawledUrls?: (google.cloud.websecurityscanner.v1beta.ICrawledUrl[]|null);
+
+ /** ListCrawledUrlsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListCrawledUrlsResponse. */
+ class ListCrawledUrlsResponse implements IListCrawledUrlsResponse {
+
+ /**
+ * Constructs a new ListCrawledUrlsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IListCrawledUrlsResponse);
+
+ /** ListCrawledUrlsResponse crawledUrls. */
+ public crawledUrls: google.cloud.websecurityscanner.v1beta.ICrawledUrl[];
+
+ /** ListCrawledUrlsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListCrawledUrlsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCrawledUrlsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IListCrawledUrlsResponse): google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse;
+
+ /**
+ * Encodes the specified ListCrawledUrlsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.verify|verify} messages.
+ * @param message ListCrawledUrlsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IListCrawledUrlsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCrawledUrlsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.verify|verify} messages.
+ * @param message ListCrawledUrlsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IListCrawledUrlsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCrawledUrlsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCrawledUrlsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse;
+
+ /**
+ * Decodes a ListCrawledUrlsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCrawledUrlsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse;
+
+ /**
+ * Verifies a ListCrawledUrlsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCrawledUrlsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCrawledUrlsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse;
+
+ /**
+ * Creates a plain object from a ListCrawledUrlsResponse message. Also converts values to other types if specified.
+ * @param message ListCrawledUrlsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCrawledUrlsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCrawledUrlsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetFindingRequest. */
+ interface IGetFindingRequest {
+
+ /** GetFindingRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetFindingRequest. */
+ class GetFindingRequest implements IGetFindingRequest {
+
+ /**
+ * Constructs a new GetFindingRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IGetFindingRequest);
+
+ /** GetFindingRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetFindingRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetFindingRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IGetFindingRequest): google.cloud.websecurityscanner.v1beta.GetFindingRequest;
+
+ /**
+ * Encodes the specified GetFindingRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.GetFindingRequest.verify|verify} messages.
+ * @param message GetFindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IGetFindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetFindingRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.GetFindingRequest.verify|verify} messages.
+ * @param message GetFindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IGetFindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetFindingRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetFindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.GetFindingRequest;
+
+ /**
+ * Decodes a GetFindingRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetFindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.GetFindingRequest;
+
+ /**
+ * Verifies a GetFindingRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetFindingRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetFindingRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.GetFindingRequest;
+
+ /**
+ * Creates a plain object from a GetFindingRequest message. Also converts values to other types if specified.
+ * @param message GetFindingRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.GetFindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetFindingRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetFindingRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFindingsRequest. */
+ interface IListFindingsRequest {
+
+ /** ListFindingsRequest parent */
+ parent?: (string|null);
+
+ /** ListFindingsRequest filter */
+ filter?: (string|null);
+
+ /** ListFindingsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListFindingsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListFindingsRequest. */
+ class ListFindingsRequest implements IListFindingsRequest {
+
+ /**
+ * Constructs a new ListFindingsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IListFindingsRequest);
+
+ /** ListFindingsRequest parent. */
+ public parent: string;
+
+ /** ListFindingsRequest filter. */
+ public filter: string;
+
+ /** ListFindingsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListFindingsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListFindingsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFindingsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IListFindingsRequest): google.cloud.websecurityscanner.v1beta.ListFindingsRequest;
+
+ /**
+ * Encodes the specified ListFindingsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListFindingsRequest.verify|verify} messages.
+ * @param message ListFindingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IListFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFindingsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListFindingsRequest.verify|verify} messages.
+ * @param message ListFindingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IListFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFindingsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFindingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ListFindingsRequest;
+
+ /**
+ * Decodes a ListFindingsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFindingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ListFindingsRequest;
+
+ /**
+ * Verifies a ListFindingsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFindingsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFindingsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ListFindingsRequest;
+
+ /**
+ * Creates a plain object from a ListFindingsRequest message. Also converts values to other types if specified.
+ * @param message ListFindingsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ListFindingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFindingsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFindingsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFindingsResponse. */
+ interface IListFindingsResponse {
+
+ /** ListFindingsResponse findings */
+ findings?: (google.cloud.websecurityscanner.v1beta.IFinding[]|null);
+
+ /** ListFindingsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListFindingsResponse. */
+ class ListFindingsResponse implements IListFindingsResponse {
+
+ /**
+ * Constructs a new ListFindingsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IListFindingsResponse);
+
+ /** ListFindingsResponse findings. */
+ public findings: google.cloud.websecurityscanner.v1beta.IFinding[];
+
+ /** ListFindingsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListFindingsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFindingsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IListFindingsResponse): google.cloud.websecurityscanner.v1beta.ListFindingsResponse;
+
+ /**
+ * Encodes the specified ListFindingsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListFindingsResponse.verify|verify} messages.
+ * @param message ListFindingsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IListFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFindingsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListFindingsResponse.verify|verify} messages.
+ * @param message ListFindingsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IListFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFindingsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFindingsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ListFindingsResponse;
+
+ /**
+ * Decodes a ListFindingsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFindingsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ListFindingsResponse;
+
+ /**
+ * Verifies a ListFindingsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFindingsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFindingsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ListFindingsResponse;
+
+ /**
+ * Creates a plain object from a ListFindingsResponse message. Also converts values to other types if specified.
+ * @param message ListFindingsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ListFindingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFindingsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFindingsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFindingTypeStatsRequest. */
+ interface IListFindingTypeStatsRequest {
+
+ /** ListFindingTypeStatsRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a ListFindingTypeStatsRequest. */
+ class ListFindingTypeStatsRequest implements IListFindingTypeStatsRequest {
+
+ /**
+ * Constructs a new ListFindingTypeStatsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IListFindingTypeStatsRequest);
+
+ /** ListFindingTypeStatsRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new ListFindingTypeStatsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFindingTypeStatsRequest instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IListFindingTypeStatsRequest): google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest;
+
+ /**
+ * Encodes the specified ListFindingTypeStatsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.verify|verify} messages.
+ * @param message ListFindingTypeStatsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IListFindingTypeStatsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFindingTypeStatsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.verify|verify} messages.
+ * @param message ListFindingTypeStatsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IListFindingTypeStatsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFindingTypeStatsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFindingTypeStatsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest;
+
+ /**
+ * Decodes a ListFindingTypeStatsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFindingTypeStatsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest;
+
+ /**
+ * Verifies a ListFindingTypeStatsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFindingTypeStatsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFindingTypeStatsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest;
+
+ /**
+ * Creates a plain object from a ListFindingTypeStatsRequest message. Also converts values to other types if specified.
+ * @param message ListFindingTypeStatsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFindingTypeStatsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFindingTypeStatsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFindingTypeStatsResponse. */
+ interface IListFindingTypeStatsResponse {
+
+ /** ListFindingTypeStatsResponse findingTypeStats */
+ findingTypeStats?: (google.cloud.websecurityscanner.v1beta.IFindingTypeStats[]|null);
+ }
+
+ /** Represents a ListFindingTypeStatsResponse. */
+ class ListFindingTypeStatsResponse implements IListFindingTypeStatsResponse {
+
+ /**
+ * Constructs a new ListFindingTypeStatsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.websecurityscanner.v1beta.IListFindingTypeStatsResponse);
+
+ /** ListFindingTypeStatsResponse findingTypeStats. */
+ public findingTypeStats: google.cloud.websecurityscanner.v1beta.IFindingTypeStats[];
+
+ /**
+ * Creates a new ListFindingTypeStatsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFindingTypeStatsResponse instance
+ */
+ public static create(properties?: google.cloud.websecurityscanner.v1beta.IListFindingTypeStatsResponse): google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse;
+
+ /**
+ * Encodes the specified ListFindingTypeStatsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.verify|verify} messages.
+ * @param message ListFindingTypeStatsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.websecurityscanner.v1beta.IListFindingTypeStatsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFindingTypeStatsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.verify|verify} messages.
+ * @param message ListFindingTypeStatsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.websecurityscanner.v1beta.IListFindingTypeStatsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFindingTypeStatsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFindingTypeStatsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse;
+
+ /**
+ * Decodes a ListFindingTypeStatsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFindingTypeStatsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse;
+
+ /**
+ * Verifies a ListFindingTypeStatsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFindingTypeStatsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFindingTypeStatsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse;
+
+ /**
+ * Creates a plain object from a ListFindingTypeStatsResponse message. Also converts values to other types if specified.
+ * @param message ListFindingTypeStatsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFindingTypeStatsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFindingTypeStatsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (string|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: string;
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REQUIRED = 2,
+ LABEL_REPEATED = 3
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions phpGenericServices */
+ phpGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions phpGenericServices. */
+ public phpGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-websecurityscanner/protos/protos.js b/packages/google-cloud-websecurityscanner/protos/protos.js
new file mode 100644
index 00000000000..c1c663e51f7
--- /dev/null
+++ b/packages/google-cloud-websecurityscanner/protos/protos.js
@@ -0,0 +1,43992 @@
+// 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_web_security_scanner_protos || ($protobuf.roots._google_cloud_web_security_scanner_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.websecurityscanner = (function() {
+
+ /**
+ * Namespace websecurityscanner.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var websecurityscanner = {};
+
+ websecurityscanner.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.websecurityscanner
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.CrawledUrl = (function() {
+
+ /**
+ * Properties of a CrawledUrl.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface ICrawledUrl
+ * @property {string|null} [httpMethod] CrawledUrl httpMethod
+ * @property {string|null} [url] CrawledUrl url
+ * @property {string|null} [body] CrawledUrl body
+ */
+
+ /**
+ * Constructs a new CrawledUrl.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a CrawledUrl.
+ * @implements ICrawledUrl
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.ICrawledUrl=} [properties] Properties to set
+ */
+ function CrawledUrl(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]];
+ }
+
+ /**
+ * CrawledUrl httpMethod.
+ * @member {string} httpMethod
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @instance
+ */
+ CrawledUrl.prototype.httpMethod = "";
+
+ /**
+ * CrawledUrl url.
+ * @member {string} url
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @instance
+ */
+ CrawledUrl.prototype.url = "";
+
+ /**
+ * CrawledUrl body.
+ * @member {string} body
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @instance
+ */
+ CrawledUrl.prototype.body = "";
+
+ /**
+ * Creates a new CrawledUrl instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ICrawledUrl=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.CrawledUrl} CrawledUrl instance
+ */
+ CrawledUrl.create = function create(properties) {
+ return new CrawledUrl(properties);
+ };
+
+ /**
+ * Encodes the specified CrawledUrl message. Does not implicitly {@link google.cloud.websecurityscanner.v1.CrawledUrl.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ICrawledUrl} message CrawledUrl message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CrawledUrl.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.httpMethod != null && Object.hasOwnProperty.call(message, "httpMethod"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.httpMethod);
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
+ if (message.body != null && Object.hasOwnProperty.call(message, "body"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.body);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CrawledUrl message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.CrawledUrl.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ICrawledUrl} message CrawledUrl message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CrawledUrl.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CrawledUrl message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.CrawledUrl} CrawledUrl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CrawledUrl.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.websecurityscanner.v1.CrawledUrl();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.httpMethod = reader.string();
+ break;
+ }
+ case 2: {
+ message.url = reader.string();
+ break;
+ }
+ case 3: {
+ message.body = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CrawledUrl message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.CrawledUrl} CrawledUrl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CrawledUrl.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CrawledUrl message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CrawledUrl.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.httpMethod != null && message.hasOwnProperty("httpMethod"))
+ if (!$util.isString(message.httpMethod))
+ return "httpMethod: string expected";
+ if (message.url != null && message.hasOwnProperty("url"))
+ if (!$util.isString(message.url))
+ return "url: string expected";
+ if (message.body != null && message.hasOwnProperty("body"))
+ if (!$util.isString(message.body))
+ return "body: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CrawledUrl message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.CrawledUrl} CrawledUrl
+ */
+ CrawledUrl.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.CrawledUrl)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.CrawledUrl();
+ if (object.httpMethod != null)
+ message.httpMethod = String(object.httpMethod);
+ if (object.url != null)
+ message.url = String(object.url);
+ if (object.body != null)
+ message.body = String(object.body);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CrawledUrl message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.CrawledUrl} message CrawledUrl
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CrawledUrl.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.httpMethod = "";
+ object.url = "";
+ object.body = "";
+ }
+ if (message.httpMethod != null && message.hasOwnProperty("httpMethod"))
+ object.httpMethod = message.httpMethod;
+ if (message.url != null && message.hasOwnProperty("url"))
+ object.url = message.url;
+ if (message.body != null && message.hasOwnProperty("body"))
+ object.body = message.body;
+ return object;
+ };
+
+ /**
+ * Converts this CrawledUrl to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CrawledUrl.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CrawledUrl
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.CrawledUrl
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CrawledUrl.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.CrawledUrl";
+ };
+
+ return CrawledUrl;
+ })();
+
+ v1.Finding = (function() {
+
+ /**
+ * Properties of a Finding.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IFinding
+ * @property {string|null} [name] Finding name
+ * @property {string|null} [findingType] Finding findingType
+ * @property {google.cloud.websecurityscanner.v1.Finding.Severity|null} [severity] Finding severity
+ * @property {string|null} [httpMethod] Finding httpMethod
+ * @property {string|null} [fuzzedUrl] Finding fuzzedUrl
+ * @property {string|null} [body] Finding body
+ * @property {string|null} [description] Finding description
+ * @property {string|null} [reproductionUrl] Finding reproductionUrl
+ * @property {string|null} [frameUrl] Finding frameUrl
+ * @property {string|null} [finalUrl] Finding finalUrl
+ * @property {string|null} [trackingId] Finding trackingId
+ * @property {google.cloud.websecurityscanner.v1.IForm|null} [form] Finding form
+ * @property {google.cloud.websecurityscanner.v1.IOutdatedLibrary|null} [outdatedLibrary] Finding outdatedLibrary
+ * @property {google.cloud.websecurityscanner.v1.IViolatingResource|null} [violatingResource] Finding violatingResource
+ * @property {google.cloud.websecurityscanner.v1.IVulnerableHeaders|null} [vulnerableHeaders] Finding vulnerableHeaders
+ * @property {google.cloud.websecurityscanner.v1.IVulnerableParameters|null} [vulnerableParameters] Finding vulnerableParameters
+ * @property {google.cloud.websecurityscanner.v1.IXss|null} [xss] Finding xss
+ * @property {google.cloud.websecurityscanner.v1.IXxe|null} [xxe] Finding xxe
+ */
+
+ /**
+ * Constructs a new Finding.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a Finding.
+ * @implements IFinding
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IFinding=} [properties] Properties to set
+ */
+ function Finding(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]];
+ }
+
+ /**
+ * Finding name.
+ * @member {string} name
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.name = "";
+
+ /**
+ * Finding findingType.
+ * @member {string} findingType
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.findingType = "";
+
+ /**
+ * Finding severity.
+ * @member {google.cloud.websecurityscanner.v1.Finding.Severity} severity
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.severity = 0;
+
+ /**
+ * Finding httpMethod.
+ * @member {string} httpMethod
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.httpMethod = "";
+
+ /**
+ * Finding fuzzedUrl.
+ * @member {string} fuzzedUrl
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.fuzzedUrl = "";
+
+ /**
+ * Finding body.
+ * @member {string} body
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.body = "";
+
+ /**
+ * Finding description.
+ * @member {string} description
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.description = "";
+
+ /**
+ * Finding reproductionUrl.
+ * @member {string} reproductionUrl
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.reproductionUrl = "";
+
+ /**
+ * Finding frameUrl.
+ * @member {string} frameUrl
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.frameUrl = "";
+
+ /**
+ * Finding finalUrl.
+ * @member {string} finalUrl
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.finalUrl = "";
+
+ /**
+ * Finding trackingId.
+ * @member {string} trackingId
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.trackingId = "";
+
+ /**
+ * Finding form.
+ * @member {google.cloud.websecurityscanner.v1.IForm|null|undefined} form
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.form = null;
+
+ /**
+ * Finding outdatedLibrary.
+ * @member {google.cloud.websecurityscanner.v1.IOutdatedLibrary|null|undefined} outdatedLibrary
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.outdatedLibrary = null;
+
+ /**
+ * Finding violatingResource.
+ * @member {google.cloud.websecurityscanner.v1.IViolatingResource|null|undefined} violatingResource
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.violatingResource = null;
+
+ /**
+ * Finding vulnerableHeaders.
+ * @member {google.cloud.websecurityscanner.v1.IVulnerableHeaders|null|undefined} vulnerableHeaders
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.vulnerableHeaders = null;
+
+ /**
+ * Finding vulnerableParameters.
+ * @member {google.cloud.websecurityscanner.v1.IVulnerableParameters|null|undefined} vulnerableParameters
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.vulnerableParameters = null;
+
+ /**
+ * Finding xss.
+ * @member {google.cloud.websecurityscanner.v1.IXss|null|undefined} xss
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.xss = null;
+
+ /**
+ * Finding xxe.
+ * @member {google.cloud.websecurityscanner.v1.IXxe|null|undefined} xxe
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ */
+ Finding.prototype.xxe = null;
+
+ /**
+ * Creates a new Finding instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IFinding=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.Finding} Finding instance
+ */
+ Finding.create = function create(properties) {
+ return new Finding(properties);
+ };
+
+ /**
+ * Encodes the specified Finding message. Does not implicitly {@link google.cloud.websecurityscanner.v1.Finding.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IFinding} message Finding message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Finding.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.findingType != null && Object.hasOwnProperty.call(message, "findingType"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.findingType);
+ if (message.httpMethod != null && Object.hasOwnProperty.call(message, "httpMethod"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.httpMethod);
+ if (message.fuzzedUrl != null && Object.hasOwnProperty.call(message, "fuzzedUrl"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.fuzzedUrl);
+ if (message.body != null && Object.hasOwnProperty.call(message, "body"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.body);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.description);
+ if (message.reproductionUrl != null && Object.hasOwnProperty.call(message, "reproductionUrl"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.reproductionUrl);
+ if (message.frameUrl != null && Object.hasOwnProperty.call(message, "frameUrl"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.frameUrl);
+ if (message.finalUrl != null && Object.hasOwnProperty.call(message, "finalUrl"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.finalUrl);
+ if (message.trackingId != null && Object.hasOwnProperty.call(message, "trackingId"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.trackingId);
+ if (message.outdatedLibrary != null && Object.hasOwnProperty.call(message, "outdatedLibrary"))
+ $root.google.cloud.websecurityscanner.v1.OutdatedLibrary.encode(message.outdatedLibrary, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.violatingResource != null && Object.hasOwnProperty.call(message, "violatingResource"))
+ $root.google.cloud.websecurityscanner.v1.ViolatingResource.encode(message.violatingResource, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
+ if (message.vulnerableParameters != null && Object.hasOwnProperty.call(message, "vulnerableParameters"))
+ $root.google.cloud.websecurityscanner.v1.VulnerableParameters.encode(message.vulnerableParameters, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
+ if (message.xss != null && Object.hasOwnProperty.call(message, "xss"))
+ $root.google.cloud.websecurityscanner.v1.Xss.encode(message.xss, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
+ if (message.vulnerableHeaders != null && Object.hasOwnProperty.call(message, "vulnerableHeaders"))
+ $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.encode(message.vulnerableHeaders, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
+ if (message.form != null && Object.hasOwnProperty.call(message, "form"))
+ $root.google.cloud.websecurityscanner.v1.Form.encode(message.form, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
+ if (message.severity != null && Object.hasOwnProperty.call(message, "severity"))
+ writer.uint32(/* id 17, wireType 0 =*/136).int32(message.severity);
+ if (message.xxe != null && Object.hasOwnProperty.call(message, "xxe"))
+ $root.google.cloud.websecurityscanner.v1.Xxe.encode(message.xxe, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Finding message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.Finding.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IFinding} message Finding message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Finding.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Finding message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.Finding} Finding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Finding.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.websecurityscanner.v1.Finding();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.findingType = reader.string();
+ break;
+ }
+ case 17: {
+ message.severity = reader.int32();
+ break;
+ }
+ case 3: {
+ message.httpMethod = reader.string();
+ break;
+ }
+ case 4: {
+ message.fuzzedUrl = reader.string();
+ break;
+ }
+ case 5: {
+ message.body = reader.string();
+ break;
+ }
+ case 6: {
+ message.description = reader.string();
+ break;
+ }
+ case 7: {
+ message.reproductionUrl = reader.string();
+ break;
+ }
+ case 8: {
+ message.frameUrl = reader.string();
+ break;
+ }
+ case 9: {
+ message.finalUrl = reader.string();
+ break;
+ }
+ case 10: {
+ message.trackingId = reader.string();
+ break;
+ }
+ case 16: {
+ message.form = $root.google.cloud.websecurityscanner.v1.Form.decode(reader, reader.uint32());
+ break;
+ }
+ case 11: {
+ message.outdatedLibrary = $root.google.cloud.websecurityscanner.v1.OutdatedLibrary.decode(reader, reader.uint32());
+ break;
+ }
+ case 12: {
+ message.violatingResource = $root.google.cloud.websecurityscanner.v1.ViolatingResource.decode(reader, reader.uint32());
+ break;
+ }
+ case 15: {
+ message.vulnerableHeaders = $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.decode(reader, reader.uint32());
+ break;
+ }
+ case 13: {
+ message.vulnerableParameters = $root.google.cloud.websecurityscanner.v1.VulnerableParameters.decode(reader, reader.uint32());
+ break;
+ }
+ case 14: {
+ message.xss = $root.google.cloud.websecurityscanner.v1.Xss.decode(reader, reader.uint32());
+ break;
+ }
+ case 18: {
+ message.xxe = $root.google.cloud.websecurityscanner.v1.Xxe.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Finding message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.Finding} Finding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Finding.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Finding message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Finding.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.findingType != null && message.hasOwnProperty("findingType"))
+ if (!$util.isString(message.findingType))
+ return "findingType: string expected";
+ if (message.severity != null && message.hasOwnProperty("severity"))
+ switch (message.severity) {
+ default:
+ return "severity: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.httpMethod != null && message.hasOwnProperty("httpMethod"))
+ if (!$util.isString(message.httpMethod))
+ return "httpMethod: string expected";
+ if (message.fuzzedUrl != null && message.hasOwnProperty("fuzzedUrl"))
+ if (!$util.isString(message.fuzzedUrl))
+ return "fuzzedUrl: string expected";
+ if (message.body != null && message.hasOwnProperty("body"))
+ if (!$util.isString(message.body))
+ return "body: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.reproductionUrl != null && message.hasOwnProperty("reproductionUrl"))
+ if (!$util.isString(message.reproductionUrl))
+ return "reproductionUrl: string expected";
+ if (message.frameUrl != null && message.hasOwnProperty("frameUrl"))
+ if (!$util.isString(message.frameUrl))
+ return "frameUrl: string expected";
+ if (message.finalUrl != null && message.hasOwnProperty("finalUrl"))
+ if (!$util.isString(message.finalUrl))
+ return "finalUrl: string expected";
+ if (message.trackingId != null && message.hasOwnProperty("trackingId"))
+ if (!$util.isString(message.trackingId))
+ return "trackingId: string expected";
+ if (message.form != null && message.hasOwnProperty("form")) {
+ var error = $root.google.cloud.websecurityscanner.v1.Form.verify(message.form);
+ if (error)
+ return "form." + error;
+ }
+ if (message.outdatedLibrary != null && message.hasOwnProperty("outdatedLibrary")) {
+ var error = $root.google.cloud.websecurityscanner.v1.OutdatedLibrary.verify(message.outdatedLibrary);
+ if (error)
+ return "outdatedLibrary." + error;
+ }
+ if (message.violatingResource != null && message.hasOwnProperty("violatingResource")) {
+ var error = $root.google.cloud.websecurityscanner.v1.ViolatingResource.verify(message.violatingResource);
+ if (error)
+ return "violatingResource." + error;
+ }
+ if (message.vulnerableHeaders != null && message.hasOwnProperty("vulnerableHeaders")) {
+ var error = $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.verify(message.vulnerableHeaders);
+ if (error)
+ return "vulnerableHeaders." + error;
+ }
+ if (message.vulnerableParameters != null && message.hasOwnProperty("vulnerableParameters")) {
+ var error = $root.google.cloud.websecurityscanner.v1.VulnerableParameters.verify(message.vulnerableParameters);
+ if (error)
+ return "vulnerableParameters." + error;
+ }
+ if (message.xss != null && message.hasOwnProperty("xss")) {
+ var error = $root.google.cloud.websecurityscanner.v1.Xss.verify(message.xss);
+ if (error)
+ return "xss." + error;
+ }
+ if (message.xxe != null && message.hasOwnProperty("xxe")) {
+ var error = $root.google.cloud.websecurityscanner.v1.Xxe.verify(message.xxe);
+ if (error)
+ return "xxe." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Finding message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.Finding} Finding
+ */
+ Finding.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.Finding)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.Finding();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.findingType != null)
+ message.findingType = String(object.findingType);
+ switch (object.severity) {
+ default:
+ if (typeof object.severity === "number") {
+ message.severity = object.severity;
+ break;
+ }
+ break;
+ case "SEVERITY_UNSPECIFIED":
+ case 0:
+ message.severity = 0;
+ break;
+ case "CRITICAL":
+ case 1:
+ message.severity = 1;
+ break;
+ case "HIGH":
+ case 2:
+ message.severity = 2;
+ break;
+ case "MEDIUM":
+ case 3:
+ message.severity = 3;
+ break;
+ case "LOW":
+ case 4:
+ message.severity = 4;
+ break;
+ }
+ if (object.httpMethod != null)
+ message.httpMethod = String(object.httpMethod);
+ if (object.fuzzedUrl != null)
+ message.fuzzedUrl = String(object.fuzzedUrl);
+ if (object.body != null)
+ message.body = String(object.body);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.reproductionUrl != null)
+ message.reproductionUrl = String(object.reproductionUrl);
+ if (object.frameUrl != null)
+ message.frameUrl = String(object.frameUrl);
+ if (object.finalUrl != null)
+ message.finalUrl = String(object.finalUrl);
+ if (object.trackingId != null)
+ message.trackingId = String(object.trackingId);
+ if (object.form != null) {
+ if (typeof object.form !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.Finding.form: object expected");
+ message.form = $root.google.cloud.websecurityscanner.v1.Form.fromObject(object.form);
+ }
+ if (object.outdatedLibrary != null) {
+ if (typeof object.outdatedLibrary !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.Finding.outdatedLibrary: object expected");
+ message.outdatedLibrary = $root.google.cloud.websecurityscanner.v1.OutdatedLibrary.fromObject(object.outdatedLibrary);
+ }
+ if (object.violatingResource != null) {
+ if (typeof object.violatingResource !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.Finding.violatingResource: object expected");
+ message.violatingResource = $root.google.cloud.websecurityscanner.v1.ViolatingResource.fromObject(object.violatingResource);
+ }
+ if (object.vulnerableHeaders != null) {
+ if (typeof object.vulnerableHeaders !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.Finding.vulnerableHeaders: object expected");
+ message.vulnerableHeaders = $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.fromObject(object.vulnerableHeaders);
+ }
+ if (object.vulnerableParameters != null) {
+ if (typeof object.vulnerableParameters !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.Finding.vulnerableParameters: object expected");
+ message.vulnerableParameters = $root.google.cloud.websecurityscanner.v1.VulnerableParameters.fromObject(object.vulnerableParameters);
+ }
+ if (object.xss != null) {
+ if (typeof object.xss !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.Finding.xss: object expected");
+ message.xss = $root.google.cloud.websecurityscanner.v1.Xss.fromObject(object.xss);
+ }
+ if (object.xxe != null) {
+ if (typeof object.xxe !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.Finding.xxe: object expected");
+ message.xxe = $root.google.cloud.websecurityscanner.v1.Xxe.fromObject(object.xxe);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Finding message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.Finding} message Finding
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Finding.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.findingType = "";
+ object.httpMethod = "";
+ object.fuzzedUrl = "";
+ object.body = "";
+ object.description = "";
+ object.reproductionUrl = "";
+ object.frameUrl = "";
+ object.finalUrl = "";
+ object.trackingId = "";
+ object.outdatedLibrary = null;
+ object.violatingResource = null;
+ object.vulnerableParameters = null;
+ object.xss = null;
+ object.vulnerableHeaders = null;
+ object.form = null;
+ object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0;
+ object.xxe = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.findingType != null && message.hasOwnProperty("findingType"))
+ object.findingType = message.findingType;
+ if (message.httpMethod != null && message.hasOwnProperty("httpMethod"))
+ object.httpMethod = message.httpMethod;
+ if (message.fuzzedUrl != null && message.hasOwnProperty("fuzzedUrl"))
+ object.fuzzedUrl = message.fuzzedUrl;
+ if (message.body != null && message.hasOwnProperty("body"))
+ object.body = message.body;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.reproductionUrl != null && message.hasOwnProperty("reproductionUrl"))
+ object.reproductionUrl = message.reproductionUrl;
+ if (message.frameUrl != null && message.hasOwnProperty("frameUrl"))
+ object.frameUrl = message.frameUrl;
+ if (message.finalUrl != null && message.hasOwnProperty("finalUrl"))
+ object.finalUrl = message.finalUrl;
+ if (message.trackingId != null && message.hasOwnProperty("trackingId"))
+ object.trackingId = message.trackingId;
+ if (message.outdatedLibrary != null && message.hasOwnProperty("outdatedLibrary"))
+ object.outdatedLibrary = $root.google.cloud.websecurityscanner.v1.OutdatedLibrary.toObject(message.outdatedLibrary, options);
+ if (message.violatingResource != null && message.hasOwnProperty("violatingResource"))
+ object.violatingResource = $root.google.cloud.websecurityscanner.v1.ViolatingResource.toObject(message.violatingResource, options);
+ if (message.vulnerableParameters != null && message.hasOwnProperty("vulnerableParameters"))
+ object.vulnerableParameters = $root.google.cloud.websecurityscanner.v1.VulnerableParameters.toObject(message.vulnerableParameters, options);
+ if (message.xss != null && message.hasOwnProperty("xss"))
+ object.xss = $root.google.cloud.websecurityscanner.v1.Xss.toObject(message.xss, options);
+ if (message.vulnerableHeaders != null && message.hasOwnProperty("vulnerableHeaders"))
+ object.vulnerableHeaders = $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.toObject(message.vulnerableHeaders, options);
+ if (message.form != null && message.hasOwnProperty("form"))
+ object.form = $root.google.cloud.websecurityscanner.v1.Form.toObject(message.form, options);
+ if (message.severity != null && message.hasOwnProperty("severity"))
+ object.severity = options.enums === String ? $root.google.cloud.websecurityscanner.v1.Finding.Severity[message.severity] === undefined ? message.severity : $root.google.cloud.websecurityscanner.v1.Finding.Severity[message.severity] : message.severity;
+ if (message.xxe != null && message.hasOwnProperty("xxe"))
+ object.xxe = $root.google.cloud.websecurityscanner.v1.Xxe.toObject(message.xxe, options);
+ return object;
+ };
+
+ /**
+ * Converts this Finding to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Finding.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Finding
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.Finding
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Finding.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.Finding";
+ };
+
+ /**
+ * Severity enum.
+ * @name google.cloud.websecurityscanner.v1.Finding.Severity
+ * @enum {number}
+ * @property {number} SEVERITY_UNSPECIFIED=0 SEVERITY_UNSPECIFIED value
+ * @property {number} CRITICAL=1 CRITICAL value
+ * @property {number} HIGH=2 HIGH value
+ * @property {number} MEDIUM=3 MEDIUM value
+ * @property {number} LOW=4 LOW value
+ */
+ Finding.Severity = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "SEVERITY_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CRITICAL"] = 1;
+ values[valuesById[2] = "HIGH"] = 2;
+ values[valuesById[3] = "MEDIUM"] = 3;
+ values[valuesById[4] = "LOW"] = 4;
+ return values;
+ })();
+
+ return Finding;
+ })();
+
+ v1.Form = (function() {
+
+ /**
+ * Properties of a Form.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IForm
+ * @property {string|null} [actionUri] Form actionUri
+ * @property {Array.|null} [fields] Form fields
+ */
+
+ /**
+ * Constructs a new Form.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a Form.
+ * @implements IForm
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IForm=} [properties] Properties to set
+ */
+ function Form(properties) {
+ this.fields = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Form actionUri.
+ * @member {string} actionUri
+ * @memberof google.cloud.websecurityscanner.v1.Form
+ * @instance
+ */
+ Form.prototype.actionUri = "";
+
+ /**
+ * Form fields.
+ * @member {Array.} fields
+ * @memberof google.cloud.websecurityscanner.v1.Form
+ * @instance
+ */
+ Form.prototype.fields = $util.emptyArray;
+
+ /**
+ * Creates a new Form instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.Form
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IForm=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.Form} Form instance
+ */
+ Form.create = function create(properties) {
+ return new Form(properties);
+ };
+
+ /**
+ * Encodes the specified Form message. Does not implicitly {@link google.cloud.websecurityscanner.v1.Form.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.Form
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IForm} message Form message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Form.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.actionUri != null && Object.hasOwnProperty.call(message, "actionUri"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.actionUri);
+ if (message.fields != null && message.fields.length)
+ for (var i = 0; i < message.fields.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.fields[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.Form.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.Form
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IForm} message Form message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Form.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Form message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.Form
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.Form} Form
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Form.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.websecurityscanner.v1.Form();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.actionUri = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.fields && message.fields.length))
+ message.fields = [];
+ message.fields.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Form message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.Form
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.Form} Form
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Form.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Form message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.Form
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Form.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.actionUri != null && message.hasOwnProperty("actionUri"))
+ if (!$util.isString(message.actionUri))
+ return "actionUri: string expected";
+ if (message.fields != null && message.hasOwnProperty("fields")) {
+ if (!Array.isArray(message.fields))
+ return "fields: array expected";
+ for (var i = 0; i < message.fields.length; ++i)
+ if (!$util.isString(message.fields[i]))
+ return "fields: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Form message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.Form
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.Form} Form
+ */
+ Form.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.Form)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.Form();
+ if (object.actionUri != null)
+ message.actionUri = String(object.actionUri);
+ if (object.fields) {
+ if (!Array.isArray(object.fields))
+ throw TypeError(".google.cloud.websecurityscanner.v1.Form.fields: array expected");
+ message.fields = [];
+ for (var i = 0; i < object.fields.length; ++i)
+ message.fields[i] = String(object.fields[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Form message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.Form
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.Form} message Form
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Form.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.fields = [];
+ if (options.defaults)
+ object.actionUri = "";
+ if (message.actionUri != null && message.hasOwnProperty("actionUri"))
+ object.actionUri = message.actionUri;
+ if (message.fields && message.fields.length) {
+ object.fields = [];
+ for (var j = 0; j < message.fields.length; ++j)
+ object.fields[j] = message.fields[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Form to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.Form
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Form.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Form
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.Form
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Form.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.Form";
+ };
+
+ return Form;
+ })();
+
+ v1.OutdatedLibrary = (function() {
+
+ /**
+ * Properties of an OutdatedLibrary.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IOutdatedLibrary
+ * @property {string|null} [libraryName] OutdatedLibrary libraryName
+ * @property {string|null} [version] OutdatedLibrary version
+ * @property {Array.|null} [learnMoreUrls] OutdatedLibrary learnMoreUrls
+ */
+
+ /**
+ * Constructs a new OutdatedLibrary.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents an OutdatedLibrary.
+ * @implements IOutdatedLibrary
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IOutdatedLibrary=} [properties] Properties to set
+ */
+ function OutdatedLibrary(properties) {
+ this.learnMoreUrls = [];
+ 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]];
+ }
+
+ /**
+ * OutdatedLibrary libraryName.
+ * @member {string} libraryName
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @instance
+ */
+ OutdatedLibrary.prototype.libraryName = "";
+
+ /**
+ * OutdatedLibrary version.
+ * @member {string} version
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @instance
+ */
+ OutdatedLibrary.prototype.version = "";
+
+ /**
+ * OutdatedLibrary learnMoreUrls.
+ * @member {Array.} learnMoreUrls
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @instance
+ */
+ OutdatedLibrary.prototype.learnMoreUrls = $util.emptyArray;
+
+ /**
+ * Creates a new OutdatedLibrary instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IOutdatedLibrary=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.OutdatedLibrary} OutdatedLibrary instance
+ */
+ OutdatedLibrary.create = function create(properties) {
+ return new OutdatedLibrary(properties);
+ };
+
+ /**
+ * Encodes the specified OutdatedLibrary message. Does not implicitly {@link google.cloud.websecurityscanner.v1.OutdatedLibrary.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IOutdatedLibrary} message OutdatedLibrary message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OutdatedLibrary.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.libraryName != null && Object.hasOwnProperty.call(message, "libraryName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryName);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.version);
+ if (message.learnMoreUrls != null && message.learnMoreUrls.length)
+ for (var i = 0; i < message.learnMoreUrls.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.learnMoreUrls[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OutdatedLibrary message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.OutdatedLibrary.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IOutdatedLibrary} message OutdatedLibrary message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OutdatedLibrary.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OutdatedLibrary message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.OutdatedLibrary} OutdatedLibrary
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OutdatedLibrary.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.websecurityscanner.v1.OutdatedLibrary();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.libraryName = reader.string();
+ break;
+ }
+ case 2: {
+ message.version = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.learnMoreUrls && message.learnMoreUrls.length))
+ message.learnMoreUrls = [];
+ message.learnMoreUrls.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OutdatedLibrary message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.OutdatedLibrary} OutdatedLibrary
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OutdatedLibrary.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OutdatedLibrary message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OutdatedLibrary.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.libraryName != null && message.hasOwnProperty("libraryName"))
+ if (!$util.isString(message.libraryName))
+ return "libraryName: string expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.learnMoreUrls != null && message.hasOwnProperty("learnMoreUrls")) {
+ if (!Array.isArray(message.learnMoreUrls))
+ return "learnMoreUrls: array expected";
+ for (var i = 0; i < message.learnMoreUrls.length; ++i)
+ if (!$util.isString(message.learnMoreUrls[i]))
+ return "learnMoreUrls: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an OutdatedLibrary message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.OutdatedLibrary} OutdatedLibrary
+ */
+ OutdatedLibrary.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.OutdatedLibrary)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.OutdatedLibrary();
+ if (object.libraryName != null)
+ message.libraryName = String(object.libraryName);
+ if (object.version != null)
+ message.version = String(object.version);
+ if (object.learnMoreUrls) {
+ if (!Array.isArray(object.learnMoreUrls))
+ throw TypeError(".google.cloud.websecurityscanner.v1.OutdatedLibrary.learnMoreUrls: array expected");
+ message.learnMoreUrls = [];
+ for (var i = 0; i < object.learnMoreUrls.length; ++i)
+ message.learnMoreUrls[i] = String(object.learnMoreUrls[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OutdatedLibrary message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.OutdatedLibrary} message OutdatedLibrary
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OutdatedLibrary.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.learnMoreUrls = [];
+ if (options.defaults) {
+ object.libraryName = "";
+ object.version = "";
+ }
+ if (message.libraryName != null && message.hasOwnProperty("libraryName"))
+ object.libraryName = message.libraryName;
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.learnMoreUrls && message.learnMoreUrls.length) {
+ object.learnMoreUrls = [];
+ for (var j = 0; j < message.learnMoreUrls.length; ++j)
+ object.learnMoreUrls[j] = message.learnMoreUrls[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this OutdatedLibrary to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OutdatedLibrary.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OutdatedLibrary
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.OutdatedLibrary
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OutdatedLibrary.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.OutdatedLibrary";
+ };
+
+ return OutdatedLibrary;
+ })();
+
+ v1.ViolatingResource = (function() {
+
+ /**
+ * Properties of a ViolatingResource.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IViolatingResource
+ * @property {string|null} [contentType] ViolatingResource contentType
+ * @property {string|null} [resourceUrl] ViolatingResource resourceUrl
+ */
+
+ /**
+ * Constructs a new ViolatingResource.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ViolatingResource.
+ * @implements IViolatingResource
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IViolatingResource=} [properties] Properties to set
+ */
+ function ViolatingResource(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]];
+ }
+
+ /**
+ * ViolatingResource contentType.
+ * @member {string} contentType
+ * @memberof google.cloud.websecurityscanner.v1.ViolatingResource
+ * @instance
+ */
+ ViolatingResource.prototype.contentType = "";
+
+ /**
+ * ViolatingResource resourceUrl.
+ * @member {string} resourceUrl
+ * @memberof google.cloud.websecurityscanner.v1.ViolatingResource
+ * @instance
+ */
+ ViolatingResource.prototype.resourceUrl = "";
+
+ /**
+ * Creates a new ViolatingResource instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ViolatingResource
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IViolatingResource=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ViolatingResource} ViolatingResource instance
+ */
+ ViolatingResource.create = function create(properties) {
+ return new ViolatingResource(properties);
+ };
+
+ /**
+ * Encodes the specified ViolatingResource message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ViolatingResource.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ViolatingResource
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IViolatingResource} message ViolatingResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ViolatingResource.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.contentType != null && Object.hasOwnProperty.call(message, "contentType"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.contentType);
+ if (message.resourceUrl != null && Object.hasOwnProperty.call(message, "resourceUrl"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.resourceUrl);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ViolatingResource message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ViolatingResource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ViolatingResource
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IViolatingResource} message ViolatingResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ViolatingResource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ViolatingResource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ViolatingResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ViolatingResource} ViolatingResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ViolatingResource.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.websecurityscanner.v1.ViolatingResource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.contentType = reader.string();
+ break;
+ }
+ case 2: {
+ message.resourceUrl = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ViolatingResource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ViolatingResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ViolatingResource} ViolatingResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ViolatingResource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ViolatingResource message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ViolatingResource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ViolatingResource.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
+ if (!$util.isString(message.contentType))
+ return "contentType: string expected";
+ if (message.resourceUrl != null && message.hasOwnProperty("resourceUrl"))
+ if (!$util.isString(message.resourceUrl))
+ return "resourceUrl: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ViolatingResource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ViolatingResource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ViolatingResource} ViolatingResource
+ */
+ ViolatingResource.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ViolatingResource)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ViolatingResource();
+ if (object.contentType != null)
+ message.contentType = String(object.contentType);
+ if (object.resourceUrl != null)
+ message.resourceUrl = String(object.resourceUrl);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ViolatingResource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ViolatingResource
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ViolatingResource} message ViolatingResource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ViolatingResource.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.contentType = "";
+ object.resourceUrl = "";
+ }
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
+ object.contentType = message.contentType;
+ if (message.resourceUrl != null && message.hasOwnProperty("resourceUrl"))
+ object.resourceUrl = message.resourceUrl;
+ return object;
+ };
+
+ /**
+ * Converts this ViolatingResource to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ViolatingResource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ViolatingResource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ViolatingResource
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ViolatingResource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ViolatingResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ViolatingResource";
+ };
+
+ return ViolatingResource;
+ })();
+
+ v1.VulnerableParameters = (function() {
+
+ /**
+ * Properties of a VulnerableParameters.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IVulnerableParameters
+ * @property {Array.|null} [parameterNames] VulnerableParameters parameterNames
+ */
+
+ /**
+ * Constructs a new VulnerableParameters.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a VulnerableParameters.
+ * @implements IVulnerableParameters
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IVulnerableParameters=} [properties] Properties to set
+ */
+ function VulnerableParameters(properties) {
+ this.parameterNames = [];
+ 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]];
+ }
+
+ /**
+ * VulnerableParameters parameterNames.
+ * @member {Array.} parameterNames
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableParameters
+ * @instance
+ */
+ VulnerableParameters.prototype.parameterNames = $util.emptyArray;
+
+ /**
+ * Creates a new VulnerableParameters instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableParameters
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IVulnerableParameters=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.VulnerableParameters} VulnerableParameters instance
+ */
+ VulnerableParameters.create = function create(properties) {
+ return new VulnerableParameters(properties);
+ };
+
+ /**
+ * Encodes the specified VulnerableParameters message. Does not implicitly {@link google.cloud.websecurityscanner.v1.VulnerableParameters.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableParameters
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IVulnerableParameters} message VulnerableParameters message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VulnerableParameters.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parameterNames != null && message.parameterNames.length)
+ for (var i = 0; i < message.parameterNames.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameterNames[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VulnerableParameters message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.VulnerableParameters.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableParameters
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IVulnerableParameters} message VulnerableParameters message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VulnerableParameters.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VulnerableParameters message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableParameters
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.VulnerableParameters} VulnerableParameters
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VulnerableParameters.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.websecurityscanner.v1.VulnerableParameters();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.parameterNames && message.parameterNames.length))
+ message.parameterNames = [];
+ message.parameterNames.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VulnerableParameters message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableParameters
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.VulnerableParameters} VulnerableParameters
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VulnerableParameters.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VulnerableParameters message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableParameters
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VulnerableParameters.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parameterNames != null && message.hasOwnProperty("parameterNames")) {
+ if (!Array.isArray(message.parameterNames))
+ return "parameterNames: array expected";
+ for (var i = 0; i < message.parameterNames.length; ++i)
+ if (!$util.isString(message.parameterNames[i]))
+ return "parameterNames: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a VulnerableParameters message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableParameters
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.VulnerableParameters} VulnerableParameters
+ */
+ VulnerableParameters.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.VulnerableParameters)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.VulnerableParameters();
+ if (object.parameterNames) {
+ if (!Array.isArray(object.parameterNames))
+ throw TypeError(".google.cloud.websecurityscanner.v1.VulnerableParameters.parameterNames: array expected");
+ message.parameterNames = [];
+ for (var i = 0; i < object.parameterNames.length; ++i)
+ message.parameterNames[i] = String(object.parameterNames[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VulnerableParameters message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableParameters
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.VulnerableParameters} message VulnerableParameters
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VulnerableParameters.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.parameterNames = [];
+ if (message.parameterNames && message.parameterNames.length) {
+ object.parameterNames = [];
+ for (var j = 0; j < message.parameterNames.length; ++j)
+ object.parameterNames[j] = message.parameterNames[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this VulnerableParameters to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableParameters
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VulnerableParameters.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VulnerableParameters
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableParameters
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VulnerableParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.VulnerableParameters";
+ };
+
+ return VulnerableParameters;
+ })();
+
+ v1.VulnerableHeaders = (function() {
+
+ /**
+ * Properties of a VulnerableHeaders.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IVulnerableHeaders
+ * @property {Array.|null} [headers] VulnerableHeaders headers
+ * @property {Array.|null} [missingHeaders] VulnerableHeaders missingHeaders
+ */
+
+ /**
+ * Constructs a new VulnerableHeaders.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a VulnerableHeaders.
+ * @implements IVulnerableHeaders
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IVulnerableHeaders=} [properties] Properties to set
+ */
+ function VulnerableHeaders(properties) {
+ this.headers = [];
+ this.missingHeaders = [];
+ 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]];
+ }
+
+ /**
+ * VulnerableHeaders headers.
+ * @member {Array.} headers
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @instance
+ */
+ VulnerableHeaders.prototype.headers = $util.emptyArray;
+
+ /**
+ * VulnerableHeaders missingHeaders.
+ * @member {Array.} missingHeaders
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @instance
+ */
+ VulnerableHeaders.prototype.missingHeaders = $util.emptyArray;
+
+ /**
+ * Creates a new VulnerableHeaders instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IVulnerableHeaders=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.VulnerableHeaders} VulnerableHeaders instance
+ */
+ VulnerableHeaders.create = function create(properties) {
+ return new VulnerableHeaders(properties);
+ };
+
+ /**
+ * Encodes the specified VulnerableHeaders message. Does not implicitly {@link google.cloud.websecurityscanner.v1.VulnerableHeaders.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IVulnerableHeaders} message VulnerableHeaders message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VulnerableHeaders.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.headers != null && message.headers.length)
+ for (var i = 0; i < message.headers.length; ++i)
+ $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.encode(message.headers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.missingHeaders != null && message.missingHeaders.length)
+ for (var i = 0; i < message.missingHeaders.length; ++i)
+ $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.encode(message.missingHeaders[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VulnerableHeaders message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.VulnerableHeaders.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IVulnerableHeaders} message VulnerableHeaders message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VulnerableHeaders.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VulnerableHeaders message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.VulnerableHeaders} VulnerableHeaders
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VulnerableHeaders.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.websecurityscanner.v1.VulnerableHeaders();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.headers && message.headers.length))
+ message.headers = [];
+ message.headers.push($root.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ if (!(message.missingHeaders && message.missingHeaders.length))
+ message.missingHeaders = [];
+ message.missingHeaders.push($root.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VulnerableHeaders message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.VulnerableHeaders} VulnerableHeaders
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VulnerableHeaders.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VulnerableHeaders message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VulnerableHeaders.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.headers != null && message.hasOwnProperty("headers")) {
+ if (!Array.isArray(message.headers))
+ return "headers: array expected";
+ for (var i = 0; i < message.headers.length; ++i) {
+ var error = $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.verify(message.headers[i]);
+ if (error)
+ return "headers." + error;
+ }
+ }
+ if (message.missingHeaders != null && message.hasOwnProperty("missingHeaders")) {
+ if (!Array.isArray(message.missingHeaders))
+ return "missingHeaders: array expected";
+ for (var i = 0; i < message.missingHeaders.length; ++i) {
+ var error = $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.verify(message.missingHeaders[i]);
+ if (error)
+ return "missingHeaders." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a VulnerableHeaders message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.VulnerableHeaders} VulnerableHeaders
+ */
+ VulnerableHeaders.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.VulnerableHeaders)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.VulnerableHeaders();
+ if (object.headers) {
+ if (!Array.isArray(object.headers))
+ throw TypeError(".google.cloud.websecurityscanner.v1.VulnerableHeaders.headers: array expected");
+ message.headers = [];
+ for (var i = 0; i < object.headers.length; ++i) {
+ if (typeof object.headers[i] !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.VulnerableHeaders.headers: object expected");
+ message.headers[i] = $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.fromObject(object.headers[i]);
+ }
+ }
+ if (object.missingHeaders) {
+ if (!Array.isArray(object.missingHeaders))
+ throw TypeError(".google.cloud.websecurityscanner.v1.VulnerableHeaders.missingHeaders: array expected");
+ message.missingHeaders = [];
+ for (var i = 0; i < object.missingHeaders.length; ++i) {
+ if (typeof object.missingHeaders[i] !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.VulnerableHeaders.missingHeaders: object expected");
+ message.missingHeaders[i] = $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.fromObject(object.missingHeaders[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VulnerableHeaders message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.VulnerableHeaders} message VulnerableHeaders
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VulnerableHeaders.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.headers = [];
+ object.missingHeaders = [];
+ }
+ if (message.headers && message.headers.length) {
+ object.headers = [];
+ for (var j = 0; j < message.headers.length; ++j)
+ object.headers[j] = $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.toObject(message.headers[j], options);
+ }
+ if (message.missingHeaders && message.missingHeaders.length) {
+ object.missingHeaders = [];
+ for (var j = 0; j < message.missingHeaders.length; ++j)
+ object.missingHeaders[j] = $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.toObject(message.missingHeaders[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this VulnerableHeaders to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VulnerableHeaders.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VulnerableHeaders
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VulnerableHeaders.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.VulnerableHeaders";
+ };
+
+ VulnerableHeaders.Header = (function() {
+
+ /**
+ * Properties of a Header.
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @interface IHeader
+ * @property {string|null} [name] Header name
+ * @property {string|null} [value] Header value
+ */
+
+ /**
+ * Constructs a new Header.
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders
+ * @classdesc Represents a Header.
+ * @implements IHeader
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.VulnerableHeaders.IHeader=} [properties] Properties to set
+ */
+ function Header(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]];
+ }
+
+ /**
+ * Header name.
+ * @member {string} name
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders.Header
+ * @instance
+ */
+ Header.prototype.name = "";
+
+ /**
+ * Header value.
+ * @member {string} value
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders.Header
+ * @instance
+ */
+ Header.prototype.value = "";
+
+ /**
+ * Creates a new Header instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders.Header
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.VulnerableHeaders.IHeader=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.VulnerableHeaders.Header} Header instance
+ */
+ Header.create = function create(properties) {
+ return new Header(properties);
+ };
+
+ /**
+ * Encodes the specified Header message. Does not implicitly {@link google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders.Header
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.VulnerableHeaders.IHeader} message Header message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Header.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.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders.Header
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.VulnerableHeaders.IHeader} message Header message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Header.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Header message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders.Header
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.VulnerableHeaders.Header} Header
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Header.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.websecurityscanner.v1.VulnerableHeaders.Header();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.value = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Header message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders.Header
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.VulnerableHeaders.Header} Header
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Header.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Header message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders.Header
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Header.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.value != null && message.hasOwnProperty("value"))
+ if (!$util.isString(message.value))
+ return "value: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Header message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders.Header
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.VulnerableHeaders.Header} Header
+ */
+ Header.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.value != null)
+ message.value = String(object.value);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Header message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders.Header
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.VulnerableHeaders.Header} message Header
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Header.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.value = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = message.value;
+ return object;
+ };
+
+ /**
+ * Converts this Header to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders.Header
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Header.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Header
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.VulnerableHeaders.Header
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Header.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.VulnerableHeaders.Header";
+ };
+
+ return Header;
+ })();
+
+ return VulnerableHeaders;
+ })();
+
+ v1.Xss = (function() {
+
+ /**
+ * Properties of a Xss.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IXss
+ * @property {Array.|null} [stackTraces] Xss stackTraces
+ * @property {string|null} [errorMessage] Xss errorMessage
+ * @property {google.cloud.websecurityscanner.v1.Xss.AttackVector|null} [attackVector] Xss attackVector
+ * @property {string|null} [storedXssSeedingUrl] Xss storedXssSeedingUrl
+ */
+
+ /**
+ * Constructs a new Xss.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a Xss.
+ * @implements IXss
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IXss=} [properties] Properties to set
+ */
+ function Xss(properties) {
+ this.stackTraces = [];
+ 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]];
+ }
+
+ /**
+ * Xss stackTraces.
+ * @member {Array.} stackTraces
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @instance
+ */
+ Xss.prototype.stackTraces = $util.emptyArray;
+
+ /**
+ * Xss errorMessage.
+ * @member {string} errorMessage
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @instance
+ */
+ Xss.prototype.errorMessage = "";
+
+ /**
+ * Xss attackVector.
+ * @member {google.cloud.websecurityscanner.v1.Xss.AttackVector} attackVector
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @instance
+ */
+ Xss.prototype.attackVector = 0;
+
+ /**
+ * Xss storedXssSeedingUrl.
+ * @member {string} storedXssSeedingUrl
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @instance
+ */
+ Xss.prototype.storedXssSeedingUrl = "";
+
+ /**
+ * Creates a new Xss instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IXss=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.Xss} Xss instance
+ */
+ Xss.create = function create(properties) {
+ return new Xss(properties);
+ };
+
+ /**
+ * Encodes the specified Xss message. Does not implicitly {@link google.cloud.websecurityscanner.v1.Xss.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IXss} message Xss message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Xss.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.stackTraces != null && message.stackTraces.length)
+ for (var i = 0; i < message.stackTraces.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.stackTraces[i]);
+ if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage);
+ if (message.attackVector != null && Object.hasOwnProperty.call(message, "attackVector"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.attackVector);
+ if (message.storedXssSeedingUrl != null && Object.hasOwnProperty.call(message, "storedXssSeedingUrl"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.storedXssSeedingUrl);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Xss message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.Xss.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IXss} message Xss message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Xss.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Xss message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.Xss} Xss
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Xss.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.websecurityscanner.v1.Xss();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.stackTraces && message.stackTraces.length))
+ message.stackTraces = [];
+ message.stackTraces.push(reader.string());
+ break;
+ }
+ case 2: {
+ message.errorMessage = reader.string();
+ break;
+ }
+ case 3: {
+ message.attackVector = reader.int32();
+ break;
+ }
+ case 4: {
+ message.storedXssSeedingUrl = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Xss message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.Xss} Xss
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Xss.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Xss message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Xss.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.stackTraces != null && message.hasOwnProperty("stackTraces")) {
+ if (!Array.isArray(message.stackTraces))
+ return "stackTraces: array expected";
+ for (var i = 0; i < message.stackTraces.length; ++i)
+ if (!$util.isString(message.stackTraces[i]))
+ return "stackTraces: string[] expected";
+ }
+ if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
+ if (!$util.isString(message.errorMessage))
+ return "errorMessage: string expected";
+ if (message.attackVector != null && message.hasOwnProperty("attackVector"))
+ switch (message.attackVector) {
+ default:
+ return "attackVector: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13:
+ case 14:
+ case 15:
+ break;
+ }
+ if (message.storedXssSeedingUrl != null && message.hasOwnProperty("storedXssSeedingUrl"))
+ if (!$util.isString(message.storedXssSeedingUrl))
+ return "storedXssSeedingUrl: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Xss message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.Xss} Xss
+ */
+ Xss.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.Xss)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.Xss();
+ if (object.stackTraces) {
+ if (!Array.isArray(object.stackTraces))
+ throw TypeError(".google.cloud.websecurityscanner.v1.Xss.stackTraces: array expected");
+ message.stackTraces = [];
+ for (var i = 0; i < object.stackTraces.length; ++i)
+ message.stackTraces[i] = String(object.stackTraces[i]);
+ }
+ if (object.errorMessage != null)
+ message.errorMessage = String(object.errorMessage);
+ switch (object.attackVector) {
+ default:
+ if (typeof object.attackVector === "number") {
+ message.attackVector = object.attackVector;
+ break;
+ }
+ break;
+ case "ATTACK_VECTOR_UNSPECIFIED":
+ case 0:
+ message.attackVector = 0;
+ break;
+ case "LOCAL_STORAGE":
+ case 1:
+ message.attackVector = 1;
+ break;
+ case "SESSION_STORAGE":
+ case 2:
+ message.attackVector = 2;
+ break;
+ case "WINDOW_NAME":
+ case 3:
+ message.attackVector = 3;
+ break;
+ case "REFERRER":
+ case 4:
+ message.attackVector = 4;
+ break;
+ case "FORM_INPUT":
+ case 5:
+ message.attackVector = 5;
+ break;
+ case "COOKIE":
+ case 6:
+ message.attackVector = 6;
+ break;
+ case "POST_MESSAGE":
+ case 7:
+ message.attackVector = 7;
+ break;
+ case "GET_PARAMETERS":
+ case 8:
+ message.attackVector = 8;
+ break;
+ case "URL_FRAGMENT":
+ case 9:
+ message.attackVector = 9;
+ break;
+ case "HTML_COMMENT":
+ case 10:
+ message.attackVector = 10;
+ break;
+ case "POST_PARAMETERS":
+ case 11:
+ message.attackVector = 11;
+ break;
+ case "PROTOCOL":
+ case 12:
+ message.attackVector = 12;
+ break;
+ case "STORED_XSS":
+ case 13:
+ message.attackVector = 13;
+ break;
+ case "SAME_ORIGIN":
+ case 14:
+ message.attackVector = 14;
+ break;
+ case "USER_CONTROLLABLE_URL":
+ case 15:
+ message.attackVector = 15;
+ break;
+ }
+ if (object.storedXssSeedingUrl != null)
+ message.storedXssSeedingUrl = String(object.storedXssSeedingUrl);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Xss message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.Xss} message Xss
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Xss.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.stackTraces = [];
+ if (options.defaults) {
+ object.errorMessage = "";
+ object.attackVector = options.enums === String ? "ATTACK_VECTOR_UNSPECIFIED" : 0;
+ object.storedXssSeedingUrl = "";
+ }
+ if (message.stackTraces && message.stackTraces.length) {
+ object.stackTraces = [];
+ for (var j = 0; j < message.stackTraces.length; ++j)
+ object.stackTraces[j] = message.stackTraces[j];
+ }
+ if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
+ object.errorMessage = message.errorMessage;
+ if (message.attackVector != null && message.hasOwnProperty("attackVector"))
+ object.attackVector = options.enums === String ? $root.google.cloud.websecurityscanner.v1.Xss.AttackVector[message.attackVector] === undefined ? message.attackVector : $root.google.cloud.websecurityscanner.v1.Xss.AttackVector[message.attackVector] : message.attackVector;
+ if (message.storedXssSeedingUrl != null && message.hasOwnProperty("storedXssSeedingUrl"))
+ object.storedXssSeedingUrl = message.storedXssSeedingUrl;
+ return object;
+ };
+
+ /**
+ * Converts this Xss to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Xss.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Xss
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.Xss
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Xss.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.Xss";
+ };
+
+ /**
+ * AttackVector enum.
+ * @name google.cloud.websecurityscanner.v1.Xss.AttackVector
+ * @enum {number}
+ * @property {number} ATTACK_VECTOR_UNSPECIFIED=0 ATTACK_VECTOR_UNSPECIFIED value
+ * @property {number} LOCAL_STORAGE=1 LOCAL_STORAGE value
+ * @property {number} SESSION_STORAGE=2 SESSION_STORAGE value
+ * @property {number} WINDOW_NAME=3 WINDOW_NAME value
+ * @property {number} REFERRER=4 REFERRER value
+ * @property {number} FORM_INPUT=5 FORM_INPUT value
+ * @property {number} COOKIE=6 COOKIE value
+ * @property {number} POST_MESSAGE=7 POST_MESSAGE value
+ * @property {number} GET_PARAMETERS=8 GET_PARAMETERS value
+ * @property {number} URL_FRAGMENT=9 URL_FRAGMENT value
+ * @property {number} HTML_COMMENT=10 HTML_COMMENT value
+ * @property {number} POST_PARAMETERS=11 POST_PARAMETERS value
+ * @property {number} PROTOCOL=12 PROTOCOL value
+ * @property {number} STORED_XSS=13 STORED_XSS value
+ * @property {number} SAME_ORIGIN=14 SAME_ORIGIN value
+ * @property {number} USER_CONTROLLABLE_URL=15 USER_CONTROLLABLE_URL value
+ */
+ Xss.AttackVector = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ATTACK_VECTOR_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "LOCAL_STORAGE"] = 1;
+ values[valuesById[2] = "SESSION_STORAGE"] = 2;
+ values[valuesById[3] = "WINDOW_NAME"] = 3;
+ values[valuesById[4] = "REFERRER"] = 4;
+ values[valuesById[5] = "FORM_INPUT"] = 5;
+ values[valuesById[6] = "COOKIE"] = 6;
+ values[valuesById[7] = "POST_MESSAGE"] = 7;
+ values[valuesById[8] = "GET_PARAMETERS"] = 8;
+ values[valuesById[9] = "URL_FRAGMENT"] = 9;
+ values[valuesById[10] = "HTML_COMMENT"] = 10;
+ values[valuesById[11] = "POST_PARAMETERS"] = 11;
+ values[valuesById[12] = "PROTOCOL"] = 12;
+ values[valuesById[13] = "STORED_XSS"] = 13;
+ values[valuesById[14] = "SAME_ORIGIN"] = 14;
+ values[valuesById[15] = "USER_CONTROLLABLE_URL"] = 15;
+ return values;
+ })();
+
+ return Xss;
+ })();
+
+ v1.Xxe = (function() {
+
+ /**
+ * Properties of a Xxe.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IXxe
+ * @property {string|null} [payloadValue] Xxe payloadValue
+ * @property {google.cloud.websecurityscanner.v1.Xxe.Location|null} [payloadLocation] Xxe payloadLocation
+ */
+
+ /**
+ * Constructs a new Xxe.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a Xxe.
+ * @implements IXxe
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IXxe=} [properties] Properties to set
+ */
+ function Xxe(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]];
+ }
+
+ /**
+ * Xxe payloadValue.
+ * @member {string} payloadValue
+ * @memberof google.cloud.websecurityscanner.v1.Xxe
+ * @instance
+ */
+ Xxe.prototype.payloadValue = "";
+
+ /**
+ * Xxe payloadLocation.
+ * @member {google.cloud.websecurityscanner.v1.Xxe.Location} payloadLocation
+ * @memberof google.cloud.websecurityscanner.v1.Xxe
+ * @instance
+ */
+ Xxe.prototype.payloadLocation = 0;
+
+ /**
+ * Creates a new Xxe instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.Xxe
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IXxe=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.Xxe} Xxe instance
+ */
+ Xxe.create = function create(properties) {
+ return new Xxe(properties);
+ };
+
+ /**
+ * Encodes the specified Xxe message. Does not implicitly {@link google.cloud.websecurityscanner.v1.Xxe.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.Xxe
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IXxe} message Xxe message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Xxe.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.payloadValue != null && Object.hasOwnProperty.call(message, "payloadValue"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.payloadValue);
+ if (message.payloadLocation != null && Object.hasOwnProperty.call(message, "payloadLocation"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.payloadLocation);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Xxe message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.Xxe.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.Xxe
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IXxe} message Xxe message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Xxe.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Xxe message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.Xxe
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.Xxe} Xxe
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Xxe.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.websecurityscanner.v1.Xxe();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.payloadValue = reader.string();
+ break;
+ }
+ case 2: {
+ message.payloadLocation = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Xxe message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.Xxe
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.Xxe} Xxe
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Xxe.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Xxe message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.Xxe
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Xxe.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.payloadValue != null && message.hasOwnProperty("payloadValue"))
+ if (!$util.isString(message.payloadValue))
+ return "payloadValue: string expected";
+ if (message.payloadLocation != null && message.hasOwnProperty("payloadLocation"))
+ switch (message.payloadLocation) {
+ default:
+ return "payloadLocation: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Xxe message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.Xxe
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.Xxe} Xxe
+ */
+ Xxe.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.Xxe)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.Xxe();
+ if (object.payloadValue != null)
+ message.payloadValue = String(object.payloadValue);
+ switch (object.payloadLocation) {
+ default:
+ if (typeof object.payloadLocation === "number") {
+ message.payloadLocation = object.payloadLocation;
+ break;
+ }
+ break;
+ case "LOCATION_UNSPECIFIED":
+ case 0:
+ message.payloadLocation = 0;
+ break;
+ case "COMPLETE_REQUEST_BODY":
+ case 1:
+ message.payloadLocation = 1;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Xxe message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.Xxe
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.Xxe} message Xxe
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Xxe.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.payloadValue = "";
+ object.payloadLocation = options.enums === String ? "LOCATION_UNSPECIFIED" : 0;
+ }
+ if (message.payloadValue != null && message.hasOwnProperty("payloadValue"))
+ object.payloadValue = message.payloadValue;
+ if (message.payloadLocation != null && message.hasOwnProperty("payloadLocation"))
+ object.payloadLocation = options.enums === String ? $root.google.cloud.websecurityscanner.v1.Xxe.Location[message.payloadLocation] === undefined ? message.payloadLocation : $root.google.cloud.websecurityscanner.v1.Xxe.Location[message.payloadLocation] : message.payloadLocation;
+ return object;
+ };
+
+ /**
+ * Converts this Xxe to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.Xxe
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Xxe.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Xxe
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.Xxe
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Xxe.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.Xxe";
+ };
+
+ /**
+ * Location enum.
+ * @name google.cloud.websecurityscanner.v1.Xxe.Location
+ * @enum {number}
+ * @property {number} LOCATION_UNSPECIFIED=0 LOCATION_UNSPECIFIED value
+ * @property {number} COMPLETE_REQUEST_BODY=1 COMPLETE_REQUEST_BODY value
+ */
+ Xxe.Location = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "LOCATION_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "COMPLETE_REQUEST_BODY"] = 1;
+ return values;
+ })();
+
+ return Xxe;
+ })();
+
+ v1.FindingTypeStats = (function() {
+
+ /**
+ * Properties of a FindingTypeStats.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IFindingTypeStats
+ * @property {string|null} [findingType] FindingTypeStats findingType
+ * @property {number|null} [findingCount] FindingTypeStats findingCount
+ */
+
+ /**
+ * Constructs a new FindingTypeStats.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a FindingTypeStats.
+ * @implements IFindingTypeStats
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IFindingTypeStats=} [properties] Properties to set
+ */
+ function FindingTypeStats(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]];
+ }
+
+ /**
+ * FindingTypeStats findingType.
+ * @member {string} findingType
+ * @memberof google.cloud.websecurityscanner.v1.FindingTypeStats
+ * @instance
+ */
+ FindingTypeStats.prototype.findingType = "";
+
+ /**
+ * FindingTypeStats findingCount.
+ * @member {number} findingCount
+ * @memberof google.cloud.websecurityscanner.v1.FindingTypeStats
+ * @instance
+ */
+ FindingTypeStats.prototype.findingCount = 0;
+
+ /**
+ * Creates a new FindingTypeStats instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.FindingTypeStats
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IFindingTypeStats=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.FindingTypeStats} FindingTypeStats instance
+ */
+ FindingTypeStats.create = function create(properties) {
+ return new FindingTypeStats(properties);
+ };
+
+ /**
+ * Encodes the specified FindingTypeStats message. Does not implicitly {@link google.cloud.websecurityscanner.v1.FindingTypeStats.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.FindingTypeStats
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IFindingTypeStats} message FindingTypeStats message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FindingTypeStats.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.findingType != null && Object.hasOwnProperty.call(message, "findingType"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.findingType);
+ if (message.findingCount != null && Object.hasOwnProperty.call(message, "findingCount"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.findingCount);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FindingTypeStats message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.FindingTypeStats.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.FindingTypeStats
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IFindingTypeStats} message FindingTypeStats message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FindingTypeStats.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FindingTypeStats message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.FindingTypeStats
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.FindingTypeStats} FindingTypeStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FindingTypeStats.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.websecurityscanner.v1.FindingTypeStats();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.findingType = reader.string();
+ break;
+ }
+ case 2: {
+ message.findingCount = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FindingTypeStats message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.FindingTypeStats
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.FindingTypeStats} FindingTypeStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FindingTypeStats.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FindingTypeStats message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.FindingTypeStats
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FindingTypeStats.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.findingType != null && message.hasOwnProperty("findingType"))
+ if (!$util.isString(message.findingType))
+ return "findingType: string expected";
+ if (message.findingCount != null && message.hasOwnProperty("findingCount"))
+ if (!$util.isInteger(message.findingCount))
+ return "findingCount: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a FindingTypeStats message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.FindingTypeStats
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.FindingTypeStats} FindingTypeStats
+ */
+ FindingTypeStats.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.FindingTypeStats)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.FindingTypeStats();
+ if (object.findingType != null)
+ message.findingType = String(object.findingType);
+ if (object.findingCount != null)
+ message.findingCount = object.findingCount | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FindingTypeStats message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.FindingTypeStats
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.FindingTypeStats} message FindingTypeStats
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FindingTypeStats.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.findingType = "";
+ object.findingCount = 0;
+ }
+ if (message.findingType != null && message.hasOwnProperty("findingType"))
+ object.findingType = message.findingType;
+ if (message.findingCount != null && message.hasOwnProperty("findingCount"))
+ object.findingCount = message.findingCount;
+ return object;
+ };
+
+ /**
+ * Converts this FindingTypeStats to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.FindingTypeStats
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FindingTypeStats.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FindingTypeStats
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.FindingTypeStats
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FindingTypeStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.FindingTypeStats";
+ };
+
+ return FindingTypeStats;
+ })();
+
+ v1.ScanConfig = (function() {
+
+ /**
+ * Properties of a ScanConfig.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IScanConfig
+ * @property {string|null} [name] ScanConfig name
+ * @property {string|null} [displayName] ScanConfig displayName
+ * @property {number|null} [maxQps] ScanConfig maxQps
+ * @property {Array.|null} [startingUrls] ScanConfig startingUrls
+ * @property {google.cloud.websecurityscanner.v1.ScanConfig.IAuthentication|null} [authentication] ScanConfig authentication
+ * @property {google.cloud.websecurityscanner.v1.ScanConfig.UserAgent|null} [userAgent] ScanConfig userAgent
+ * @property {Array.|null} [blacklistPatterns] ScanConfig blacklistPatterns
+ * @property {google.cloud.websecurityscanner.v1.ScanConfig.ISchedule|null} [schedule] ScanConfig schedule
+ * @property {google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter|null} [exportToSecurityCommandCenter] ScanConfig exportToSecurityCommandCenter
+ * @property {google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel|null} [riskLevel] ScanConfig riskLevel
+ * @property {boolean|null} [managedScan] ScanConfig managedScan
+ * @property {boolean|null} [staticIpScan] ScanConfig staticIpScan
+ * @property {boolean|null} [ignoreHttpStatusErrors] ScanConfig ignoreHttpStatusErrors
+ */
+
+ /**
+ * Constructs a new ScanConfig.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ScanConfig.
+ * @implements IScanConfig
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IScanConfig=} [properties] Properties to set
+ */
+ function ScanConfig(properties) {
+ this.startingUrls = [];
+ this.blacklistPatterns = [];
+ 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]];
+ }
+
+ /**
+ * ScanConfig name.
+ * @member {string} name
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.name = "";
+
+ /**
+ * ScanConfig displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.displayName = "";
+
+ /**
+ * ScanConfig maxQps.
+ * @member {number} maxQps
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.maxQps = 0;
+
+ /**
+ * ScanConfig startingUrls.
+ * @member {Array.} startingUrls
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.startingUrls = $util.emptyArray;
+
+ /**
+ * ScanConfig authentication.
+ * @member {google.cloud.websecurityscanner.v1.ScanConfig.IAuthentication|null|undefined} authentication
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.authentication = null;
+
+ /**
+ * ScanConfig userAgent.
+ * @member {google.cloud.websecurityscanner.v1.ScanConfig.UserAgent} userAgent
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.userAgent = 0;
+
+ /**
+ * ScanConfig blacklistPatterns.
+ * @member {Array.} blacklistPatterns
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.blacklistPatterns = $util.emptyArray;
+
+ /**
+ * ScanConfig schedule.
+ * @member {google.cloud.websecurityscanner.v1.ScanConfig.ISchedule|null|undefined} schedule
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.schedule = null;
+
+ /**
+ * ScanConfig exportToSecurityCommandCenter.
+ * @member {google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter} exportToSecurityCommandCenter
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.exportToSecurityCommandCenter = 0;
+
+ /**
+ * ScanConfig riskLevel.
+ * @member {google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel} riskLevel
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.riskLevel = 0;
+
+ /**
+ * ScanConfig managedScan.
+ * @member {boolean} managedScan
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.managedScan = false;
+
+ /**
+ * ScanConfig staticIpScan.
+ * @member {boolean} staticIpScan
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.staticIpScan = false;
+
+ /**
+ * ScanConfig ignoreHttpStatusErrors.
+ * @member {boolean} ignoreHttpStatusErrors
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ */
+ ScanConfig.prototype.ignoreHttpStatusErrors = false;
+
+ /**
+ * Creates a new ScanConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanConfig=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig} ScanConfig instance
+ */
+ ScanConfig.create = function create(properties) {
+ return new ScanConfig(properties);
+ };
+
+ /**
+ * Encodes the specified ScanConfig message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanConfig} message ScanConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ScanConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.maxQps != null && Object.hasOwnProperty.call(message, "maxQps"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxQps);
+ if (message.startingUrls != null && message.startingUrls.length)
+ for (var i = 0; i < message.startingUrls.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.startingUrls[i]);
+ if (message.authentication != null && Object.hasOwnProperty.call(message, "authentication"))
+ $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.encode(message.authentication, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.userAgent != null && Object.hasOwnProperty.call(message, "userAgent"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.userAgent);
+ if (message.blacklistPatterns != null && message.blacklistPatterns.length)
+ for (var i = 0; i < message.blacklistPatterns.length; ++i)
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.blacklistPatterns[i]);
+ if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule"))
+ $root.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.encode(message.schedule, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.exportToSecurityCommandCenter != null && Object.hasOwnProperty.call(message, "exportToSecurityCommandCenter"))
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.exportToSecurityCommandCenter);
+ if (message.riskLevel != null && Object.hasOwnProperty.call(message, "riskLevel"))
+ writer.uint32(/* id 12, wireType 0 =*/96).int32(message.riskLevel);
+ if (message.managedScan != null && Object.hasOwnProperty.call(message, "managedScan"))
+ writer.uint32(/* id 13, wireType 0 =*/104).bool(message.managedScan);
+ if (message.staticIpScan != null && Object.hasOwnProperty.call(message, "staticIpScan"))
+ writer.uint32(/* id 14, wireType 0 =*/112).bool(message.staticIpScan);
+ if (message.ignoreHttpStatusErrors != null && Object.hasOwnProperty.call(message, "ignoreHttpStatusErrors"))
+ writer.uint32(/* id 15, wireType 0 =*/120).bool(message.ignoreHttpStatusErrors);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ScanConfig message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanConfig} message ScanConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ScanConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ScanConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig} ScanConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ScanConfig.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.websecurityscanner.v1.ScanConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.maxQps = reader.int32();
+ break;
+ }
+ case 4: {
+ if (!(message.startingUrls && message.startingUrls.length))
+ message.startingUrls = [];
+ message.startingUrls.push(reader.string());
+ break;
+ }
+ case 5: {
+ message.authentication = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.userAgent = reader.int32();
+ break;
+ }
+ case 7: {
+ if (!(message.blacklistPatterns && message.blacklistPatterns.length))
+ message.blacklistPatterns = [];
+ message.blacklistPatterns.push(reader.string());
+ break;
+ }
+ case 8: {
+ message.schedule = $root.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.exportToSecurityCommandCenter = reader.int32();
+ break;
+ }
+ case 12: {
+ message.riskLevel = reader.int32();
+ break;
+ }
+ case 13: {
+ message.managedScan = reader.bool();
+ break;
+ }
+ case 14: {
+ message.staticIpScan = reader.bool();
+ break;
+ }
+ case 15: {
+ message.ignoreHttpStatusErrors = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ScanConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig} ScanConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ScanConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ScanConfig message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ScanConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.maxQps != null && message.hasOwnProperty("maxQps"))
+ if (!$util.isInteger(message.maxQps))
+ return "maxQps: integer expected";
+ if (message.startingUrls != null && message.hasOwnProperty("startingUrls")) {
+ if (!Array.isArray(message.startingUrls))
+ return "startingUrls: array expected";
+ for (var i = 0; i < message.startingUrls.length; ++i)
+ if (!$util.isString(message.startingUrls[i]))
+ return "startingUrls: string[] expected";
+ }
+ if (message.authentication != null && message.hasOwnProperty("authentication")) {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.verify(message.authentication);
+ if (error)
+ return "authentication." + error;
+ }
+ if (message.userAgent != null && message.hasOwnProperty("userAgent"))
+ switch (message.userAgent) {
+ default:
+ return "userAgent: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.blacklistPatterns != null && message.hasOwnProperty("blacklistPatterns")) {
+ if (!Array.isArray(message.blacklistPatterns))
+ return "blacklistPatterns: array expected";
+ for (var i = 0; i < message.blacklistPatterns.length; ++i)
+ if (!$util.isString(message.blacklistPatterns[i]))
+ return "blacklistPatterns: string[] expected";
+ }
+ if (message.schedule != null && message.hasOwnProperty("schedule")) {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.verify(message.schedule);
+ if (error)
+ return "schedule." + error;
+ }
+ if (message.exportToSecurityCommandCenter != null && message.hasOwnProperty("exportToSecurityCommandCenter"))
+ switch (message.exportToSecurityCommandCenter) {
+ default:
+ return "exportToSecurityCommandCenter: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.riskLevel != null && message.hasOwnProperty("riskLevel"))
+ switch (message.riskLevel) {
+ default:
+ return "riskLevel: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.managedScan != null && message.hasOwnProperty("managedScan"))
+ if (typeof message.managedScan !== "boolean")
+ return "managedScan: boolean expected";
+ if (message.staticIpScan != null && message.hasOwnProperty("staticIpScan"))
+ if (typeof message.staticIpScan !== "boolean")
+ return "staticIpScan: boolean expected";
+ if (message.ignoreHttpStatusErrors != null && message.hasOwnProperty("ignoreHttpStatusErrors"))
+ if (typeof message.ignoreHttpStatusErrors !== "boolean")
+ return "ignoreHttpStatusErrors: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a ScanConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig} ScanConfig
+ */
+ ScanConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ScanConfig)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ScanConfig();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.maxQps != null)
+ message.maxQps = object.maxQps | 0;
+ if (object.startingUrls) {
+ if (!Array.isArray(object.startingUrls))
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanConfig.startingUrls: array expected");
+ message.startingUrls = [];
+ for (var i = 0; i < object.startingUrls.length; ++i)
+ message.startingUrls[i] = String(object.startingUrls[i]);
+ }
+ if (object.authentication != null) {
+ if (typeof object.authentication !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanConfig.authentication: object expected");
+ message.authentication = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.fromObject(object.authentication);
+ }
+ switch (object.userAgent) {
+ default:
+ if (typeof object.userAgent === "number") {
+ message.userAgent = object.userAgent;
+ break;
+ }
+ break;
+ case "USER_AGENT_UNSPECIFIED":
+ case 0:
+ message.userAgent = 0;
+ break;
+ case "CHROME_LINUX":
+ case 1:
+ message.userAgent = 1;
+ break;
+ case "CHROME_ANDROID":
+ case 2:
+ message.userAgent = 2;
+ break;
+ case "SAFARI_IPHONE":
+ case 3:
+ message.userAgent = 3;
+ break;
+ }
+ if (object.blacklistPatterns) {
+ if (!Array.isArray(object.blacklistPatterns))
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanConfig.blacklistPatterns: array expected");
+ message.blacklistPatterns = [];
+ for (var i = 0; i < object.blacklistPatterns.length; ++i)
+ message.blacklistPatterns[i] = String(object.blacklistPatterns[i]);
+ }
+ if (object.schedule != null) {
+ if (typeof object.schedule !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanConfig.schedule: object expected");
+ message.schedule = $root.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.fromObject(object.schedule);
+ }
+ switch (object.exportToSecurityCommandCenter) {
+ default:
+ if (typeof object.exportToSecurityCommandCenter === "number") {
+ message.exportToSecurityCommandCenter = object.exportToSecurityCommandCenter;
+ break;
+ }
+ break;
+ case "EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED":
+ case 0:
+ message.exportToSecurityCommandCenter = 0;
+ break;
+ case "ENABLED":
+ case 1:
+ message.exportToSecurityCommandCenter = 1;
+ break;
+ case "DISABLED":
+ case 2:
+ message.exportToSecurityCommandCenter = 2;
+ break;
+ }
+ switch (object.riskLevel) {
+ default:
+ if (typeof object.riskLevel === "number") {
+ message.riskLevel = object.riskLevel;
+ break;
+ }
+ break;
+ case "RISK_LEVEL_UNSPECIFIED":
+ case 0:
+ message.riskLevel = 0;
+ break;
+ case "NORMAL":
+ case 1:
+ message.riskLevel = 1;
+ break;
+ case "LOW":
+ case 2:
+ message.riskLevel = 2;
+ break;
+ }
+ if (object.managedScan != null)
+ message.managedScan = Boolean(object.managedScan);
+ if (object.staticIpScan != null)
+ message.staticIpScan = Boolean(object.staticIpScan);
+ if (object.ignoreHttpStatusErrors != null)
+ message.ignoreHttpStatusErrors = Boolean(object.ignoreHttpStatusErrors);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ScanConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig} message ScanConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ScanConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.startingUrls = [];
+ object.blacklistPatterns = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.displayName = "";
+ object.maxQps = 0;
+ object.authentication = null;
+ object.userAgent = options.enums === String ? "USER_AGENT_UNSPECIFIED" : 0;
+ object.schedule = null;
+ object.exportToSecurityCommandCenter = options.enums === String ? "EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED" : 0;
+ object.riskLevel = options.enums === String ? "RISK_LEVEL_UNSPECIFIED" : 0;
+ object.managedScan = false;
+ object.staticIpScan = false;
+ object.ignoreHttpStatusErrors = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.maxQps != null && message.hasOwnProperty("maxQps"))
+ object.maxQps = message.maxQps;
+ if (message.startingUrls && message.startingUrls.length) {
+ object.startingUrls = [];
+ for (var j = 0; j < message.startingUrls.length; ++j)
+ object.startingUrls[j] = message.startingUrls[j];
+ }
+ if (message.authentication != null && message.hasOwnProperty("authentication"))
+ object.authentication = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.toObject(message.authentication, options);
+ if (message.userAgent != null && message.hasOwnProperty("userAgent"))
+ object.userAgent = options.enums === String ? $root.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent[message.userAgent] === undefined ? message.userAgent : $root.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent[message.userAgent] : message.userAgent;
+ if (message.blacklistPatterns && message.blacklistPatterns.length) {
+ object.blacklistPatterns = [];
+ for (var j = 0; j < message.blacklistPatterns.length; ++j)
+ object.blacklistPatterns[j] = message.blacklistPatterns[j];
+ }
+ if (message.schedule != null && message.hasOwnProperty("schedule"))
+ object.schedule = $root.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.toObject(message.schedule, options);
+ if (message.exportToSecurityCommandCenter != null && message.hasOwnProperty("exportToSecurityCommandCenter"))
+ object.exportToSecurityCommandCenter = options.enums === String ? $root.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter[message.exportToSecurityCommandCenter] === undefined ? message.exportToSecurityCommandCenter : $root.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter[message.exportToSecurityCommandCenter] : message.exportToSecurityCommandCenter;
+ if (message.riskLevel != null && message.hasOwnProperty("riskLevel"))
+ object.riskLevel = options.enums === String ? $root.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel[message.riskLevel] === undefined ? message.riskLevel : $root.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel[message.riskLevel] : message.riskLevel;
+ if (message.managedScan != null && message.hasOwnProperty("managedScan"))
+ object.managedScan = message.managedScan;
+ if (message.staticIpScan != null && message.hasOwnProperty("staticIpScan"))
+ object.staticIpScan = message.staticIpScan;
+ if (message.ignoreHttpStatusErrors != null && message.hasOwnProperty("ignoreHttpStatusErrors"))
+ object.ignoreHttpStatusErrors = message.ignoreHttpStatusErrors;
+ return object;
+ };
+
+ /**
+ * Converts this ScanConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ScanConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ScanConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ScanConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ScanConfig";
+ };
+
+ ScanConfig.Authentication = (function() {
+
+ /**
+ * Properties of an Authentication.
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @interface IAuthentication
+ * @property {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IGoogleAccount|null} [googleAccount] Authentication googleAccount
+ * @property {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.ICustomAccount|null} [customAccount] Authentication customAccount
+ * @property {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IIapCredential|null} [iapCredential] Authentication iapCredential
+ */
+
+ /**
+ * Constructs a new Authentication.
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @classdesc Represents an Authentication.
+ * @implements IAuthentication
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.IAuthentication=} [properties] Properties to set
+ */
+ function Authentication(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]];
+ }
+
+ /**
+ * Authentication googleAccount.
+ * @member {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IGoogleAccount|null|undefined} googleAccount
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @instance
+ */
+ Authentication.prototype.googleAccount = null;
+
+ /**
+ * Authentication customAccount.
+ * @member {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.ICustomAccount|null|undefined} customAccount
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @instance
+ */
+ Authentication.prototype.customAccount = null;
+
+ /**
+ * Authentication iapCredential.
+ * @member {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IIapCredential|null|undefined} iapCredential
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @instance
+ */
+ Authentication.prototype.iapCredential = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Authentication authentication.
+ * @member {"googleAccount"|"customAccount"|"iapCredential"|undefined} authentication
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @instance
+ */
+ Object.defineProperty(Authentication.prototype, "authentication", {
+ get: $util.oneOfGetter($oneOfFields = ["googleAccount", "customAccount", "iapCredential"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Authentication instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.IAuthentication=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication} Authentication instance
+ */
+ Authentication.create = function create(properties) {
+ return new Authentication(properties);
+ };
+
+ /**
+ * Encodes the specified Authentication message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.IAuthentication} message Authentication message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Authentication.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.googleAccount != null && Object.hasOwnProperty.call(message, "googleAccount"))
+ $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.encode(message.googleAccount, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.customAccount != null && Object.hasOwnProperty.call(message, "customAccount"))
+ $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.encode(message.customAccount, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.iapCredential != null && Object.hasOwnProperty.call(message, "iapCredential"))
+ $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.encode(message.iapCredential, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Authentication message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.IAuthentication} message Authentication message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Authentication.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Authentication message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication} Authentication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Authentication.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.websecurityscanner.v1.ScanConfig.Authentication();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.googleAccount = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.customAccount = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.iapCredential = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Authentication message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication} Authentication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Authentication.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Authentication message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Authentication.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.googleAccount != null && message.hasOwnProperty("googleAccount")) {
+ properties.authentication = 1;
+ {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.verify(message.googleAccount);
+ if (error)
+ return "googleAccount." + error;
+ }
+ }
+ if (message.customAccount != null && message.hasOwnProperty("customAccount")) {
+ if (properties.authentication === 1)
+ return "authentication: multiple values";
+ properties.authentication = 1;
+ {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.verify(message.customAccount);
+ if (error)
+ return "customAccount." + error;
+ }
+ }
+ if (message.iapCredential != null && message.hasOwnProperty("iapCredential")) {
+ if (properties.authentication === 1)
+ return "authentication: multiple values";
+ properties.authentication = 1;
+ {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.verify(message.iapCredential);
+ if (error)
+ return "iapCredential." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Authentication message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication} Authentication
+ */
+ Authentication.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication();
+ if (object.googleAccount != null) {
+ if (typeof object.googleAccount !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanConfig.Authentication.googleAccount: object expected");
+ message.googleAccount = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.fromObject(object.googleAccount);
+ }
+ if (object.customAccount != null) {
+ if (typeof object.customAccount !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanConfig.Authentication.customAccount: object expected");
+ message.customAccount = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.fromObject(object.customAccount);
+ }
+ if (object.iapCredential != null) {
+ if (typeof object.iapCredential !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanConfig.Authentication.iapCredential: object expected");
+ message.iapCredential = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.fromObject(object.iapCredential);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Authentication message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication} message Authentication
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Authentication.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.googleAccount != null && message.hasOwnProperty("googleAccount")) {
+ object.googleAccount = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.toObject(message.googleAccount, options);
+ if (options.oneofs)
+ object.authentication = "googleAccount";
+ }
+ if (message.customAccount != null && message.hasOwnProperty("customAccount")) {
+ object.customAccount = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.toObject(message.customAccount, options);
+ if (options.oneofs)
+ object.authentication = "customAccount";
+ }
+ if (message.iapCredential != null && message.hasOwnProperty("iapCredential")) {
+ object.iapCredential = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.toObject(message.iapCredential, options);
+ if (options.oneofs)
+ object.authentication = "iapCredential";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Authentication to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Authentication.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Authentication
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Authentication.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ScanConfig.Authentication";
+ };
+
+ Authentication.GoogleAccount = (function() {
+
+ /**
+ * Properties of a GoogleAccount.
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @interface IGoogleAccount
+ * @property {string|null} [username] GoogleAccount username
+ * @property {string|null} [password] GoogleAccount password
+ */
+
+ /**
+ * Constructs a new GoogleAccount.
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @classdesc Represents a GoogleAccount.
+ * @implements IGoogleAccount
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IGoogleAccount=} [properties] Properties to set
+ */
+ function GoogleAccount(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]];
+ }
+
+ /**
+ * GoogleAccount username.
+ * @member {string} username
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount
+ * @instance
+ */
+ GoogleAccount.prototype.username = "";
+
+ /**
+ * GoogleAccount password.
+ * @member {string} password
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount
+ * @instance
+ */
+ GoogleAccount.prototype.password = "";
+
+ /**
+ * Creates a new GoogleAccount instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IGoogleAccount=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} GoogleAccount instance
+ */
+ GoogleAccount.create = function create(properties) {
+ return new GoogleAccount(properties);
+ };
+
+ /**
+ * Encodes the specified GoogleAccount message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IGoogleAccount} message GoogleAccount message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GoogleAccount.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.username != null && Object.hasOwnProperty.call(message, "username"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.username);
+ if (message.password != null && Object.hasOwnProperty.call(message, "password"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.password);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GoogleAccount message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IGoogleAccount} message GoogleAccount message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GoogleAccount.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GoogleAccount message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} GoogleAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GoogleAccount.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.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.username = reader.string();
+ break;
+ }
+ case 2: {
+ message.password = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GoogleAccount message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} GoogleAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GoogleAccount.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GoogleAccount message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GoogleAccount.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.username != null && message.hasOwnProperty("username"))
+ if (!$util.isString(message.username))
+ return "username: string expected";
+ if (message.password != null && message.hasOwnProperty("password"))
+ if (!$util.isString(message.password))
+ return "password: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GoogleAccount message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} GoogleAccount
+ */
+ GoogleAccount.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount();
+ if (object.username != null)
+ message.username = String(object.username);
+ if (object.password != null)
+ message.password = String(object.password);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GoogleAccount message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} message GoogleAccount
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GoogleAccount.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.username = "";
+ object.password = "";
+ }
+ if (message.username != null && message.hasOwnProperty("username"))
+ object.username = message.username;
+ if (message.password != null && message.hasOwnProperty("password"))
+ object.password = message.password;
+ return object;
+ };
+
+ /**
+ * Converts this GoogleAccount to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GoogleAccount.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GoogleAccount
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GoogleAccount.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount";
+ };
+
+ return GoogleAccount;
+ })();
+
+ Authentication.CustomAccount = (function() {
+
+ /**
+ * Properties of a CustomAccount.
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @interface ICustomAccount
+ * @property {string|null} [username] CustomAccount username
+ * @property {string|null} [password] CustomAccount password
+ * @property {string|null} [loginUrl] CustomAccount loginUrl
+ */
+
+ /**
+ * Constructs a new CustomAccount.
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @classdesc Represents a CustomAccount.
+ * @implements ICustomAccount
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.ICustomAccount=} [properties] Properties to set
+ */
+ function CustomAccount(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]];
+ }
+
+ /**
+ * CustomAccount username.
+ * @member {string} username
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @instance
+ */
+ CustomAccount.prototype.username = "";
+
+ /**
+ * CustomAccount password.
+ * @member {string} password
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @instance
+ */
+ CustomAccount.prototype.password = "";
+
+ /**
+ * CustomAccount loginUrl.
+ * @member {string} loginUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @instance
+ */
+ CustomAccount.prototype.loginUrl = "";
+
+ /**
+ * Creates a new CustomAccount instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.ICustomAccount=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} CustomAccount instance
+ */
+ CustomAccount.create = function create(properties) {
+ return new CustomAccount(properties);
+ };
+
+ /**
+ * Encodes the specified CustomAccount message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.ICustomAccount} message CustomAccount message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomAccount.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.username != null && Object.hasOwnProperty.call(message, "username"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.username);
+ if (message.password != null && Object.hasOwnProperty.call(message, "password"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.password);
+ if (message.loginUrl != null && Object.hasOwnProperty.call(message, "loginUrl"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.loginUrl);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CustomAccount message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.ICustomAccount} message CustomAccount message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomAccount.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CustomAccount message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} CustomAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomAccount.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.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.username = reader.string();
+ break;
+ }
+ case 2: {
+ message.password = reader.string();
+ break;
+ }
+ case 3: {
+ message.loginUrl = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CustomAccount message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} CustomAccount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomAccount.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CustomAccount message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CustomAccount.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.username != null && message.hasOwnProperty("username"))
+ if (!$util.isString(message.username))
+ return "username: string expected";
+ if (message.password != null && message.hasOwnProperty("password"))
+ if (!$util.isString(message.password))
+ return "password: string expected";
+ if (message.loginUrl != null && message.hasOwnProperty("loginUrl"))
+ if (!$util.isString(message.loginUrl))
+ return "loginUrl: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CustomAccount message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} CustomAccount
+ */
+ CustomAccount.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount();
+ if (object.username != null)
+ message.username = String(object.username);
+ if (object.password != null)
+ message.password = String(object.password);
+ if (object.loginUrl != null)
+ message.loginUrl = String(object.loginUrl);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CustomAccount message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} message CustomAccount
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CustomAccount.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.username = "";
+ object.password = "";
+ object.loginUrl = "";
+ }
+ if (message.username != null && message.hasOwnProperty("username"))
+ object.username = message.username;
+ if (message.password != null && message.hasOwnProperty("password"))
+ object.password = message.password;
+ if (message.loginUrl != null && message.hasOwnProperty("loginUrl"))
+ object.loginUrl = message.loginUrl;
+ return object;
+ };
+
+ /**
+ * Converts this CustomAccount to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CustomAccount.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CustomAccount
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CustomAccount.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount";
+ };
+
+ return CustomAccount;
+ })();
+
+ Authentication.IapCredential = (function() {
+
+ /**
+ * Properties of an IapCredential.
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @interface IIapCredential
+ * @property {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IIapTestServiceAccountInfo|null} [iapTestServiceAccountInfo] IapCredential iapTestServiceAccountInfo
+ */
+
+ /**
+ * Constructs a new IapCredential.
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication
+ * @classdesc Represents an IapCredential.
+ * @implements IIapCredential
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IIapCredential=} [properties] Properties to set
+ */
+ function IapCredential(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]];
+ }
+
+ /**
+ * IapCredential iapTestServiceAccountInfo.
+ * @member {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IIapTestServiceAccountInfo|null|undefined} iapTestServiceAccountInfo
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @instance
+ */
+ IapCredential.prototype.iapTestServiceAccountInfo = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * IapCredential iapCredentials.
+ * @member {"iapTestServiceAccountInfo"|undefined} iapCredentials
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @instance
+ */
+ Object.defineProperty(IapCredential.prototype, "iapCredentials", {
+ get: $util.oneOfGetter($oneOfFields = ["iapTestServiceAccountInfo"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new IapCredential instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IIapCredential=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} IapCredential instance
+ */
+ IapCredential.create = function create(properties) {
+ return new IapCredential(properties);
+ };
+
+ /**
+ * Encodes the specified IapCredential message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IIapCredential} message IapCredential message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IapCredential.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.iapTestServiceAccountInfo != null && Object.hasOwnProperty.call(message, "iapTestServiceAccountInfo"))
+ $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.encode(message.iapTestServiceAccountInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified IapCredential message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IIapCredential} message IapCredential message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IapCredential.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an IapCredential message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} IapCredential
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IapCredential.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.websecurityscanner.v1.ScanConfig.Authentication.IapCredential();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.iapTestServiceAccountInfo = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an IapCredential message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} IapCredential
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IapCredential.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an IapCredential message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ IapCredential.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.iapTestServiceAccountInfo != null && message.hasOwnProperty("iapTestServiceAccountInfo")) {
+ properties.iapCredentials = 1;
+ {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.verify(message.iapTestServiceAccountInfo);
+ if (error)
+ return "iapTestServiceAccountInfo." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an IapCredential message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} IapCredential
+ */
+ IapCredential.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential();
+ if (object.iapTestServiceAccountInfo != null) {
+ if (typeof object.iapTestServiceAccountInfo !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.iapTestServiceAccountInfo: object expected");
+ message.iapTestServiceAccountInfo = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.fromObject(object.iapTestServiceAccountInfo);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an IapCredential message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} message IapCredential
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ IapCredential.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.iapTestServiceAccountInfo != null && message.hasOwnProperty("iapTestServiceAccountInfo")) {
+ object.iapTestServiceAccountInfo = $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.toObject(message.iapTestServiceAccountInfo, options);
+ if (options.oneofs)
+ object.iapCredentials = "iapTestServiceAccountInfo";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this IapCredential to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ IapCredential.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for IapCredential
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ IapCredential.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential";
+ };
+
+ IapCredential.IapTestServiceAccountInfo = (function() {
+
+ /**
+ * Properties of an IapTestServiceAccountInfo.
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @interface IIapTestServiceAccountInfo
+ * @property {string|null} [targetAudienceClientId] IapTestServiceAccountInfo targetAudienceClientId
+ */
+
+ /**
+ * Constructs a new IapTestServiceAccountInfo.
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential
+ * @classdesc Represents an IapTestServiceAccountInfo.
+ * @implements IIapTestServiceAccountInfo
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IIapTestServiceAccountInfo=} [properties] Properties to set
+ */
+ function IapTestServiceAccountInfo(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]];
+ }
+
+ /**
+ * IapTestServiceAccountInfo targetAudienceClientId.
+ * @member {string} targetAudienceClientId
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo
+ * @instance
+ */
+ IapTestServiceAccountInfo.prototype.targetAudienceClientId = "";
+
+ /**
+ * Creates a new IapTestServiceAccountInfo instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IIapTestServiceAccountInfo=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} IapTestServiceAccountInfo instance
+ */
+ IapTestServiceAccountInfo.create = function create(properties) {
+ return new IapTestServiceAccountInfo(properties);
+ };
+
+ /**
+ * Encodes the specified IapTestServiceAccountInfo message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IIapTestServiceAccountInfo} message IapTestServiceAccountInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IapTestServiceAccountInfo.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.targetAudienceClientId != null && Object.hasOwnProperty.call(message, "targetAudienceClientId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.targetAudienceClientId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified IapTestServiceAccountInfo message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IIapTestServiceAccountInfo} message IapTestServiceAccountInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IapTestServiceAccountInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an IapTestServiceAccountInfo message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} IapTestServiceAccountInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IapTestServiceAccountInfo.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.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.targetAudienceClientId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an IapTestServiceAccountInfo message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} IapTestServiceAccountInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IapTestServiceAccountInfo.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an IapTestServiceAccountInfo message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ IapTestServiceAccountInfo.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.targetAudienceClientId != null && message.hasOwnProperty("targetAudienceClientId"))
+ if (!$util.isString(message.targetAudienceClientId))
+ return "targetAudienceClientId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an IapTestServiceAccountInfo message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} IapTestServiceAccountInfo
+ */
+ IapTestServiceAccountInfo.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo();
+ if (object.targetAudienceClientId != null)
+ message.targetAudienceClientId = String(object.targetAudienceClientId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an IapTestServiceAccountInfo message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} message IapTestServiceAccountInfo
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ IapTestServiceAccountInfo.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.targetAudienceClientId = "";
+ if (message.targetAudienceClientId != null && message.hasOwnProperty("targetAudienceClientId"))
+ object.targetAudienceClientId = message.targetAudienceClientId;
+ return object;
+ };
+
+ /**
+ * Converts this IapTestServiceAccountInfo to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ IapTestServiceAccountInfo.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for IapTestServiceAccountInfo
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ IapTestServiceAccountInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo";
+ };
+
+ return IapTestServiceAccountInfo;
+ })();
+
+ return IapCredential;
+ })();
+
+ return Authentication;
+ })();
+
+ ScanConfig.Schedule = (function() {
+
+ /**
+ * Properties of a Schedule.
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @interface ISchedule
+ * @property {google.protobuf.ITimestamp|null} [scheduleTime] Schedule scheduleTime
+ * @property {number|null} [intervalDurationDays] Schedule intervalDurationDays
+ */
+
+ /**
+ * Constructs a new Schedule.
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig
+ * @classdesc Represents a Schedule.
+ * @implements ISchedule
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.ISchedule=} [properties] Properties to set
+ */
+ function Schedule(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]];
+ }
+
+ /**
+ * Schedule scheduleTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} scheduleTime
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Schedule
+ * @instance
+ */
+ Schedule.prototype.scheduleTime = null;
+
+ /**
+ * Schedule intervalDurationDays.
+ * @member {number} intervalDurationDays
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Schedule
+ * @instance
+ */
+ Schedule.prototype.intervalDurationDays = 0;
+
+ /**
+ * Creates a new Schedule instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Schedule
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.ISchedule=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Schedule} Schedule instance
+ */
+ Schedule.create = function create(properties) {
+ return new Schedule(properties);
+ };
+
+ /**
+ * Encodes the specified Schedule message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Schedule.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Schedule
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.ISchedule} message Schedule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Schedule.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.scheduleTime != null && Object.hasOwnProperty.call(message, "scheduleTime"))
+ $root.google.protobuf.Timestamp.encode(message.scheduleTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.intervalDurationDays != null && Object.hasOwnProperty.call(message, "intervalDurationDays"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.intervalDurationDays);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Schedule message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfig.Schedule.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Schedule
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.ISchedule} message Schedule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Schedule.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Schedule message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Schedule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Schedule} Schedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Schedule.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.websecurityscanner.v1.ScanConfig.Schedule();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.scheduleTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.intervalDurationDays = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Schedule message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Schedule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Schedule} Schedule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Schedule.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Schedule message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Schedule
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Schedule.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.scheduleTime != null && message.hasOwnProperty("scheduleTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.scheduleTime);
+ if (error)
+ return "scheduleTime." + error;
+ }
+ if (message.intervalDurationDays != null && message.hasOwnProperty("intervalDurationDays"))
+ if (!$util.isInteger(message.intervalDurationDays))
+ return "intervalDurationDays: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a Schedule message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Schedule
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfig.Schedule} Schedule
+ */
+ Schedule.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ScanConfig.Schedule)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ScanConfig.Schedule();
+ if (object.scheduleTime != null) {
+ if (typeof object.scheduleTime !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanConfig.Schedule.scheduleTime: object expected");
+ message.scheduleTime = $root.google.protobuf.Timestamp.fromObject(object.scheduleTime);
+ }
+ if (object.intervalDurationDays != null)
+ message.intervalDurationDays = object.intervalDurationDays | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Schedule message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Schedule
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig.Schedule} message Schedule
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Schedule.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.scheduleTime = null;
+ object.intervalDurationDays = 0;
+ }
+ if (message.scheduleTime != null && message.hasOwnProperty("scheduleTime"))
+ object.scheduleTime = $root.google.protobuf.Timestamp.toObject(message.scheduleTime, options);
+ if (message.intervalDurationDays != null && message.hasOwnProperty("intervalDurationDays"))
+ object.intervalDurationDays = message.intervalDurationDays;
+ return object;
+ };
+
+ /**
+ * Converts this Schedule to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Schedule
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Schedule.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Schedule
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfig.Schedule
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Schedule.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ScanConfig.Schedule";
+ };
+
+ return Schedule;
+ })();
+
+ /**
+ * UserAgent enum.
+ * @name google.cloud.websecurityscanner.v1.ScanConfig.UserAgent
+ * @enum {number}
+ * @property {number} USER_AGENT_UNSPECIFIED=0 USER_AGENT_UNSPECIFIED value
+ * @property {number} CHROME_LINUX=1 CHROME_LINUX value
+ * @property {number} CHROME_ANDROID=2 CHROME_ANDROID value
+ * @property {number} SAFARI_IPHONE=3 SAFARI_IPHONE value
+ */
+ ScanConfig.UserAgent = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "USER_AGENT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CHROME_LINUX"] = 1;
+ values[valuesById[2] = "CHROME_ANDROID"] = 2;
+ values[valuesById[3] = "SAFARI_IPHONE"] = 3;
+ return values;
+ })();
+
+ /**
+ * RiskLevel enum.
+ * @name google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel
+ * @enum {number}
+ * @property {number} RISK_LEVEL_UNSPECIFIED=0 RISK_LEVEL_UNSPECIFIED value
+ * @property {number} NORMAL=1 NORMAL value
+ * @property {number} LOW=2 LOW value
+ */
+ ScanConfig.RiskLevel = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "RISK_LEVEL_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "NORMAL"] = 1;
+ values[valuesById[2] = "LOW"] = 2;
+ return values;
+ })();
+
+ /**
+ * ExportToSecurityCommandCenter enum.
+ * @name google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter
+ * @enum {number}
+ * @property {number} EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED=0 EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED value
+ * @property {number} ENABLED=1 ENABLED value
+ * @property {number} DISABLED=2 DISABLED value
+ */
+ ScanConfig.ExportToSecurityCommandCenter = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ENABLED"] = 1;
+ values[valuesById[2] = "DISABLED"] = 2;
+ return values;
+ })();
+
+ return ScanConfig;
+ })();
+
+ v1.ScanConfigError = (function() {
+
+ /**
+ * Properties of a ScanConfigError.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IScanConfigError
+ * @property {google.cloud.websecurityscanner.v1.ScanConfigError.Code|null} [code] ScanConfigError code
+ * @property {string|null} [fieldName] ScanConfigError fieldName
+ */
+
+ /**
+ * Constructs a new ScanConfigError.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ScanConfigError.
+ * @implements IScanConfigError
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IScanConfigError=} [properties] Properties to set
+ */
+ function ScanConfigError(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]];
+ }
+
+ /**
+ * ScanConfigError code.
+ * @member {google.cloud.websecurityscanner.v1.ScanConfigError.Code} code
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfigError
+ * @instance
+ */
+ ScanConfigError.prototype.code = 0;
+
+ /**
+ * ScanConfigError fieldName.
+ * @member {string} fieldName
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfigError
+ * @instance
+ */
+ ScanConfigError.prototype.fieldName = "";
+
+ /**
+ * Creates a new ScanConfigError instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfigError
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanConfigError=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfigError} ScanConfigError instance
+ */
+ ScanConfigError.create = function create(properties) {
+ return new ScanConfigError(properties);
+ };
+
+ /**
+ * Encodes the specified ScanConfigError message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfigError.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfigError
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanConfigError} message ScanConfigError message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ScanConfigError.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
+ if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.fieldName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ScanConfigError message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanConfigError.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfigError
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanConfigError} message ScanConfigError message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ScanConfigError.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ScanConfigError message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfigError
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfigError} ScanConfigError
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ScanConfigError.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.websecurityscanner.v1.ScanConfigError();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.code = reader.int32();
+ break;
+ }
+ case 2: {
+ message.fieldName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ScanConfigError message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfigError
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfigError} ScanConfigError
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ScanConfigError.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ScanConfigError message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfigError
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ScanConfigError.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.code != null && message.hasOwnProperty("code"))
+ switch (message.code) {
+ default:
+ return "code: enum value expected";
+ case 0:
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13:
+ case 14:
+ case 15:
+ case 16:
+ case 18:
+ case 19:
+ case 20:
+ case 21:
+ case 43:
+ case 22:
+ case 23:
+ case 24:
+ case 25:
+ case 26:
+ case 27:
+ case 28:
+ case 29:
+ case 30:
+ case 31:
+ case 32:
+ case 33:
+ case 35:
+ case 36:
+ case 37:
+ case 38:
+ case 39:
+ case 40:
+ case 41:
+ case 42:
+ break;
+ }
+ if (message.fieldName != null && message.hasOwnProperty("fieldName"))
+ if (!$util.isString(message.fieldName))
+ return "fieldName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ScanConfigError message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfigError
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ScanConfigError} ScanConfigError
+ */
+ ScanConfigError.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ScanConfigError)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ScanConfigError();
+ switch (object.code) {
+ default:
+ if (typeof object.code === "number") {
+ message.code = object.code;
+ break;
+ }
+ break;
+ case "CODE_UNSPECIFIED":
+ case 0:
+ message.code = 0;
+ break;
+ case "OK":
+ case 0:
+ message.code = 0;
+ break;
+ case "INTERNAL_ERROR":
+ case 1:
+ message.code = 1;
+ break;
+ case "APPENGINE_API_BACKEND_ERROR":
+ case 2:
+ message.code = 2;
+ break;
+ case "APPENGINE_API_NOT_ACCESSIBLE":
+ case 3:
+ message.code = 3;
+ break;
+ case "APPENGINE_DEFAULT_HOST_MISSING":
+ case 4:
+ message.code = 4;
+ break;
+ case "CANNOT_USE_GOOGLE_COM_ACCOUNT":
+ case 6:
+ message.code = 6;
+ break;
+ case "CANNOT_USE_OWNER_ACCOUNT":
+ case 7:
+ message.code = 7;
+ break;
+ case "COMPUTE_API_BACKEND_ERROR":
+ case 8:
+ message.code = 8;
+ break;
+ case "COMPUTE_API_NOT_ACCESSIBLE":
+ case 9:
+ message.code = 9;
+ break;
+ case "CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT":
+ case 10:
+ message.code = 10;
+ break;
+ case "CUSTOM_LOGIN_URL_MALFORMED":
+ case 11:
+ message.code = 11;
+ break;
+ case "CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS":
+ case 12:
+ message.code = 12;
+ break;
+ case "CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS":
+ case 13:
+ message.code = 13;
+ break;
+ case "CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS":
+ case 14:
+ message.code = 14;
+ break;
+ case "CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS":
+ case 15:
+ message.code = 15;
+ break;
+ case "DUPLICATE_SCAN_NAME":
+ case 16:
+ message.code = 16;
+ break;
+ case "INVALID_FIELD_VALUE":
+ case 18:
+ message.code = 18;
+ break;
+ case "FAILED_TO_AUTHENTICATE_TO_TARGET":
+ case 19:
+ message.code = 19;
+ break;
+ case "FINDING_TYPE_UNSPECIFIED":
+ case 20:
+ message.code = 20;
+ break;
+ case "FORBIDDEN_TO_SCAN_COMPUTE":
+ case 21:
+ message.code = 21;
+ break;
+ case "FORBIDDEN_UPDATE_TO_MANAGED_SCAN":
+ case 43:
+ message.code = 43;
+ break;
+ case "MALFORMED_FILTER":
+ case 22:
+ message.code = 22;
+ break;
+ case "MALFORMED_RESOURCE_NAME":
+ case 23:
+ message.code = 23;
+ break;
+ case "PROJECT_INACTIVE":
+ case 24:
+ message.code = 24;
+ break;
+ case "REQUIRED_FIELD":
+ case 25:
+ message.code = 25;
+ break;
+ case "RESOURCE_NAME_INCONSISTENT":
+ case 26:
+ message.code = 26;
+ break;
+ case "SCAN_ALREADY_RUNNING":
+ case 27:
+ message.code = 27;
+ break;
+ case "SCAN_NOT_RUNNING":
+ case 28:
+ message.code = 28;
+ break;
+ case "SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT":
+ case 29:
+ message.code = 29;
+ break;
+ case "SEED_URL_MALFORMED":
+ case 30:
+ message.code = 30;
+ break;
+ case "SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS":
+ case 31:
+ message.code = 31;
+ break;
+ case "SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS":
+ case 32:
+ message.code = 32;
+ break;
+ case "SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS":
+ case 33:
+ message.code = 33;
+ break;
+ case "SEED_URL_HAS_UNRESERVED_IP_ADDRESS":
+ case 35:
+ message.code = 35;
+ break;
+ case "SERVICE_ACCOUNT_NOT_CONFIGURED":
+ case 36:
+ message.code = 36;
+ break;
+ case "TOO_MANY_SCANS":
+ case 37:
+ message.code = 37;
+ break;
+ case "UNABLE_TO_RESOLVE_PROJECT_INFO":
+ case 38:
+ message.code = 38;
+ break;
+ case "UNSUPPORTED_BLACKLIST_PATTERN_FORMAT":
+ case 39:
+ message.code = 39;
+ break;
+ case "UNSUPPORTED_FILTER":
+ case 40:
+ message.code = 40;
+ break;
+ case "UNSUPPORTED_FINDING_TYPE":
+ case 41:
+ message.code = 41;
+ break;
+ case "UNSUPPORTED_URL_SCHEME":
+ case 42:
+ message.code = 42;
+ break;
+ }
+ if (object.fieldName != null)
+ message.fieldName = String(object.fieldName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ScanConfigError message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfigError
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanConfigError} message ScanConfigError
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ScanConfigError.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.code = options.enums === String ? "CODE_UNSPECIFIED" : 0;
+ object.fieldName = "";
+ }
+ if (message.code != null && message.hasOwnProperty("code"))
+ object.code = options.enums === String ? $root.google.cloud.websecurityscanner.v1.ScanConfigError.Code[message.code] === undefined ? message.code : $root.google.cloud.websecurityscanner.v1.ScanConfigError.Code[message.code] : message.code;
+ if (message.fieldName != null && message.hasOwnProperty("fieldName"))
+ object.fieldName = message.fieldName;
+ return object;
+ };
+
+ /**
+ * Converts this ScanConfigError to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfigError
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ScanConfigError.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ScanConfigError
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanConfigError
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ScanConfigError.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ScanConfigError";
+ };
+
+ /**
+ * Code enum.
+ * @name google.cloud.websecurityscanner.v1.ScanConfigError.Code
+ * @enum {number}
+ * @property {number} CODE_UNSPECIFIED=0 CODE_UNSPECIFIED value
+ * @property {number} OK=0 OK value
+ * @property {number} INTERNAL_ERROR=1 INTERNAL_ERROR value
+ * @property {number} APPENGINE_API_BACKEND_ERROR=2 APPENGINE_API_BACKEND_ERROR value
+ * @property {number} APPENGINE_API_NOT_ACCESSIBLE=3 APPENGINE_API_NOT_ACCESSIBLE value
+ * @property {number} APPENGINE_DEFAULT_HOST_MISSING=4 APPENGINE_DEFAULT_HOST_MISSING value
+ * @property {number} CANNOT_USE_GOOGLE_COM_ACCOUNT=6 CANNOT_USE_GOOGLE_COM_ACCOUNT value
+ * @property {number} CANNOT_USE_OWNER_ACCOUNT=7 CANNOT_USE_OWNER_ACCOUNT value
+ * @property {number} COMPUTE_API_BACKEND_ERROR=8 COMPUTE_API_BACKEND_ERROR value
+ * @property {number} COMPUTE_API_NOT_ACCESSIBLE=9 COMPUTE_API_NOT_ACCESSIBLE value
+ * @property {number} CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT=10 CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT value
+ * @property {number} CUSTOM_LOGIN_URL_MALFORMED=11 CUSTOM_LOGIN_URL_MALFORMED value
+ * @property {number} CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS=12 CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS value
+ * @property {number} CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS=13 CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS value
+ * @property {number} CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS=14 CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS value
+ * @property {number} CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS=15 CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS value
+ * @property {number} DUPLICATE_SCAN_NAME=16 DUPLICATE_SCAN_NAME value
+ * @property {number} INVALID_FIELD_VALUE=18 INVALID_FIELD_VALUE value
+ * @property {number} FAILED_TO_AUTHENTICATE_TO_TARGET=19 FAILED_TO_AUTHENTICATE_TO_TARGET value
+ * @property {number} FINDING_TYPE_UNSPECIFIED=20 FINDING_TYPE_UNSPECIFIED value
+ * @property {number} FORBIDDEN_TO_SCAN_COMPUTE=21 FORBIDDEN_TO_SCAN_COMPUTE value
+ * @property {number} FORBIDDEN_UPDATE_TO_MANAGED_SCAN=43 FORBIDDEN_UPDATE_TO_MANAGED_SCAN value
+ * @property {number} MALFORMED_FILTER=22 MALFORMED_FILTER value
+ * @property {number} MALFORMED_RESOURCE_NAME=23 MALFORMED_RESOURCE_NAME value
+ * @property {number} PROJECT_INACTIVE=24 PROJECT_INACTIVE value
+ * @property {number} REQUIRED_FIELD=25 REQUIRED_FIELD value
+ * @property {number} RESOURCE_NAME_INCONSISTENT=26 RESOURCE_NAME_INCONSISTENT value
+ * @property {number} SCAN_ALREADY_RUNNING=27 SCAN_ALREADY_RUNNING value
+ * @property {number} SCAN_NOT_RUNNING=28 SCAN_NOT_RUNNING value
+ * @property {number} SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT=29 SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT value
+ * @property {number} SEED_URL_MALFORMED=30 SEED_URL_MALFORMED value
+ * @property {number} SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS=31 SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS value
+ * @property {number} SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS=32 SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS value
+ * @property {number} SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS=33 SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS value
+ * @property {number} SEED_URL_HAS_UNRESERVED_IP_ADDRESS=35 SEED_URL_HAS_UNRESERVED_IP_ADDRESS value
+ * @property {number} SERVICE_ACCOUNT_NOT_CONFIGURED=36 SERVICE_ACCOUNT_NOT_CONFIGURED value
+ * @property {number} TOO_MANY_SCANS=37 TOO_MANY_SCANS value
+ * @property {number} UNABLE_TO_RESOLVE_PROJECT_INFO=38 UNABLE_TO_RESOLVE_PROJECT_INFO value
+ * @property {number} UNSUPPORTED_BLACKLIST_PATTERN_FORMAT=39 UNSUPPORTED_BLACKLIST_PATTERN_FORMAT value
+ * @property {number} UNSUPPORTED_FILTER=40 UNSUPPORTED_FILTER value
+ * @property {number} UNSUPPORTED_FINDING_TYPE=41 UNSUPPORTED_FINDING_TYPE value
+ * @property {number} UNSUPPORTED_URL_SCHEME=42 UNSUPPORTED_URL_SCHEME value
+ */
+ ScanConfigError.Code = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CODE_UNSPECIFIED"] = 0;
+ values["OK"] = 0;
+ values[valuesById[1] = "INTERNAL_ERROR"] = 1;
+ values[valuesById[2] = "APPENGINE_API_BACKEND_ERROR"] = 2;
+ values[valuesById[3] = "APPENGINE_API_NOT_ACCESSIBLE"] = 3;
+ values[valuesById[4] = "APPENGINE_DEFAULT_HOST_MISSING"] = 4;
+ values[valuesById[6] = "CANNOT_USE_GOOGLE_COM_ACCOUNT"] = 6;
+ values[valuesById[7] = "CANNOT_USE_OWNER_ACCOUNT"] = 7;
+ values[valuesById[8] = "COMPUTE_API_BACKEND_ERROR"] = 8;
+ values[valuesById[9] = "COMPUTE_API_NOT_ACCESSIBLE"] = 9;
+ values[valuesById[10] = "CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT"] = 10;
+ values[valuesById[11] = "CUSTOM_LOGIN_URL_MALFORMED"] = 11;
+ values[valuesById[12] = "CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS"] = 12;
+ values[valuesById[13] = "CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS"] = 13;
+ values[valuesById[14] = "CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS"] = 14;
+ values[valuesById[15] = "CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS"] = 15;
+ values[valuesById[16] = "DUPLICATE_SCAN_NAME"] = 16;
+ values[valuesById[18] = "INVALID_FIELD_VALUE"] = 18;
+ values[valuesById[19] = "FAILED_TO_AUTHENTICATE_TO_TARGET"] = 19;
+ values[valuesById[20] = "FINDING_TYPE_UNSPECIFIED"] = 20;
+ values[valuesById[21] = "FORBIDDEN_TO_SCAN_COMPUTE"] = 21;
+ values[valuesById[43] = "FORBIDDEN_UPDATE_TO_MANAGED_SCAN"] = 43;
+ values[valuesById[22] = "MALFORMED_FILTER"] = 22;
+ values[valuesById[23] = "MALFORMED_RESOURCE_NAME"] = 23;
+ values[valuesById[24] = "PROJECT_INACTIVE"] = 24;
+ values[valuesById[25] = "REQUIRED_FIELD"] = 25;
+ values[valuesById[26] = "RESOURCE_NAME_INCONSISTENT"] = 26;
+ values[valuesById[27] = "SCAN_ALREADY_RUNNING"] = 27;
+ values[valuesById[28] = "SCAN_NOT_RUNNING"] = 28;
+ values[valuesById[29] = "SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT"] = 29;
+ values[valuesById[30] = "SEED_URL_MALFORMED"] = 30;
+ values[valuesById[31] = "SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS"] = 31;
+ values[valuesById[32] = "SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS"] = 32;
+ values[valuesById[33] = "SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS"] = 33;
+ values[valuesById[35] = "SEED_URL_HAS_UNRESERVED_IP_ADDRESS"] = 35;
+ values[valuesById[36] = "SERVICE_ACCOUNT_NOT_CONFIGURED"] = 36;
+ values[valuesById[37] = "TOO_MANY_SCANS"] = 37;
+ values[valuesById[38] = "UNABLE_TO_RESOLVE_PROJECT_INFO"] = 38;
+ values[valuesById[39] = "UNSUPPORTED_BLACKLIST_PATTERN_FORMAT"] = 39;
+ values[valuesById[40] = "UNSUPPORTED_FILTER"] = 40;
+ values[valuesById[41] = "UNSUPPORTED_FINDING_TYPE"] = 41;
+ values[valuesById[42] = "UNSUPPORTED_URL_SCHEME"] = 42;
+ return values;
+ })();
+
+ return ScanConfigError;
+ })();
+
+ v1.ScanRun = (function() {
+
+ /**
+ * Properties of a ScanRun.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IScanRun
+ * @property {string|null} [name] ScanRun name
+ * @property {google.cloud.websecurityscanner.v1.ScanRun.ExecutionState|null} [executionState] ScanRun executionState
+ * @property {google.cloud.websecurityscanner.v1.ScanRun.ResultState|null} [resultState] ScanRun resultState
+ * @property {google.protobuf.ITimestamp|null} [startTime] ScanRun startTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] ScanRun endTime
+ * @property {number|Long|null} [urlsCrawledCount] ScanRun urlsCrawledCount
+ * @property {number|Long|null} [urlsTestedCount] ScanRun urlsTestedCount
+ * @property {boolean|null} [hasVulnerabilities] ScanRun hasVulnerabilities
+ * @property {number|null} [progressPercent] ScanRun progressPercent
+ * @property {google.cloud.websecurityscanner.v1.IScanRunErrorTrace|null} [errorTrace] ScanRun errorTrace
+ * @property {Array.|null} [warningTraces] ScanRun warningTraces
+ */
+
+ /**
+ * Constructs a new ScanRun.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ScanRun.
+ * @implements IScanRun
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IScanRun=} [properties] Properties to set
+ */
+ function ScanRun(properties) {
+ this.warningTraces = [];
+ 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]];
+ }
+
+ /**
+ * ScanRun name.
+ * @member {string} name
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @instance
+ */
+ ScanRun.prototype.name = "";
+
+ /**
+ * ScanRun executionState.
+ * @member {google.cloud.websecurityscanner.v1.ScanRun.ExecutionState} executionState
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @instance
+ */
+ ScanRun.prototype.executionState = 0;
+
+ /**
+ * ScanRun resultState.
+ * @member {google.cloud.websecurityscanner.v1.ScanRun.ResultState} resultState
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @instance
+ */
+ ScanRun.prototype.resultState = 0;
+
+ /**
+ * ScanRun startTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} startTime
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @instance
+ */
+ ScanRun.prototype.startTime = null;
+
+ /**
+ * ScanRun endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @instance
+ */
+ ScanRun.prototype.endTime = null;
+
+ /**
+ * ScanRun urlsCrawledCount.
+ * @member {number|Long} urlsCrawledCount
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @instance
+ */
+ ScanRun.prototype.urlsCrawledCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ScanRun urlsTestedCount.
+ * @member {number|Long} urlsTestedCount
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @instance
+ */
+ ScanRun.prototype.urlsTestedCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ScanRun hasVulnerabilities.
+ * @member {boolean} hasVulnerabilities
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @instance
+ */
+ ScanRun.prototype.hasVulnerabilities = false;
+
+ /**
+ * ScanRun progressPercent.
+ * @member {number} progressPercent
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @instance
+ */
+ ScanRun.prototype.progressPercent = 0;
+
+ /**
+ * ScanRun errorTrace.
+ * @member {google.cloud.websecurityscanner.v1.IScanRunErrorTrace|null|undefined} errorTrace
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @instance
+ */
+ ScanRun.prototype.errorTrace = null;
+
+ /**
+ * ScanRun warningTraces.
+ * @member {Array.} warningTraces
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @instance
+ */
+ ScanRun.prototype.warningTraces = $util.emptyArray;
+
+ /**
+ * Creates a new ScanRun instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanRun=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ScanRun} ScanRun instance
+ */
+ ScanRun.create = function create(properties) {
+ return new ScanRun(properties);
+ };
+
+ /**
+ * Encodes the specified ScanRun message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRun.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanRun} message ScanRun message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ScanRun.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.executionState != null && Object.hasOwnProperty.call(message, "executionState"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.executionState);
+ if (message.resultState != null && Object.hasOwnProperty.call(message, "resultState"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.resultState);
+ if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
+ $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.urlsCrawledCount != null && Object.hasOwnProperty.call(message, "urlsCrawledCount"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int64(message.urlsCrawledCount);
+ if (message.urlsTestedCount != null && Object.hasOwnProperty.call(message, "urlsTestedCount"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int64(message.urlsTestedCount);
+ if (message.hasVulnerabilities != null && Object.hasOwnProperty.call(message, "hasVulnerabilities"))
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.hasVulnerabilities);
+ if (message.progressPercent != null && Object.hasOwnProperty.call(message, "progressPercent"))
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.progressPercent);
+ if (message.errorTrace != null && Object.hasOwnProperty.call(message, "errorTrace"))
+ $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.encode(message.errorTrace, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.warningTraces != null && message.warningTraces.length)
+ for (var i = 0; i < message.warningTraces.length; ++i)
+ $root.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.encode(message.warningTraces[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ScanRun message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRun.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanRun} message ScanRun message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ScanRun.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ScanRun message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ScanRun} ScanRun
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ScanRun.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.websecurityscanner.v1.ScanRun();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.executionState = reader.int32();
+ break;
+ }
+ case 3: {
+ message.resultState = reader.int32();
+ break;
+ }
+ case 4: {
+ message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.urlsCrawledCount = reader.int64();
+ break;
+ }
+ case 7: {
+ message.urlsTestedCount = reader.int64();
+ break;
+ }
+ case 8: {
+ message.hasVulnerabilities = reader.bool();
+ break;
+ }
+ case 9: {
+ message.progressPercent = reader.int32();
+ break;
+ }
+ case 10: {
+ message.errorTrace = $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.decode(reader, reader.uint32());
+ break;
+ }
+ case 11: {
+ if (!(message.warningTraces && message.warningTraces.length))
+ message.warningTraces = [];
+ message.warningTraces.push($root.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ScanRun message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ScanRun} ScanRun
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ScanRun.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ScanRun message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ScanRun.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.executionState != null && message.hasOwnProperty("executionState"))
+ switch (message.executionState) {
+ default:
+ return "executionState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.resultState != null && message.hasOwnProperty("resultState"))
+ switch (message.resultState) {
+ default:
+ return "resultState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.startTime != null && message.hasOwnProperty("startTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.startTime);
+ if (error)
+ return "startTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.urlsCrawledCount != null && message.hasOwnProperty("urlsCrawledCount"))
+ if (!$util.isInteger(message.urlsCrawledCount) && !(message.urlsCrawledCount && $util.isInteger(message.urlsCrawledCount.low) && $util.isInteger(message.urlsCrawledCount.high)))
+ return "urlsCrawledCount: integer|Long expected";
+ if (message.urlsTestedCount != null && message.hasOwnProperty("urlsTestedCount"))
+ if (!$util.isInteger(message.urlsTestedCount) && !(message.urlsTestedCount && $util.isInteger(message.urlsTestedCount.low) && $util.isInteger(message.urlsTestedCount.high)))
+ return "urlsTestedCount: integer|Long expected";
+ if (message.hasVulnerabilities != null && message.hasOwnProperty("hasVulnerabilities"))
+ if (typeof message.hasVulnerabilities !== "boolean")
+ return "hasVulnerabilities: boolean expected";
+ if (message.progressPercent != null && message.hasOwnProperty("progressPercent"))
+ if (!$util.isInteger(message.progressPercent))
+ return "progressPercent: integer expected";
+ if (message.errorTrace != null && message.hasOwnProperty("errorTrace")) {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.verify(message.errorTrace);
+ if (error)
+ return "errorTrace." + error;
+ }
+ if (message.warningTraces != null && message.hasOwnProperty("warningTraces")) {
+ if (!Array.isArray(message.warningTraces))
+ return "warningTraces: array expected";
+ for (var i = 0; i < message.warningTraces.length; ++i) {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.verify(message.warningTraces[i]);
+ if (error)
+ return "warningTraces." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ScanRun message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ScanRun} ScanRun
+ */
+ ScanRun.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ScanRun)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ScanRun();
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.executionState) {
+ default:
+ if (typeof object.executionState === "number") {
+ message.executionState = object.executionState;
+ break;
+ }
+ break;
+ case "EXECUTION_STATE_UNSPECIFIED":
+ case 0:
+ message.executionState = 0;
+ break;
+ case "QUEUED":
+ case 1:
+ message.executionState = 1;
+ break;
+ case "SCANNING":
+ case 2:
+ message.executionState = 2;
+ break;
+ case "FINISHED":
+ case 3:
+ message.executionState = 3;
+ break;
+ }
+ switch (object.resultState) {
+ default:
+ if (typeof object.resultState === "number") {
+ message.resultState = object.resultState;
+ break;
+ }
+ break;
+ case "RESULT_STATE_UNSPECIFIED":
+ case 0:
+ message.resultState = 0;
+ break;
+ case "SUCCESS":
+ case 1:
+ message.resultState = 1;
+ break;
+ case "ERROR":
+ case 2:
+ message.resultState = 2;
+ break;
+ case "KILLED":
+ case 3:
+ message.resultState = 3;
+ break;
+ }
+ if (object.startTime != null) {
+ if (typeof object.startTime !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanRun.startTime: object expected");
+ message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanRun.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ if (object.urlsCrawledCount != null)
+ if ($util.Long)
+ (message.urlsCrawledCount = $util.Long.fromValue(object.urlsCrawledCount)).unsigned = false;
+ else if (typeof object.urlsCrawledCount === "string")
+ message.urlsCrawledCount = parseInt(object.urlsCrawledCount, 10);
+ else if (typeof object.urlsCrawledCount === "number")
+ message.urlsCrawledCount = object.urlsCrawledCount;
+ else if (typeof object.urlsCrawledCount === "object")
+ message.urlsCrawledCount = new $util.LongBits(object.urlsCrawledCount.low >>> 0, object.urlsCrawledCount.high >>> 0).toNumber();
+ if (object.urlsTestedCount != null)
+ if ($util.Long)
+ (message.urlsTestedCount = $util.Long.fromValue(object.urlsTestedCount)).unsigned = false;
+ else if (typeof object.urlsTestedCount === "string")
+ message.urlsTestedCount = parseInt(object.urlsTestedCount, 10);
+ else if (typeof object.urlsTestedCount === "number")
+ message.urlsTestedCount = object.urlsTestedCount;
+ else if (typeof object.urlsTestedCount === "object")
+ message.urlsTestedCount = new $util.LongBits(object.urlsTestedCount.low >>> 0, object.urlsTestedCount.high >>> 0).toNumber();
+ if (object.hasVulnerabilities != null)
+ message.hasVulnerabilities = Boolean(object.hasVulnerabilities);
+ if (object.progressPercent != null)
+ message.progressPercent = object.progressPercent | 0;
+ if (object.errorTrace != null) {
+ if (typeof object.errorTrace !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanRun.errorTrace: object expected");
+ message.errorTrace = $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.fromObject(object.errorTrace);
+ }
+ if (object.warningTraces) {
+ if (!Array.isArray(object.warningTraces))
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanRun.warningTraces: array expected");
+ message.warningTraces = [];
+ for (var i = 0; i < object.warningTraces.length; ++i) {
+ if (typeof object.warningTraces[i] !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanRun.warningTraces: object expected");
+ message.warningTraces[i] = $root.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.fromObject(object.warningTraces[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ScanRun message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanRun} message ScanRun
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ScanRun.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.warningTraces = [];
+ if (options.defaults) {
+ object.name = "";
+ object.executionState = options.enums === String ? "EXECUTION_STATE_UNSPECIFIED" : 0;
+ object.resultState = options.enums === String ? "RESULT_STATE_UNSPECIFIED" : 0;
+ object.startTime = null;
+ object.endTime = null;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.urlsCrawledCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.urlsCrawledCount = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.urlsTestedCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.urlsTestedCount = options.longs === String ? "0" : 0;
+ object.hasVulnerabilities = false;
+ object.progressPercent = 0;
+ object.errorTrace = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.executionState != null && message.hasOwnProperty("executionState"))
+ object.executionState = options.enums === String ? $root.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState[message.executionState] === undefined ? message.executionState : $root.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState[message.executionState] : message.executionState;
+ if (message.resultState != null && message.hasOwnProperty("resultState"))
+ object.resultState = options.enums === String ? $root.google.cloud.websecurityscanner.v1.ScanRun.ResultState[message.resultState] === undefined ? message.resultState : $root.google.cloud.websecurityscanner.v1.ScanRun.ResultState[message.resultState] : message.resultState;
+ if (message.startTime != null && message.hasOwnProperty("startTime"))
+ object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ if (message.urlsCrawledCount != null && message.hasOwnProperty("urlsCrawledCount"))
+ if (typeof message.urlsCrawledCount === "number")
+ object.urlsCrawledCount = options.longs === String ? String(message.urlsCrawledCount) : message.urlsCrawledCount;
+ else
+ object.urlsCrawledCount = options.longs === String ? $util.Long.prototype.toString.call(message.urlsCrawledCount) : options.longs === Number ? new $util.LongBits(message.urlsCrawledCount.low >>> 0, message.urlsCrawledCount.high >>> 0).toNumber() : message.urlsCrawledCount;
+ if (message.urlsTestedCount != null && message.hasOwnProperty("urlsTestedCount"))
+ if (typeof message.urlsTestedCount === "number")
+ object.urlsTestedCount = options.longs === String ? String(message.urlsTestedCount) : message.urlsTestedCount;
+ else
+ object.urlsTestedCount = options.longs === String ? $util.Long.prototype.toString.call(message.urlsTestedCount) : options.longs === Number ? new $util.LongBits(message.urlsTestedCount.low >>> 0, message.urlsTestedCount.high >>> 0).toNumber() : message.urlsTestedCount;
+ if (message.hasVulnerabilities != null && message.hasOwnProperty("hasVulnerabilities"))
+ object.hasVulnerabilities = message.hasVulnerabilities;
+ if (message.progressPercent != null && message.hasOwnProperty("progressPercent"))
+ object.progressPercent = message.progressPercent;
+ if (message.errorTrace != null && message.hasOwnProperty("errorTrace"))
+ object.errorTrace = $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.toObject(message.errorTrace, options);
+ if (message.warningTraces && message.warningTraces.length) {
+ object.warningTraces = [];
+ for (var j = 0; j < message.warningTraces.length; ++j)
+ object.warningTraces[j] = $root.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.toObject(message.warningTraces[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ScanRun to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ScanRun.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ScanRun
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanRun
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ScanRun.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ScanRun";
+ };
+
+ /**
+ * ExecutionState enum.
+ * @name google.cloud.websecurityscanner.v1.ScanRun.ExecutionState
+ * @enum {number}
+ * @property {number} EXECUTION_STATE_UNSPECIFIED=0 EXECUTION_STATE_UNSPECIFIED value
+ * @property {number} QUEUED=1 QUEUED value
+ * @property {number} SCANNING=2 SCANNING value
+ * @property {number} FINISHED=3 FINISHED value
+ */
+ ScanRun.ExecutionState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "EXECUTION_STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "QUEUED"] = 1;
+ values[valuesById[2] = "SCANNING"] = 2;
+ values[valuesById[3] = "FINISHED"] = 3;
+ return values;
+ })();
+
+ /**
+ * ResultState enum.
+ * @name google.cloud.websecurityscanner.v1.ScanRun.ResultState
+ * @enum {number}
+ * @property {number} RESULT_STATE_UNSPECIFIED=0 RESULT_STATE_UNSPECIFIED value
+ * @property {number} SUCCESS=1 SUCCESS value
+ * @property {number} ERROR=2 ERROR value
+ * @property {number} KILLED=3 KILLED value
+ */
+ ScanRun.ResultState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "RESULT_STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "SUCCESS"] = 1;
+ values[valuesById[2] = "ERROR"] = 2;
+ values[valuesById[3] = "KILLED"] = 3;
+ return values;
+ })();
+
+ return ScanRun;
+ })();
+
+ v1.ScanRunErrorTrace = (function() {
+
+ /**
+ * Properties of a ScanRunErrorTrace.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IScanRunErrorTrace
+ * @property {google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code|null} [code] ScanRunErrorTrace code
+ * @property {google.cloud.websecurityscanner.v1.IScanConfigError|null} [scanConfigError] ScanRunErrorTrace scanConfigError
+ * @property {number|null} [mostCommonHttpErrorCode] ScanRunErrorTrace mostCommonHttpErrorCode
+ */
+
+ /**
+ * Constructs a new ScanRunErrorTrace.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ScanRunErrorTrace.
+ * @implements IScanRunErrorTrace
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IScanRunErrorTrace=} [properties] Properties to set
+ */
+ function ScanRunErrorTrace(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]];
+ }
+
+ /**
+ * ScanRunErrorTrace code.
+ * @member {google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code} code
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @instance
+ */
+ ScanRunErrorTrace.prototype.code = 0;
+
+ /**
+ * ScanRunErrorTrace scanConfigError.
+ * @member {google.cloud.websecurityscanner.v1.IScanConfigError|null|undefined} scanConfigError
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @instance
+ */
+ ScanRunErrorTrace.prototype.scanConfigError = null;
+
+ /**
+ * ScanRunErrorTrace mostCommonHttpErrorCode.
+ * @member {number} mostCommonHttpErrorCode
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @instance
+ */
+ ScanRunErrorTrace.prototype.mostCommonHttpErrorCode = 0;
+
+ /**
+ * Creates a new ScanRunErrorTrace instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanRunErrorTrace=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ScanRunErrorTrace} ScanRunErrorTrace instance
+ */
+ ScanRunErrorTrace.create = function create(properties) {
+ return new ScanRunErrorTrace(properties);
+ };
+
+ /**
+ * Encodes the specified ScanRunErrorTrace message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRunErrorTrace.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanRunErrorTrace} message ScanRunErrorTrace message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ScanRunErrorTrace.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
+ if (message.scanConfigError != null && Object.hasOwnProperty.call(message, "scanConfigError"))
+ $root.google.cloud.websecurityscanner.v1.ScanConfigError.encode(message.scanConfigError, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.mostCommonHttpErrorCode != null && Object.hasOwnProperty.call(message, "mostCommonHttpErrorCode"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.mostCommonHttpErrorCode);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ScanRunErrorTrace message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRunErrorTrace.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanRunErrorTrace} message ScanRunErrorTrace message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ScanRunErrorTrace.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ScanRunErrorTrace message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ScanRunErrorTrace} ScanRunErrorTrace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ScanRunErrorTrace.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.websecurityscanner.v1.ScanRunErrorTrace();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.code = reader.int32();
+ break;
+ }
+ case 2: {
+ message.scanConfigError = $root.google.cloud.websecurityscanner.v1.ScanConfigError.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.mostCommonHttpErrorCode = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ScanRunErrorTrace message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ScanRunErrorTrace} ScanRunErrorTrace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ScanRunErrorTrace.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ScanRunErrorTrace message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ScanRunErrorTrace.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.code != null && message.hasOwnProperty("code"))
+ switch (message.code) {
+ default:
+ return "code: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ break;
+ }
+ if (message.scanConfigError != null && message.hasOwnProperty("scanConfigError")) {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanConfigError.verify(message.scanConfigError);
+ if (error)
+ return "scanConfigError." + error;
+ }
+ if (message.mostCommonHttpErrorCode != null && message.hasOwnProperty("mostCommonHttpErrorCode"))
+ if (!$util.isInteger(message.mostCommonHttpErrorCode))
+ return "mostCommonHttpErrorCode: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a ScanRunErrorTrace message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ScanRunErrorTrace} ScanRunErrorTrace
+ */
+ ScanRunErrorTrace.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace();
+ switch (object.code) {
+ default:
+ if (typeof object.code === "number") {
+ message.code = object.code;
+ break;
+ }
+ break;
+ case "CODE_UNSPECIFIED":
+ case 0:
+ message.code = 0;
+ break;
+ case "INTERNAL_ERROR":
+ case 1:
+ message.code = 1;
+ break;
+ case "SCAN_CONFIG_ISSUE":
+ case 2:
+ message.code = 2;
+ break;
+ case "AUTHENTICATION_CONFIG_ISSUE":
+ case 3:
+ message.code = 3;
+ break;
+ case "TIMED_OUT_WHILE_SCANNING":
+ case 4:
+ message.code = 4;
+ break;
+ case "TOO_MANY_REDIRECTS":
+ case 5:
+ message.code = 5;
+ break;
+ case "TOO_MANY_HTTP_ERRORS":
+ case 6:
+ message.code = 6;
+ break;
+ }
+ if (object.scanConfigError != null) {
+ if (typeof object.scanConfigError !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanRunErrorTrace.scanConfigError: object expected");
+ message.scanConfigError = $root.google.cloud.websecurityscanner.v1.ScanConfigError.fromObject(object.scanConfigError);
+ }
+ if (object.mostCommonHttpErrorCode != null)
+ message.mostCommonHttpErrorCode = object.mostCommonHttpErrorCode | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ScanRunErrorTrace message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanRunErrorTrace} message ScanRunErrorTrace
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ScanRunErrorTrace.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.code = options.enums === String ? "CODE_UNSPECIFIED" : 0;
+ object.scanConfigError = null;
+ object.mostCommonHttpErrorCode = 0;
+ }
+ if (message.code != null && message.hasOwnProperty("code"))
+ object.code = options.enums === String ? $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code[message.code] === undefined ? message.code : $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code[message.code] : message.code;
+ if (message.scanConfigError != null && message.hasOwnProperty("scanConfigError"))
+ object.scanConfigError = $root.google.cloud.websecurityscanner.v1.ScanConfigError.toObject(message.scanConfigError, options);
+ if (message.mostCommonHttpErrorCode != null && message.hasOwnProperty("mostCommonHttpErrorCode"))
+ object.mostCommonHttpErrorCode = message.mostCommonHttpErrorCode;
+ return object;
+ };
+
+ /**
+ * Converts this ScanRunErrorTrace to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ScanRunErrorTrace.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ScanRunErrorTrace
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunErrorTrace
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ScanRunErrorTrace.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ScanRunErrorTrace";
+ };
+
+ /**
+ * Code enum.
+ * @name google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code
+ * @enum {number}
+ * @property {number} CODE_UNSPECIFIED=0 CODE_UNSPECIFIED value
+ * @property {number} INTERNAL_ERROR=1 INTERNAL_ERROR value
+ * @property {number} SCAN_CONFIG_ISSUE=2 SCAN_CONFIG_ISSUE value
+ * @property {number} AUTHENTICATION_CONFIG_ISSUE=3 AUTHENTICATION_CONFIG_ISSUE value
+ * @property {number} TIMED_OUT_WHILE_SCANNING=4 TIMED_OUT_WHILE_SCANNING value
+ * @property {number} TOO_MANY_REDIRECTS=5 TOO_MANY_REDIRECTS value
+ * @property {number} TOO_MANY_HTTP_ERRORS=6 TOO_MANY_HTTP_ERRORS value
+ */
+ ScanRunErrorTrace.Code = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "INTERNAL_ERROR"] = 1;
+ values[valuesById[2] = "SCAN_CONFIG_ISSUE"] = 2;
+ values[valuesById[3] = "AUTHENTICATION_CONFIG_ISSUE"] = 3;
+ values[valuesById[4] = "TIMED_OUT_WHILE_SCANNING"] = 4;
+ values[valuesById[5] = "TOO_MANY_REDIRECTS"] = 5;
+ values[valuesById[6] = "TOO_MANY_HTTP_ERRORS"] = 6;
+ return values;
+ })();
+
+ return ScanRunErrorTrace;
+ })();
+
+ v1.ScanRunWarningTrace = (function() {
+
+ /**
+ * Properties of a ScanRunWarningTrace.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IScanRunWarningTrace
+ * @property {google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code|null} [code] ScanRunWarningTrace code
+ */
+
+ /**
+ * Constructs a new ScanRunWarningTrace.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ScanRunWarningTrace.
+ * @implements IScanRunWarningTrace
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IScanRunWarningTrace=} [properties] Properties to set
+ */
+ function ScanRunWarningTrace(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]];
+ }
+
+ /**
+ * ScanRunWarningTrace code.
+ * @member {google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code} code
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunWarningTrace
+ * @instance
+ */
+ ScanRunWarningTrace.prototype.code = 0;
+
+ /**
+ * Creates a new ScanRunWarningTrace instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunWarningTrace
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanRunWarningTrace=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ScanRunWarningTrace} ScanRunWarningTrace instance
+ */
+ ScanRunWarningTrace.create = function create(properties) {
+ return new ScanRunWarningTrace(properties);
+ };
+
+ /**
+ * Encodes the specified ScanRunWarningTrace message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRunWarningTrace.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunWarningTrace
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanRunWarningTrace} message ScanRunWarningTrace message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ScanRunWarningTrace.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ScanRunWarningTrace message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRunWarningTrace.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunWarningTrace
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanRunWarningTrace} message ScanRunWarningTrace message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ScanRunWarningTrace.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ScanRunWarningTrace message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunWarningTrace
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ScanRunWarningTrace} ScanRunWarningTrace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ScanRunWarningTrace.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.websecurityscanner.v1.ScanRunWarningTrace();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.code = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ScanRunWarningTrace message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunWarningTrace
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ScanRunWarningTrace} ScanRunWarningTrace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ScanRunWarningTrace.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ScanRunWarningTrace message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunWarningTrace
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ScanRunWarningTrace.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.code != null && message.hasOwnProperty("code"))
+ switch (message.code) {
+ default:
+ return "code: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ScanRunWarningTrace message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunWarningTrace
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ScanRunWarningTrace} ScanRunWarningTrace
+ */
+ ScanRunWarningTrace.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ScanRunWarningTrace)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ScanRunWarningTrace();
+ switch (object.code) {
+ default:
+ if (typeof object.code === "number") {
+ message.code = object.code;
+ break;
+ }
+ break;
+ case "CODE_UNSPECIFIED":
+ case 0:
+ message.code = 0;
+ break;
+ case "INSUFFICIENT_CRAWL_RESULTS":
+ case 1:
+ message.code = 1;
+ break;
+ case "TOO_MANY_CRAWL_RESULTS":
+ case 2:
+ message.code = 2;
+ break;
+ case "TOO_MANY_FUZZ_TASKS":
+ case 3:
+ message.code = 3;
+ break;
+ case "BLOCKED_BY_IAP":
+ case 4:
+ message.code = 4;
+ break;
+ case "NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN":
+ case 5:
+ message.code = 5;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ScanRunWarningTrace message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunWarningTrace
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanRunWarningTrace} message ScanRunWarningTrace
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ScanRunWarningTrace.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.code = options.enums === String ? "CODE_UNSPECIFIED" : 0;
+ if (message.code != null && message.hasOwnProperty("code"))
+ object.code = options.enums === String ? $root.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code[message.code] === undefined ? message.code : $root.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code[message.code] : message.code;
+ return object;
+ };
+
+ /**
+ * Converts this ScanRunWarningTrace to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunWarningTrace
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ScanRunWarningTrace.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ScanRunWarningTrace
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunWarningTrace
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ScanRunWarningTrace.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ScanRunWarningTrace";
+ };
+
+ /**
+ * Code enum.
+ * @name google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code
+ * @enum {number}
+ * @property {number} CODE_UNSPECIFIED=0 CODE_UNSPECIFIED value
+ * @property {number} INSUFFICIENT_CRAWL_RESULTS=1 INSUFFICIENT_CRAWL_RESULTS value
+ * @property {number} TOO_MANY_CRAWL_RESULTS=2 TOO_MANY_CRAWL_RESULTS value
+ * @property {number} TOO_MANY_FUZZ_TASKS=3 TOO_MANY_FUZZ_TASKS value
+ * @property {number} BLOCKED_BY_IAP=4 BLOCKED_BY_IAP value
+ * @property {number} NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN=5 NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN value
+ */
+ ScanRunWarningTrace.Code = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "INSUFFICIENT_CRAWL_RESULTS"] = 1;
+ values[valuesById[2] = "TOO_MANY_CRAWL_RESULTS"] = 2;
+ values[valuesById[3] = "TOO_MANY_FUZZ_TASKS"] = 3;
+ values[valuesById[4] = "BLOCKED_BY_IAP"] = 4;
+ values[valuesById[5] = "NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN"] = 5;
+ return values;
+ })();
+
+ return ScanRunWarningTrace;
+ })();
+
+ v1.ScanRunLog = (function() {
+
+ /**
+ * Properties of a ScanRunLog.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IScanRunLog
+ * @property {string|null} [summary] ScanRunLog summary
+ * @property {string|null} [name] ScanRunLog name
+ * @property {google.cloud.websecurityscanner.v1.ScanRun.ExecutionState|null} [executionState] ScanRunLog executionState
+ * @property {google.cloud.websecurityscanner.v1.ScanRun.ResultState|null} [resultState] ScanRunLog resultState
+ * @property {number|Long|null} [urlsCrawledCount] ScanRunLog urlsCrawledCount
+ * @property {number|Long|null} [urlsTestedCount] ScanRunLog urlsTestedCount
+ * @property {boolean|null} [hasFindings] ScanRunLog hasFindings
+ * @property {google.cloud.websecurityscanner.v1.IScanRunErrorTrace|null} [errorTrace] ScanRunLog errorTrace
+ */
+
+ /**
+ * Constructs a new ScanRunLog.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ScanRunLog.
+ * @implements IScanRunLog
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IScanRunLog=} [properties] Properties to set
+ */
+ function ScanRunLog(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]];
+ }
+
+ /**
+ * ScanRunLog summary.
+ * @member {string} summary
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @instance
+ */
+ ScanRunLog.prototype.summary = "";
+
+ /**
+ * ScanRunLog name.
+ * @member {string} name
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @instance
+ */
+ ScanRunLog.prototype.name = "";
+
+ /**
+ * ScanRunLog executionState.
+ * @member {google.cloud.websecurityscanner.v1.ScanRun.ExecutionState} executionState
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @instance
+ */
+ ScanRunLog.prototype.executionState = 0;
+
+ /**
+ * ScanRunLog resultState.
+ * @member {google.cloud.websecurityscanner.v1.ScanRun.ResultState} resultState
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @instance
+ */
+ ScanRunLog.prototype.resultState = 0;
+
+ /**
+ * ScanRunLog urlsCrawledCount.
+ * @member {number|Long} urlsCrawledCount
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @instance
+ */
+ ScanRunLog.prototype.urlsCrawledCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ScanRunLog urlsTestedCount.
+ * @member {number|Long} urlsTestedCount
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @instance
+ */
+ ScanRunLog.prototype.urlsTestedCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ScanRunLog hasFindings.
+ * @member {boolean} hasFindings
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @instance
+ */
+ ScanRunLog.prototype.hasFindings = false;
+
+ /**
+ * ScanRunLog errorTrace.
+ * @member {google.cloud.websecurityscanner.v1.IScanRunErrorTrace|null|undefined} errorTrace
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @instance
+ */
+ ScanRunLog.prototype.errorTrace = null;
+
+ /**
+ * Creates a new ScanRunLog instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanRunLog=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ScanRunLog} ScanRunLog instance
+ */
+ ScanRunLog.create = function create(properties) {
+ return new ScanRunLog(properties);
+ };
+
+ /**
+ * Encodes the specified ScanRunLog message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRunLog.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanRunLog} message ScanRunLog message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ScanRunLog.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.summary != null && Object.hasOwnProperty.call(message, "summary"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.summary);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
+ if (message.executionState != null && Object.hasOwnProperty.call(message, "executionState"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.executionState);
+ if (message.resultState != null && Object.hasOwnProperty.call(message, "resultState"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.resultState);
+ if (message.urlsCrawledCount != null && Object.hasOwnProperty.call(message, "urlsCrawledCount"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int64(message.urlsCrawledCount);
+ if (message.urlsTestedCount != null && Object.hasOwnProperty.call(message, "urlsTestedCount"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int64(message.urlsTestedCount);
+ if (message.hasFindings != null && Object.hasOwnProperty.call(message, "hasFindings"))
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.hasFindings);
+ if (message.errorTrace != null && Object.hasOwnProperty.call(message, "errorTrace"))
+ $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.encode(message.errorTrace, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ScanRunLog message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ScanRunLog.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IScanRunLog} message ScanRunLog message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ScanRunLog.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ScanRunLog message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ScanRunLog} ScanRunLog
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ScanRunLog.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.websecurityscanner.v1.ScanRunLog();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.summary = reader.string();
+ break;
+ }
+ case 2: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.executionState = reader.int32();
+ break;
+ }
+ case 4: {
+ message.resultState = reader.int32();
+ break;
+ }
+ case 5: {
+ message.urlsCrawledCount = reader.int64();
+ break;
+ }
+ case 6: {
+ message.urlsTestedCount = reader.int64();
+ break;
+ }
+ case 7: {
+ message.hasFindings = reader.bool();
+ break;
+ }
+ case 8: {
+ message.errorTrace = $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ScanRunLog message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ScanRunLog} ScanRunLog
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ScanRunLog.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ScanRunLog message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ScanRunLog.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.summary != null && message.hasOwnProperty("summary"))
+ if (!$util.isString(message.summary))
+ return "summary: string expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.executionState != null && message.hasOwnProperty("executionState"))
+ switch (message.executionState) {
+ default:
+ return "executionState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.resultState != null && message.hasOwnProperty("resultState"))
+ switch (message.resultState) {
+ default:
+ return "resultState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.urlsCrawledCount != null && message.hasOwnProperty("urlsCrawledCount"))
+ if (!$util.isInteger(message.urlsCrawledCount) && !(message.urlsCrawledCount && $util.isInteger(message.urlsCrawledCount.low) && $util.isInteger(message.urlsCrawledCount.high)))
+ return "urlsCrawledCount: integer|Long expected";
+ if (message.urlsTestedCount != null && message.hasOwnProperty("urlsTestedCount"))
+ if (!$util.isInteger(message.urlsTestedCount) && !(message.urlsTestedCount && $util.isInteger(message.urlsTestedCount.low) && $util.isInteger(message.urlsTestedCount.high)))
+ return "urlsTestedCount: integer|Long expected";
+ if (message.hasFindings != null && message.hasOwnProperty("hasFindings"))
+ if (typeof message.hasFindings !== "boolean")
+ return "hasFindings: boolean expected";
+ if (message.errorTrace != null && message.hasOwnProperty("errorTrace")) {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.verify(message.errorTrace);
+ if (error)
+ return "errorTrace." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ScanRunLog message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ScanRunLog} ScanRunLog
+ */
+ ScanRunLog.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ScanRunLog)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ScanRunLog();
+ if (object.summary != null)
+ message.summary = String(object.summary);
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.executionState) {
+ default:
+ if (typeof object.executionState === "number") {
+ message.executionState = object.executionState;
+ break;
+ }
+ break;
+ case "EXECUTION_STATE_UNSPECIFIED":
+ case 0:
+ message.executionState = 0;
+ break;
+ case "QUEUED":
+ case 1:
+ message.executionState = 1;
+ break;
+ case "SCANNING":
+ case 2:
+ message.executionState = 2;
+ break;
+ case "FINISHED":
+ case 3:
+ message.executionState = 3;
+ break;
+ }
+ switch (object.resultState) {
+ default:
+ if (typeof object.resultState === "number") {
+ message.resultState = object.resultState;
+ break;
+ }
+ break;
+ case "RESULT_STATE_UNSPECIFIED":
+ case 0:
+ message.resultState = 0;
+ break;
+ case "SUCCESS":
+ case 1:
+ message.resultState = 1;
+ break;
+ case "ERROR":
+ case 2:
+ message.resultState = 2;
+ break;
+ case "KILLED":
+ case 3:
+ message.resultState = 3;
+ break;
+ }
+ if (object.urlsCrawledCount != null)
+ if ($util.Long)
+ (message.urlsCrawledCount = $util.Long.fromValue(object.urlsCrawledCount)).unsigned = false;
+ else if (typeof object.urlsCrawledCount === "string")
+ message.urlsCrawledCount = parseInt(object.urlsCrawledCount, 10);
+ else if (typeof object.urlsCrawledCount === "number")
+ message.urlsCrawledCount = object.urlsCrawledCount;
+ else if (typeof object.urlsCrawledCount === "object")
+ message.urlsCrawledCount = new $util.LongBits(object.urlsCrawledCount.low >>> 0, object.urlsCrawledCount.high >>> 0).toNumber();
+ if (object.urlsTestedCount != null)
+ if ($util.Long)
+ (message.urlsTestedCount = $util.Long.fromValue(object.urlsTestedCount)).unsigned = false;
+ else if (typeof object.urlsTestedCount === "string")
+ message.urlsTestedCount = parseInt(object.urlsTestedCount, 10);
+ else if (typeof object.urlsTestedCount === "number")
+ message.urlsTestedCount = object.urlsTestedCount;
+ else if (typeof object.urlsTestedCount === "object")
+ message.urlsTestedCount = new $util.LongBits(object.urlsTestedCount.low >>> 0, object.urlsTestedCount.high >>> 0).toNumber();
+ if (object.hasFindings != null)
+ message.hasFindings = Boolean(object.hasFindings);
+ if (object.errorTrace != null) {
+ if (typeof object.errorTrace !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ScanRunLog.errorTrace: object expected");
+ message.errorTrace = $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.fromObject(object.errorTrace);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ScanRunLog message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ScanRunLog} message ScanRunLog
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ScanRunLog.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.summary = "";
+ object.name = "";
+ object.executionState = options.enums === String ? "EXECUTION_STATE_UNSPECIFIED" : 0;
+ object.resultState = options.enums === String ? "RESULT_STATE_UNSPECIFIED" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.urlsCrawledCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.urlsCrawledCount = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.urlsTestedCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.urlsTestedCount = options.longs === String ? "0" : 0;
+ object.hasFindings = false;
+ object.errorTrace = null;
+ }
+ if (message.summary != null && message.hasOwnProperty("summary"))
+ object.summary = message.summary;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.executionState != null && message.hasOwnProperty("executionState"))
+ object.executionState = options.enums === String ? $root.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState[message.executionState] === undefined ? message.executionState : $root.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState[message.executionState] : message.executionState;
+ if (message.resultState != null && message.hasOwnProperty("resultState"))
+ object.resultState = options.enums === String ? $root.google.cloud.websecurityscanner.v1.ScanRun.ResultState[message.resultState] === undefined ? message.resultState : $root.google.cloud.websecurityscanner.v1.ScanRun.ResultState[message.resultState] : message.resultState;
+ if (message.urlsCrawledCount != null && message.hasOwnProperty("urlsCrawledCount"))
+ if (typeof message.urlsCrawledCount === "number")
+ object.urlsCrawledCount = options.longs === String ? String(message.urlsCrawledCount) : message.urlsCrawledCount;
+ else
+ object.urlsCrawledCount = options.longs === String ? $util.Long.prototype.toString.call(message.urlsCrawledCount) : options.longs === Number ? new $util.LongBits(message.urlsCrawledCount.low >>> 0, message.urlsCrawledCount.high >>> 0).toNumber() : message.urlsCrawledCount;
+ if (message.urlsTestedCount != null && message.hasOwnProperty("urlsTestedCount"))
+ if (typeof message.urlsTestedCount === "number")
+ object.urlsTestedCount = options.longs === String ? String(message.urlsTestedCount) : message.urlsTestedCount;
+ else
+ object.urlsTestedCount = options.longs === String ? $util.Long.prototype.toString.call(message.urlsTestedCount) : options.longs === Number ? new $util.LongBits(message.urlsTestedCount.low >>> 0, message.urlsTestedCount.high >>> 0).toNumber() : message.urlsTestedCount;
+ if (message.hasFindings != null && message.hasOwnProperty("hasFindings"))
+ object.hasFindings = message.hasFindings;
+ if (message.errorTrace != null && message.hasOwnProperty("errorTrace"))
+ object.errorTrace = $root.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.toObject(message.errorTrace, options);
+ return object;
+ };
+
+ /**
+ * Converts this ScanRunLog to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ScanRunLog.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ScanRunLog
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ScanRunLog
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ScanRunLog.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ScanRunLog";
+ };
+
+ return ScanRunLog;
+ })();
+
+ v1.WebSecurityScanner = (function() {
+
+ /**
+ * Constructs a new WebSecurityScanner service.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a WebSecurityScanner
+ * @extends $protobuf.rpc.Service
+ * @constructor
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ */
+ function WebSecurityScanner(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (WebSecurityScanner.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = WebSecurityScanner;
+
+ /**
+ * Creates new WebSecurityScanner service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @static
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ * @returns {WebSecurityScanner} RPC service. Useful where requests and/or responses are streamed.
+ */
+ WebSecurityScanner.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|createScanConfig}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef CreateScanConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig} [response] ScanConfig
+ */
+
+ /**
+ * Calls CreateScanConfig.
+ * @function createScanConfig
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.ICreateScanConfigRequest} request CreateScanConfigRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.CreateScanConfigCallback} callback Node-style callback called with the error, if any, and ScanConfig
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.createScanConfig = function createScanConfig(request, callback) {
+ return this.rpcCall(createScanConfig, $root.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, $root.google.cloud.websecurityscanner.v1.ScanConfig, request, callback);
+ }, "name", { value: "CreateScanConfig" });
+
+ /**
+ * Calls CreateScanConfig.
+ * @function createScanConfig
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.ICreateScanConfigRequest} request CreateScanConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|deleteScanConfig}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef DeleteScanConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteScanConfig.
+ * @function deleteScanConfig
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IDeleteScanConfigRequest} request DeleteScanConfigRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.DeleteScanConfigCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.deleteScanConfig = function deleteScanConfig(request, callback) {
+ return this.rpcCall(deleteScanConfig, $root.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteScanConfig" });
+
+ /**
+ * Calls DeleteScanConfig.
+ * @function deleteScanConfig
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IDeleteScanConfigRequest} request DeleteScanConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|getScanConfig}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef GetScanConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig} [response] ScanConfig
+ */
+
+ /**
+ * Calls GetScanConfig.
+ * @function getScanConfig
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IGetScanConfigRequest} request GetScanConfigRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.GetScanConfigCallback} callback Node-style callback called with the error, if any, and ScanConfig
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.getScanConfig = function getScanConfig(request, callback) {
+ return this.rpcCall(getScanConfig, $root.google.cloud.websecurityscanner.v1.GetScanConfigRequest, $root.google.cloud.websecurityscanner.v1.ScanConfig, request, callback);
+ }, "name", { value: "GetScanConfig" });
+
+ /**
+ * Calls GetScanConfig.
+ * @function getScanConfig
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IGetScanConfigRequest} request GetScanConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|listScanConfigs}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef ListScanConfigsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.websecurityscanner.v1.ListScanConfigsResponse} [response] ListScanConfigsResponse
+ */
+
+ /**
+ * Calls ListScanConfigs.
+ * @function listScanConfigs
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IListScanConfigsRequest} request ListScanConfigsRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.ListScanConfigsCallback} callback Node-style callback called with the error, if any, and ListScanConfigsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.listScanConfigs = function listScanConfigs(request, callback) {
+ return this.rpcCall(listScanConfigs, $root.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, $root.google.cloud.websecurityscanner.v1.ListScanConfigsResponse, request, callback);
+ }, "name", { value: "ListScanConfigs" });
+
+ /**
+ * Calls ListScanConfigs.
+ * @function listScanConfigs
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IListScanConfigsRequest} request ListScanConfigsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|updateScanConfig}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef UpdateScanConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.websecurityscanner.v1.ScanConfig} [response] ScanConfig
+ */
+
+ /**
+ * Calls UpdateScanConfig.
+ * @function updateScanConfig
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IUpdateScanConfigRequest} request UpdateScanConfigRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.UpdateScanConfigCallback} callback Node-style callback called with the error, if any, and ScanConfig
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.updateScanConfig = function updateScanConfig(request, callback) {
+ return this.rpcCall(updateScanConfig, $root.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, $root.google.cloud.websecurityscanner.v1.ScanConfig, request, callback);
+ }, "name", { value: "UpdateScanConfig" });
+
+ /**
+ * Calls UpdateScanConfig.
+ * @function updateScanConfig
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IUpdateScanConfigRequest} request UpdateScanConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|startScanRun}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef StartScanRunCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.websecurityscanner.v1.ScanRun} [response] ScanRun
+ */
+
+ /**
+ * Calls StartScanRun.
+ * @function startScanRun
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IStartScanRunRequest} request StartScanRunRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.StartScanRunCallback} callback Node-style callback called with the error, if any, and ScanRun
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.startScanRun = function startScanRun(request, callback) {
+ return this.rpcCall(startScanRun, $root.google.cloud.websecurityscanner.v1.StartScanRunRequest, $root.google.cloud.websecurityscanner.v1.ScanRun, request, callback);
+ }, "name", { value: "StartScanRun" });
+
+ /**
+ * Calls StartScanRun.
+ * @function startScanRun
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IStartScanRunRequest} request StartScanRunRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|getScanRun}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef GetScanRunCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.websecurityscanner.v1.ScanRun} [response] ScanRun
+ */
+
+ /**
+ * Calls GetScanRun.
+ * @function getScanRun
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IGetScanRunRequest} request GetScanRunRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.GetScanRunCallback} callback Node-style callback called with the error, if any, and ScanRun
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.getScanRun = function getScanRun(request, callback) {
+ return this.rpcCall(getScanRun, $root.google.cloud.websecurityscanner.v1.GetScanRunRequest, $root.google.cloud.websecurityscanner.v1.ScanRun, request, callback);
+ }, "name", { value: "GetScanRun" });
+
+ /**
+ * Calls GetScanRun.
+ * @function getScanRun
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IGetScanRunRequest} request GetScanRunRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|listScanRuns}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef ListScanRunsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.websecurityscanner.v1.ListScanRunsResponse} [response] ListScanRunsResponse
+ */
+
+ /**
+ * Calls ListScanRuns.
+ * @function listScanRuns
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IListScanRunsRequest} request ListScanRunsRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.ListScanRunsCallback} callback Node-style callback called with the error, if any, and ListScanRunsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.listScanRuns = function listScanRuns(request, callback) {
+ return this.rpcCall(listScanRuns, $root.google.cloud.websecurityscanner.v1.ListScanRunsRequest, $root.google.cloud.websecurityscanner.v1.ListScanRunsResponse, request, callback);
+ }, "name", { value: "ListScanRuns" });
+
+ /**
+ * Calls ListScanRuns.
+ * @function listScanRuns
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IListScanRunsRequest} request ListScanRunsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|stopScanRun}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef StopScanRunCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.websecurityscanner.v1.ScanRun} [response] ScanRun
+ */
+
+ /**
+ * Calls StopScanRun.
+ * @function stopScanRun
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IStopScanRunRequest} request StopScanRunRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.StopScanRunCallback} callback Node-style callback called with the error, if any, and ScanRun
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.stopScanRun = function stopScanRun(request, callback) {
+ return this.rpcCall(stopScanRun, $root.google.cloud.websecurityscanner.v1.StopScanRunRequest, $root.google.cloud.websecurityscanner.v1.ScanRun, request, callback);
+ }, "name", { value: "StopScanRun" });
+
+ /**
+ * Calls StopScanRun.
+ * @function stopScanRun
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IStopScanRunRequest} request StopScanRunRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|listCrawledUrls}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef ListCrawledUrlsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse} [response] ListCrawledUrlsResponse
+ */
+
+ /**
+ * Calls ListCrawledUrls.
+ * @function listCrawledUrls
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IListCrawledUrlsRequest} request ListCrawledUrlsRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.ListCrawledUrlsCallback} callback Node-style callback called with the error, if any, and ListCrawledUrlsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.listCrawledUrls = function listCrawledUrls(request, callback) {
+ return this.rpcCall(listCrawledUrls, $root.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, $root.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse, request, callback);
+ }, "name", { value: "ListCrawledUrls" });
+
+ /**
+ * Calls ListCrawledUrls.
+ * @function listCrawledUrls
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IListCrawledUrlsRequest} request ListCrawledUrlsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|getFinding}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef GetFindingCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.websecurityscanner.v1.Finding} [response] Finding
+ */
+
+ /**
+ * Calls GetFinding.
+ * @function getFinding
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IGetFindingRequest} request GetFindingRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.GetFindingCallback} callback Node-style callback called with the error, if any, and Finding
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.getFinding = function getFinding(request, callback) {
+ return this.rpcCall(getFinding, $root.google.cloud.websecurityscanner.v1.GetFindingRequest, $root.google.cloud.websecurityscanner.v1.Finding, request, callback);
+ }, "name", { value: "GetFinding" });
+
+ /**
+ * Calls GetFinding.
+ * @function getFinding
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IGetFindingRequest} request GetFindingRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|listFindings}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef ListFindingsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.websecurityscanner.v1.ListFindingsResponse} [response] ListFindingsResponse
+ */
+
+ /**
+ * Calls ListFindings.
+ * @function listFindings
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IListFindingsRequest} request ListFindingsRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.ListFindingsCallback} callback Node-style callback called with the error, if any, and ListFindingsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.listFindings = function listFindings(request, callback) {
+ return this.rpcCall(listFindings, $root.google.cloud.websecurityscanner.v1.ListFindingsRequest, $root.google.cloud.websecurityscanner.v1.ListFindingsResponse, request, callback);
+ }, "name", { value: "ListFindings" });
+
+ /**
+ * Calls ListFindings.
+ * @function listFindings
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IListFindingsRequest} request ListFindingsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.websecurityscanner.v1.WebSecurityScanner|listFindingTypeStats}.
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @typedef ListFindingTypeStatsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse} [response] ListFindingTypeStatsResponse
+ */
+
+ /**
+ * Calls ListFindingTypeStats.
+ * @function listFindingTypeStats
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IListFindingTypeStatsRequest} request ListFindingTypeStatsRequest message or plain object
+ * @param {google.cloud.websecurityscanner.v1.WebSecurityScanner.ListFindingTypeStatsCallback} callback Node-style callback called with the error, if any, and ListFindingTypeStatsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(WebSecurityScanner.prototype.listFindingTypeStats = function listFindingTypeStats(request, callback) {
+ return this.rpcCall(listFindingTypeStats, $root.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, $root.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse, request, callback);
+ }, "name", { value: "ListFindingTypeStats" });
+
+ /**
+ * Calls ListFindingTypeStats.
+ * @function listFindingTypeStats
+ * @memberof google.cloud.websecurityscanner.v1.WebSecurityScanner
+ * @instance
+ * @param {google.cloud.websecurityscanner.v1.IListFindingTypeStatsRequest} request ListFindingTypeStatsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return WebSecurityScanner;
+ })();
+
+ v1.CreateScanConfigRequest = (function() {
+
+ /**
+ * Properties of a CreateScanConfigRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface ICreateScanConfigRequest
+ * @property {string|null} [parent] CreateScanConfigRequest parent
+ * @property {google.cloud.websecurityscanner.v1.IScanConfig|null} [scanConfig] CreateScanConfigRequest scanConfig
+ */
+
+ /**
+ * Constructs a new CreateScanConfigRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a CreateScanConfigRequest.
+ * @implements ICreateScanConfigRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.ICreateScanConfigRequest=} [properties] Properties to set
+ */
+ function CreateScanConfigRequest(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]];
+ }
+
+ /**
+ * CreateScanConfigRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.websecurityscanner.v1.CreateScanConfigRequest
+ * @instance
+ */
+ CreateScanConfigRequest.prototype.parent = "";
+
+ /**
+ * CreateScanConfigRequest scanConfig.
+ * @member {google.cloud.websecurityscanner.v1.IScanConfig|null|undefined} scanConfig
+ * @memberof google.cloud.websecurityscanner.v1.CreateScanConfigRequest
+ * @instance
+ */
+ CreateScanConfigRequest.prototype.scanConfig = null;
+
+ /**
+ * Creates a new CreateScanConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.CreateScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ICreateScanConfigRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.CreateScanConfigRequest} CreateScanConfigRequest instance
+ */
+ CreateScanConfigRequest.create = function create(properties) {
+ return new CreateScanConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.CreateScanConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.CreateScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ICreateScanConfigRequest} message CreateScanConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateScanConfigRequest.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.scanConfig != null && Object.hasOwnProperty.call(message, "scanConfig"))
+ $root.google.cloud.websecurityscanner.v1.ScanConfig.encode(message.scanConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.CreateScanConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.CreateScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ICreateScanConfigRequest} message CreateScanConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateScanConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateScanConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.CreateScanConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.CreateScanConfigRequest} CreateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateScanConfigRequest.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.websecurityscanner.v1.CreateScanConfigRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.scanConfig = $root.google.cloud.websecurityscanner.v1.ScanConfig.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.CreateScanConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.CreateScanConfigRequest} CreateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateScanConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateScanConfigRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.CreateScanConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateScanConfigRequest.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.scanConfig != null && message.hasOwnProperty("scanConfig")) {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanConfig.verify(message.scanConfig);
+ if (error)
+ return "scanConfig." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.CreateScanConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.CreateScanConfigRequest} CreateScanConfigRequest
+ */
+ CreateScanConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.CreateScanConfigRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.CreateScanConfigRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.scanConfig != null) {
+ if (typeof object.scanConfig !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.CreateScanConfigRequest.scanConfig: object expected");
+ message.scanConfig = $root.google.cloud.websecurityscanner.v1.ScanConfig.fromObject(object.scanConfig);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateScanConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.CreateScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.CreateScanConfigRequest} message CreateScanConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateScanConfigRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.scanConfig = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.scanConfig != null && message.hasOwnProperty("scanConfig"))
+ object.scanConfig = $root.google.cloud.websecurityscanner.v1.ScanConfig.toObject(message.scanConfig, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateScanConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.CreateScanConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateScanConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateScanConfigRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.CreateScanConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateScanConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.CreateScanConfigRequest";
+ };
+
+ return CreateScanConfigRequest;
+ })();
+
+ v1.DeleteScanConfigRequest = (function() {
+
+ /**
+ * Properties of a DeleteScanConfigRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IDeleteScanConfigRequest
+ * @property {string|null} [name] DeleteScanConfigRequest name
+ */
+
+ /**
+ * Constructs a new DeleteScanConfigRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a DeleteScanConfigRequest.
+ * @implements IDeleteScanConfigRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IDeleteScanConfigRequest=} [properties] Properties to set
+ */
+ function DeleteScanConfigRequest(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]];
+ }
+
+ /**
+ * DeleteScanConfigRequest name.
+ * @member {string} name
+ * @memberof google.cloud.websecurityscanner.v1.DeleteScanConfigRequest
+ * @instance
+ */
+ DeleteScanConfigRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteScanConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.DeleteScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IDeleteScanConfigRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.DeleteScanConfigRequest} DeleteScanConfigRequest instance
+ */
+ DeleteScanConfigRequest.create = function create(properties) {
+ return new DeleteScanConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.DeleteScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IDeleteScanConfigRequest} message DeleteScanConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteScanConfigRequest.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 DeleteScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.DeleteScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IDeleteScanConfigRequest} message DeleteScanConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteScanConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteScanConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.DeleteScanConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.DeleteScanConfigRequest} DeleteScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteScanConfigRequest.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.websecurityscanner.v1.DeleteScanConfigRequest();
+ 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 DeleteScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.DeleteScanConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.DeleteScanConfigRequest} DeleteScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteScanConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteScanConfigRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.DeleteScanConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteScanConfigRequest.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 DeleteScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.DeleteScanConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.DeleteScanConfigRequest} DeleteScanConfigRequest
+ */
+ DeleteScanConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteScanConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.DeleteScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.DeleteScanConfigRequest} message DeleteScanConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteScanConfigRequest.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 DeleteScanConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.DeleteScanConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteScanConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteScanConfigRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.DeleteScanConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteScanConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.DeleteScanConfigRequest";
+ };
+
+ return DeleteScanConfigRequest;
+ })();
+
+ v1.GetScanConfigRequest = (function() {
+
+ /**
+ * Properties of a GetScanConfigRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IGetScanConfigRequest
+ * @property {string|null} [name] GetScanConfigRequest name
+ */
+
+ /**
+ * Constructs a new GetScanConfigRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a GetScanConfigRequest.
+ * @implements IGetScanConfigRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IGetScanConfigRequest=} [properties] Properties to set
+ */
+ function GetScanConfigRequest(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]];
+ }
+
+ /**
+ * GetScanConfigRequest name.
+ * @member {string} name
+ * @memberof google.cloud.websecurityscanner.v1.GetScanConfigRequest
+ * @instance
+ */
+ GetScanConfigRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetScanConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.GetScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IGetScanConfigRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.GetScanConfigRequest} GetScanConfigRequest instance
+ */
+ GetScanConfigRequest.create = function create(properties) {
+ return new GetScanConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.GetScanConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.GetScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IGetScanConfigRequest} message GetScanConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetScanConfigRequest.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 GetScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.GetScanConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.GetScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IGetScanConfigRequest} message GetScanConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetScanConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetScanConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.GetScanConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.GetScanConfigRequest} GetScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetScanConfigRequest.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.websecurityscanner.v1.GetScanConfigRequest();
+ 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 GetScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.GetScanConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.GetScanConfigRequest} GetScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetScanConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetScanConfigRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.GetScanConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetScanConfigRequest.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 GetScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.GetScanConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.GetScanConfigRequest} GetScanConfigRequest
+ */
+ GetScanConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.GetScanConfigRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.GetScanConfigRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetScanConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.GetScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.GetScanConfigRequest} message GetScanConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetScanConfigRequest.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 GetScanConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.GetScanConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetScanConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetScanConfigRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.GetScanConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetScanConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.GetScanConfigRequest";
+ };
+
+ return GetScanConfigRequest;
+ })();
+
+ v1.ListScanConfigsRequest = (function() {
+
+ /**
+ * Properties of a ListScanConfigsRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IListScanConfigsRequest
+ * @property {string|null} [parent] ListScanConfigsRequest parent
+ * @property {string|null} [pageToken] ListScanConfigsRequest pageToken
+ * @property {number|null} [pageSize] ListScanConfigsRequest pageSize
+ */
+
+ /**
+ * Constructs a new ListScanConfigsRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ListScanConfigsRequest.
+ * @implements IListScanConfigsRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IListScanConfigsRequest=} [properties] Properties to set
+ */
+ function ListScanConfigsRequest(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]];
+ }
+
+ /**
+ * ListScanConfigsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @instance
+ */
+ ListScanConfigsRequest.prototype.parent = "";
+
+ /**
+ * ListScanConfigsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @instance
+ */
+ ListScanConfigsRequest.prototype.pageToken = "";
+
+ /**
+ * ListScanConfigsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @instance
+ */
+ ListScanConfigsRequest.prototype.pageSize = 0;
+
+ /**
+ * Creates a new ListScanConfigsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListScanConfigsRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ListScanConfigsRequest} ListScanConfigsRequest instance
+ */
+ ListScanConfigsRequest.create = function create(properties) {
+ return new ListScanConfigsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListScanConfigsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanConfigsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListScanConfigsRequest} message ListScanConfigsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListScanConfigsRequest.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.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pageToken);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListScanConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanConfigsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListScanConfigsRequest} message ListScanConfigsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListScanConfigsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListScanConfigsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ListScanConfigsRequest} ListScanConfigsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListScanConfigsRequest.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.websecurityscanner.v1.ListScanConfigsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListScanConfigsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ListScanConfigsRequest} ListScanConfigsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListScanConfigsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListScanConfigsRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListScanConfigsRequest.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.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListScanConfigsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ListScanConfigsRequest} ListScanConfigsRequest
+ */
+ ListScanConfigsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ListScanConfigsRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ListScanConfigsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListScanConfigsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ListScanConfigsRequest} message ListScanConfigsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListScanConfigsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageToken = "";
+ object.pageSize = 0;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ return object;
+ };
+
+ /**
+ * Converts this ListScanConfigsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListScanConfigsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListScanConfigsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListScanConfigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ListScanConfigsRequest";
+ };
+
+ return ListScanConfigsRequest;
+ })();
+
+ v1.UpdateScanConfigRequest = (function() {
+
+ /**
+ * Properties of an UpdateScanConfigRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IUpdateScanConfigRequest
+ * @property {google.cloud.websecurityscanner.v1.IScanConfig|null} [scanConfig] UpdateScanConfigRequest scanConfig
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateScanConfigRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateScanConfigRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents an UpdateScanConfigRequest.
+ * @implements IUpdateScanConfigRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IUpdateScanConfigRequest=} [properties] Properties to set
+ */
+ function UpdateScanConfigRequest(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]];
+ }
+
+ /**
+ * UpdateScanConfigRequest scanConfig.
+ * @member {google.cloud.websecurityscanner.v1.IScanConfig|null|undefined} scanConfig
+ * @memberof google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+ * @instance
+ */
+ UpdateScanConfigRequest.prototype.scanConfig = null;
+
+ /**
+ * UpdateScanConfigRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+ * @instance
+ */
+ UpdateScanConfigRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateScanConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IUpdateScanConfigRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.UpdateScanConfigRequest} UpdateScanConfigRequest instance
+ */
+ UpdateScanConfigRequest.create = function create(properties) {
+ return new UpdateScanConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateScanConfigRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IUpdateScanConfigRequest} message UpdateScanConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateScanConfigRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.scanConfig != null && Object.hasOwnProperty.call(message, "scanConfig"))
+ $root.google.cloud.websecurityscanner.v1.ScanConfig.encode(message.scanConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateScanConfigRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IUpdateScanConfigRequest} message UpdateScanConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateScanConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateScanConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.UpdateScanConfigRequest} UpdateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateScanConfigRequest.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.websecurityscanner.v1.UpdateScanConfigRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.scanConfig = $root.google.cloud.websecurityscanner.v1.ScanConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateScanConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.UpdateScanConfigRequest} UpdateScanConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateScanConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateScanConfigRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateScanConfigRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.scanConfig != null && message.hasOwnProperty("scanConfig")) {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanConfig.verify(message.scanConfig);
+ if (error)
+ return "scanConfig." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateScanConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.UpdateScanConfigRequest} UpdateScanConfigRequest
+ */
+ UpdateScanConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest();
+ if (object.scanConfig != null) {
+ if (typeof object.scanConfig !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.scanConfig: object expected");
+ message.scanConfig = $root.google.cloud.websecurityscanner.v1.ScanConfig.fromObject(object.scanConfig);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateScanConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.UpdateScanConfigRequest} message UpdateScanConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateScanConfigRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.scanConfig = null;
+ object.updateMask = null;
+ }
+ if (message.scanConfig != null && message.hasOwnProperty("scanConfig"))
+ object.scanConfig = $root.google.cloud.websecurityscanner.v1.ScanConfig.toObject(message.scanConfig, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateScanConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateScanConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateScanConfigRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateScanConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.UpdateScanConfigRequest";
+ };
+
+ return UpdateScanConfigRequest;
+ })();
+
+ v1.ListScanConfigsResponse = (function() {
+
+ /**
+ * Properties of a ListScanConfigsResponse.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IListScanConfigsResponse
+ * @property {Array.|null} [scanConfigs] ListScanConfigsResponse scanConfigs
+ * @property {string|null} [nextPageToken] ListScanConfigsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListScanConfigsResponse.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ListScanConfigsResponse.
+ * @implements IListScanConfigsResponse
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IListScanConfigsResponse=} [properties] Properties to set
+ */
+ function ListScanConfigsResponse(properties) {
+ this.scanConfigs = [];
+ 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]];
+ }
+
+ /**
+ * ListScanConfigsResponse scanConfigs.
+ * @member {Array.} scanConfigs
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsResponse
+ * @instance
+ */
+ ListScanConfigsResponse.prototype.scanConfigs = $util.emptyArray;
+
+ /**
+ * ListScanConfigsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsResponse
+ * @instance
+ */
+ ListScanConfigsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListScanConfigsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListScanConfigsResponse=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ListScanConfigsResponse} ListScanConfigsResponse instance
+ */
+ ListScanConfigsResponse.create = function create(properties) {
+ return new ListScanConfigsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListScanConfigsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanConfigsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListScanConfigsResponse} message ListScanConfigsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListScanConfigsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.scanConfigs != null && message.scanConfigs.length)
+ for (var i = 0; i < message.scanConfigs.length; ++i)
+ $root.google.cloud.websecurityscanner.v1.ScanConfig.encode(message.scanConfigs[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 ListScanConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanConfigsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListScanConfigsResponse} message ListScanConfigsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListScanConfigsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListScanConfigsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ListScanConfigsResponse} ListScanConfigsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListScanConfigsResponse.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.websecurityscanner.v1.ListScanConfigsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.scanConfigs && message.scanConfigs.length))
+ message.scanConfigs = [];
+ message.scanConfigs.push($root.google.cloud.websecurityscanner.v1.ScanConfig.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListScanConfigsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ListScanConfigsResponse} ListScanConfigsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListScanConfigsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListScanConfigsResponse message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListScanConfigsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.scanConfigs != null && message.hasOwnProperty("scanConfigs")) {
+ if (!Array.isArray(message.scanConfigs))
+ return "scanConfigs: array expected";
+ for (var i = 0; i < message.scanConfigs.length; ++i) {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanConfig.verify(message.scanConfigs[i]);
+ if (error)
+ return "scanConfigs." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListScanConfigsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ListScanConfigsResponse} ListScanConfigsResponse
+ */
+ ListScanConfigsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ListScanConfigsResponse)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ListScanConfigsResponse();
+ if (object.scanConfigs) {
+ if (!Array.isArray(object.scanConfigs))
+ throw TypeError(".google.cloud.websecurityscanner.v1.ListScanConfigsResponse.scanConfigs: array expected");
+ message.scanConfigs = [];
+ for (var i = 0; i < object.scanConfigs.length; ++i) {
+ if (typeof object.scanConfigs[i] !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ListScanConfigsResponse.scanConfigs: object expected");
+ message.scanConfigs[i] = $root.google.cloud.websecurityscanner.v1.ScanConfig.fromObject(object.scanConfigs[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListScanConfigsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ListScanConfigsResponse} message ListScanConfigsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListScanConfigsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.scanConfigs = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.scanConfigs && message.scanConfigs.length) {
+ object.scanConfigs = [];
+ for (var j = 0; j < message.scanConfigs.length; ++j)
+ object.scanConfigs[j] = $root.google.cloud.websecurityscanner.v1.ScanConfig.toObject(message.scanConfigs[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListScanConfigsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListScanConfigsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListScanConfigsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ListScanConfigsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListScanConfigsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ListScanConfigsResponse";
+ };
+
+ return ListScanConfigsResponse;
+ })();
+
+ v1.StartScanRunRequest = (function() {
+
+ /**
+ * Properties of a StartScanRunRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IStartScanRunRequest
+ * @property {string|null} [name] StartScanRunRequest name
+ */
+
+ /**
+ * Constructs a new StartScanRunRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a StartScanRunRequest.
+ * @implements IStartScanRunRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IStartScanRunRequest=} [properties] Properties to set
+ */
+ function StartScanRunRequest(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]];
+ }
+
+ /**
+ * StartScanRunRequest name.
+ * @member {string} name
+ * @memberof google.cloud.websecurityscanner.v1.StartScanRunRequest
+ * @instance
+ */
+ StartScanRunRequest.prototype.name = "";
+
+ /**
+ * Creates a new StartScanRunRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.StartScanRunRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IStartScanRunRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.StartScanRunRequest} StartScanRunRequest instance
+ */
+ StartScanRunRequest.create = function create(properties) {
+ return new StartScanRunRequest(properties);
+ };
+
+ /**
+ * Encodes the specified StartScanRunRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.StartScanRunRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.StartScanRunRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IStartScanRunRequest} message StartScanRunRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StartScanRunRequest.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 StartScanRunRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.StartScanRunRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.StartScanRunRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IStartScanRunRequest} message StartScanRunRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StartScanRunRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a StartScanRunRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.StartScanRunRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.StartScanRunRequest} StartScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StartScanRunRequest.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.websecurityscanner.v1.StartScanRunRequest();
+ 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 StartScanRunRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.StartScanRunRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.StartScanRunRequest} StartScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StartScanRunRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a StartScanRunRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.StartScanRunRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ StartScanRunRequest.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 StartScanRunRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.StartScanRunRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.StartScanRunRequest} StartScanRunRequest
+ */
+ StartScanRunRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.StartScanRunRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.StartScanRunRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a StartScanRunRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.StartScanRunRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.StartScanRunRequest} message StartScanRunRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ StartScanRunRequest.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 StartScanRunRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.StartScanRunRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ StartScanRunRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for StartScanRunRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.StartScanRunRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ StartScanRunRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.StartScanRunRequest";
+ };
+
+ return StartScanRunRequest;
+ })();
+
+ v1.GetScanRunRequest = (function() {
+
+ /**
+ * Properties of a GetScanRunRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IGetScanRunRequest
+ * @property {string|null} [name] GetScanRunRequest name
+ */
+
+ /**
+ * Constructs a new GetScanRunRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a GetScanRunRequest.
+ * @implements IGetScanRunRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IGetScanRunRequest=} [properties] Properties to set
+ */
+ function GetScanRunRequest(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]];
+ }
+
+ /**
+ * GetScanRunRequest name.
+ * @member {string} name
+ * @memberof google.cloud.websecurityscanner.v1.GetScanRunRequest
+ * @instance
+ */
+ GetScanRunRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetScanRunRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.GetScanRunRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IGetScanRunRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.GetScanRunRequest} GetScanRunRequest instance
+ */
+ GetScanRunRequest.create = function create(properties) {
+ return new GetScanRunRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetScanRunRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.GetScanRunRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.GetScanRunRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IGetScanRunRequest} message GetScanRunRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetScanRunRequest.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 GetScanRunRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.GetScanRunRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.GetScanRunRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IGetScanRunRequest} message GetScanRunRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetScanRunRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetScanRunRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.GetScanRunRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.GetScanRunRequest} GetScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetScanRunRequest.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.websecurityscanner.v1.GetScanRunRequest();
+ 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 GetScanRunRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.GetScanRunRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.GetScanRunRequest} GetScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetScanRunRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetScanRunRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.GetScanRunRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetScanRunRequest.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 GetScanRunRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.GetScanRunRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.GetScanRunRequest} GetScanRunRequest
+ */
+ GetScanRunRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.GetScanRunRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.GetScanRunRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetScanRunRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.GetScanRunRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.GetScanRunRequest} message GetScanRunRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetScanRunRequest.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 GetScanRunRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.GetScanRunRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetScanRunRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetScanRunRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.GetScanRunRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetScanRunRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.GetScanRunRequest";
+ };
+
+ return GetScanRunRequest;
+ })();
+
+ v1.ListScanRunsRequest = (function() {
+
+ /**
+ * Properties of a ListScanRunsRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IListScanRunsRequest
+ * @property {string|null} [parent] ListScanRunsRequest parent
+ * @property {string|null} [pageToken] ListScanRunsRequest pageToken
+ * @property {number|null} [pageSize] ListScanRunsRequest pageSize
+ */
+
+ /**
+ * Constructs a new ListScanRunsRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ListScanRunsRequest.
+ * @implements IListScanRunsRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IListScanRunsRequest=} [properties] Properties to set
+ */
+ function ListScanRunsRequest(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]];
+ }
+
+ /**
+ * ListScanRunsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @instance
+ */
+ ListScanRunsRequest.prototype.parent = "";
+
+ /**
+ * ListScanRunsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @instance
+ */
+ ListScanRunsRequest.prototype.pageToken = "";
+
+ /**
+ * ListScanRunsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @instance
+ */
+ ListScanRunsRequest.prototype.pageSize = 0;
+
+ /**
+ * Creates a new ListScanRunsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListScanRunsRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ListScanRunsRequest} ListScanRunsRequest instance
+ */
+ ListScanRunsRequest.create = function create(properties) {
+ return new ListScanRunsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListScanRunsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanRunsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListScanRunsRequest} message ListScanRunsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListScanRunsRequest.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.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pageToken);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListScanRunsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanRunsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListScanRunsRequest} message ListScanRunsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListScanRunsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListScanRunsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ListScanRunsRequest} ListScanRunsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListScanRunsRequest.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.websecurityscanner.v1.ListScanRunsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListScanRunsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ListScanRunsRequest} ListScanRunsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListScanRunsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListScanRunsRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListScanRunsRequest.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.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListScanRunsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ListScanRunsRequest} ListScanRunsRequest
+ */
+ ListScanRunsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ListScanRunsRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ListScanRunsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListScanRunsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ListScanRunsRequest} message ListScanRunsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListScanRunsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageToken = "";
+ object.pageSize = 0;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ return object;
+ };
+
+ /**
+ * Converts this ListScanRunsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListScanRunsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListScanRunsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListScanRunsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ListScanRunsRequest";
+ };
+
+ return ListScanRunsRequest;
+ })();
+
+ v1.ListScanRunsResponse = (function() {
+
+ /**
+ * Properties of a ListScanRunsResponse.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IListScanRunsResponse
+ * @property {Array.|null} [scanRuns] ListScanRunsResponse scanRuns
+ * @property {string|null} [nextPageToken] ListScanRunsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListScanRunsResponse.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ListScanRunsResponse.
+ * @implements IListScanRunsResponse
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IListScanRunsResponse=} [properties] Properties to set
+ */
+ function ListScanRunsResponse(properties) {
+ this.scanRuns = [];
+ 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]];
+ }
+
+ /**
+ * ListScanRunsResponse scanRuns.
+ * @member {Array.} scanRuns
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsResponse
+ * @instance
+ */
+ ListScanRunsResponse.prototype.scanRuns = $util.emptyArray;
+
+ /**
+ * ListScanRunsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsResponse
+ * @instance
+ */
+ ListScanRunsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListScanRunsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListScanRunsResponse=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ListScanRunsResponse} ListScanRunsResponse instance
+ */
+ ListScanRunsResponse.create = function create(properties) {
+ return new ListScanRunsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListScanRunsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanRunsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListScanRunsResponse} message ListScanRunsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListScanRunsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.scanRuns != null && message.scanRuns.length)
+ for (var i = 0; i < message.scanRuns.length; ++i)
+ $root.google.cloud.websecurityscanner.v1.ScanRun.encode(message.scanRuns[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 ListScanRunsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListScanRunsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListScanRunsResponse} message ListScanRunsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListScanRunsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListScanRunsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ListScanRunsResponse} ListScanRunsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListScanRunsResponse.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.websecurityscanner.v1.ListScanRunsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.scanRuns && message.scanRuns.length))
+ message.scanRuns = [];
+ message.scanRuns.push($root.google.cloud.websecurityscanner.v1.ScanRun.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListScanRunsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ListScanRunsResponse} ListScanRunsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListScanRunsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListScanRunsResponse message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListScanRunsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.scanRuns != null && message.hasOwnProperty("scanRuns")) {
+ if (!Array.isArray(message.scanRuns))
+ return "scanRuns: array expected";
+ for (var i = 0; i < message.scanRuns.length; ++i) {
+ var error = $root.google.cloud.websecurityscanner.v1.ScanRun.verify(message.scanRuns[i]);
+ if (error)
+ return "scanRuns." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListScanRunsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ListScanRunsResponse} ListScanRunsResponse
+ */
+ ListScanRunsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ListScanRunsResponse)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ListScanRunsResponse();
+ if (object.scanRuns) {
+ if (!Array.isArray(object.scanRuns))
+ throw TypeError(".google.cloud.websecurityscanner.v1.ListScanRunsResponse.scanRuns: array expected");
+ message.scanRuns = [];
+ for (var i = 0; i < object.scanRuns.length; ++i) {
+ if (typeof object.scanRuns[i] !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ListScanRunsResponse.scanRuns: object expected");
+ message.scanRuns[i] = $root.google.cloud.websecurityscanner.v1.ScanRun.fromObject(object.scanRuns[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListScanRunsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ListScanRunsResponse} message ListScanRunsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListScanRunsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.scanRuns = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.scanRuns && message.scanRuns.length) {
+ object.scanRuns = [];
+ for (var j = 0; j < message.scanRuns.length; ++j)
+ object.scanRuns[j] = $root.google.cloud.websecurityscanner.v1.ScanRun.toObject(message.scanRuns[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListScanRunsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListScanRunsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListScanRunsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ListScanRunsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListScanRunsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ListScanRunsResponse";
+ };
+
+ return ListScanRunsResponse;
+ })();
+
+ v1.StopScanRunRequest = (function() {
+
+ /**
+ * Properties of a StopScanRunRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IStopScanRunRequest
+ * @property {string|null} [name] StopScanRunRequest name
+ */
+
+ /**
+ * Constructs a new StopScanRunRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a StopScanRunRequest.
+ * @implements IStopScanRunRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IStopScanRunRequest=} [properties] Properties to set
+ */
+ function StopScanRunRequest(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]];
+ }
+
+ /**
+ * StopScanRunRequest name.
+ * @member {string} name
+ * @memberof google.cloud.websecurityscanner.v1.StopScanRunRequest
+ * @instance
+ */
+ StopScanRunRequest.prototype.name = "";
+
+ /**
+ * Creates a new StopScanRunRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.StopScanRunRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IStopScanRunRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.StopScanRunRequest} StopScanRunRequest instance
+ */
+ StopScanRunRequest.create = function create(properties) {
+ return new StopScanRunRequest(properties);
+ };
+
+ /**
+ * Encodes the specified StopScanRunRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.StopScanRunRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.StopScanRunRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IStopScanRunRequest} message StopScanRunRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StopScanRunRequest.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 StopScanRunRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.StopScanRunRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.StopScanRunRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IStopScanRunRequest} message StopScanRunRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StopScanRunRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a StopScanRunRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.StopScanRunRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.StopScanRunRequest} StopScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StopScanRunRequest.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.websecurityscanner.v1.StopScanRunRequest();
+ 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 StopScanRunRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.StopScanRunRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.StopScanRunRequest} StopScanRunRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StopScanRunRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a StopScanRunRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.StopScanRunRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ StopScanRunRequest.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 StopScanRunRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.StopScanRunRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.StopScanRunRequest} StopScanRunRequest
+ */
+ StopScanRunRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.StopScanRunRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.StopScanRunRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a StopScanRunRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.StopScanRunRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.StopScanRunRequest} message StopScanRunRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ StopScanRunRequest.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 StopScanRunRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.StopScanRunRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ StopScanRunRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for StopScanRunRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.StopScanRunRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ StopScanRunRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.StopScanRunRequest";
+ };
+
+ return StopScanRunRequest;
+ })();
+
+ v1.ListCrawledUrlsRequest = (function() {
+
+ /**
+ * Properties of a ListCrawledUrlsRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IListCrawledUrlsRequest
+ * @property {string|null} [parent] ListCrawledUrlsRequest parent
+ * @property {string|null} [pageToken] ListCrawledUrlsRequest pageToken
+ * @property {number|null} [pageSize] ListCrawledUrlsRequest pageSize
+ */
+
+ /**
+ * Constructs a new ListCrawledUrlsRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ListCrawledUrlsRequest.
+ * @implements IListCrawledUrlsRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IListCrawledUrlsRequest=} [properties] Properties to set
+ */
+ function ListCrawledUrlsRequest(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]];
+ }
+
+ /**
+ * ListCrawledUrlsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @instance
+ */
+ ListCrawledUrlsRequest.prototype.parent = "";
+
+ /**
+ * ListCrawledUrlsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @instance
+ */
+ ListCrawledUrlsRequest.prototype.pageToken = "";
+
+ /**
+ * ListCrawledUrlsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @instance
+ */
+ ListCrawledUrlsRequest.prototype.pageSize = 0;
+
+ /**
+ * Creates a new ListCrawledUrlsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListCrawledUrlsRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest} ListCrawledUrlsRequest instance
+ */
+ ListCrawledUrlsRequest.create = function create(properties) {
+ return new ListCrawledUrlsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListCrawledUrlsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListCrawledUrlsRequest} message ListCrawledUrlsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListCrawledUrlsRequest.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.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pageToken);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListCrawledUrlsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListCrawledUrlsRequest} message ListCrawledUrlsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListCrawledUrlsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListCrawledUrlsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest} ListCrawledUrlsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListCrawledUrlsRequest.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.websecurityscanner.v1.ListCrawledUrlsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListCrawledUrlsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest} ListCrawledUrlsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListCrawledUrlsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListCrawledUrlsRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListCrawledUrlsRequest.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.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListCrawledUrlsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest} ListCrawledUrlsRequest
+ */
+ ListCrawledUrlsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListCrawledUrlsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest} message ListCrawledUrlsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListCrawledUrlsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageToken = "";
+ object.pageSize = 0;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ return object;
+ };
+
+ /**
+ * Converts this ListCrawledUrlsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListCrawledUrlsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListCrawledUrlsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListCrawledUrlsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest";
+ };
+
+ return ListCrawledUrlsRequest;
+ })();
+
+ v1.ListCrawledUrlsResponse = (function() {
+
+ /**
+ * Properties of a ListCrawledUrlsResponse.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IListCrawledUrlsResponse
+ * @property {Array.|null} [crawledUrls] ListCrawledUrlsResponse crawledUrls
+ * @property {string|null} [nextPageToken] ListCrawledUrlsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListCrawledUrlsResponse.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ListCrawledUrlsResponse.
+ * @implements IListCrawledUrlsResponse
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IListCrawledUrlsResponse=} [properties] Properties to set
+ */
+ function ListCrawledUrlsResponse(properties) {
+ this.crawledUrls = [];
+ 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]];
+ }
+
+ /**
+ * ListCrawledUrlsResponse crawledUrls.
+ * @member {Array.} crawledUrls
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse
+ * @instance
+ */
+ ListCrawledUrlsResponse.prototype.crawledUrls = $util.emptyArray;
+
+ /**
+ * ListCrawledUrlsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse
+ * @instance
+ */
+ ListCrawledUrlsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListCrawledUrlsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListCrawledUrlsResponse=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse} ListCrawledUrlsResponse instance
+ */
+ ListCrawledUrlsResponse.create = function create(properties) {
+ return new ListCrawledUrlsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListCrawledUrlsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListCrawledUrlsResponse} message ListCrawledUrlsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListCrawledUrlsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.crawledUrls != null && message.crawledUrls.length)
+ for (var i = 0; i < message.crawledUrls.length; ++i)
+ $root.google.cloud.websecurityscanner.v1.CrawledUrl.encode(message.crawledUrls[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 ListCrawledUrlsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListCrawledUrlsResponse} message ListCrawledUrlsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListCrawledUrlsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListCrawledUrlsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse} ListCrawledUrlsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListCrawledUrlsResponse.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.websecurityscanner.v1.ListCrawledUrlsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.crawledUrls && message.crawledUrls.length))
+ message.crawledUrls = [];
+ message.crawledUrls.push($root.google.cloud.websecurityscanner.v1.CrawledUrl.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListCrawledUrlsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse} ListCrawledUrlsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListCrawledUrlsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListCrawledUrlsResponse message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListCrawledUrlsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.crawledUrls != null && message.hasOwnProperty("crawledUrls")) {
+ if (!Array.isArray(message.crawledUrls))
+ return "crawledUrls: array expected";
+ for (var i = 0; i < message.crawledUrls.length; ++i) {
+ var error = $root.google.cloud.websecurityscanner.v1.CrawledUrl.verify(message.crawledUrls[i]);
+ if (error)
+ return "crawledUrls." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListCrawledUrlsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse} ListCrawledUrlsResponse
+ */
+ ListCrawledUrlsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse();
+ if (object.crawledUrls) {
+ if (!Array.isArray(object.crawledUrls))
+ throw TypeError(".google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.crawledUrls: array expected");
+ message.crawledUrls = [];
+ for (var i = 0; i < object.crawledUrls.length; ++i) {
+ if (typeof object.crawledUrls[i] !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.crawledUrls: object expected");
+ message.crawledUrls[i] = $root.google.cloud.websecurityscanner.v1.CrawledUrl.fromObject(object.crawledUrls[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListCrawledUrlsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse} message ListCrawledUrlsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListCrawledUrlsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.crawledUrls = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.crawledUrls && message.crawledUrls.length) {
+ object.crawledUrls = [];
+ for (var j = 0; j < message.crawledUrls.length; ++j)
+ object.crawledUrls[j] = $root.google.cloud.websecurityscanner.v1.CrawledUrl.toObject(message.crawledUrls[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListCrawledUrlsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListCrawledUrlsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListCrawledUrlsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListCrawledUrlsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse";
+ };
+
+ return ListCrawledUrlsResponse;
+ })();
+
+ v1.GetFindingRequest = (function() {
+
+ /**
+ * Properties of a GetFindingRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IGetFindingRequest
+ * @property {string|null} [name] GetFindingRequest name
+ */
+
+ /**
+ * Constructs a new GetFindingRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a GetFindingRequest.
+ * @implements IGetFindingRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IGetFindingRequest=} [properties] Properties to set
+ */
+ function GetFindingRequest(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]];
+ }
+
+ /**
+ * GetFindingRequest name.
+ * @member {string} name
+ * @memberof google.cloud.websecurityscanner.v1.GetFindingRequest
+ * @instance
+ */
+ GetFindingRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetFindingRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.GetFindingRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IGetFindingRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.GetFindingRequest} GetFindingRequest instance
+ */
+ GetFindingRequest.create = function create(properties) {
+ return new GetFindingRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetFindingRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.GetFindingRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.GetFindingRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IGetFindingRequest} message GetFindingRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetFindingRequest.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 GetFindingRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.GetFindingRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.GetFindingRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IGetFindingRequest} message GetFindingRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetFindingRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetFindingRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.GetFindingRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.GetFindingRequest} GetFindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetFindingRequest.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.websecurityscanner.v1.GetFindingRequest();
+ 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 GetFindingRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.GetFindingRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.GetFindingRequest} GetFindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetFindingRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetFindingRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.GetFindingRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetFindingRequest.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 GetFindingRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.GetFindingRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.GetFindingRequest} GetFindingRequest
+ */
+ GetFindingRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.GetFindingRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.GetFindingRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetFindingRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.GetFindingRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.GetFindingRequest} message GetFindingRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetFindingRequest.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 GetFindingRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.GetFindingRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetFindingRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetFindingRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.GetFindingRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetFindingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.GetFindingRequest";
+ };
+
+ return GetFindingRequest;
+ })();
+
+ v1.ListFindingsRequest = (function() {
+
+ /**
+ * Properties of a ListFindingsRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IListFindingsRequest
+ * @property {string|null} [parent] ListFindingsRequest parent
+ * @property {string|null} [filter] ListFindingsRequest filter
+ * @property {string|null} [pageToken] ListFindingsRequest pageToken
+ * @property {number|null} [pageSize] ListFindingsRequest pageSize
+ */
+
+ /**
+ * Constructs a new ListFindingsRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ListFindingsRequest.
+ * @implements IListFindingsRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IListFindingsRequest=} [properties] Properties to set
+ */
+ function ListFindingsRequest(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]];
+ }
+
+ /**
+ * ListFindingsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @instance
+ */
+ ListFindingsRequest.prototype.parent = "";
+
+ /**
+ * ListFindingsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @instance
+ */
+ ListFindingsRequest.prototype.filter = "";
+
+ /**
+ * ListFindingsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @instance
+ */
+ ListFindingsRequest.prototype.pageToken = "";
+
+ /**
+ * ListFindingsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @instance
+ */
+ ListFindingsRequest.prototype.pageSize = 0;
+
+ /**
+ * Creates a new ListFindingsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListFindingsRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingsRequest} ListFindingsRequest instance
+ */
+ ListFindingsRequest.create = function create(properties) {
+ return new ListFindingsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListFindingsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListFindingsRequest} message ListFindingsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFindingsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.pageSize);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListFindingsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListFindingsRequest} message ListFindingsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFindingsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListFindingsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingsRequest} ListFindingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFindingsRequest.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.websecurityscanner.v1.ListFindingsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.filter = reader.string();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListFindingsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingsRequest} ListFindingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFindingsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListFindingsRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListFindingsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListFindingsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingsRequest} ListFindingsRequest
+ */
+ ListFindingsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ListFindingsRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ListFindingsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListFindingsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ListFindingsRequest} message ListFindingsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListFindingsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.filter = "";
+ object.pageToken = "";
+ object.pageSize = 0;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ return object;
+ };
+
+ /**
+ * Converts this ListFindingsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListFindingsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListFindingsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListFindingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ListFindingsRequest";
+ };
+
+ return ListFindingsRequest;
+ })();
+
+ v1.ListFindingsResponse = (function() {
+
+ /**
+ * Properties of a ListFindingsResponse.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IListFindingsResponse
+ * @property {Array.|null} [findings] ListFindingsResponse findings
+ * @property {string|null} [nextPageToken] ListFindingsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListFindingsResponse.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ListFindingsResponse.
+ * @implements IListFindingsResponse
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IListFindingsResponse=} [properties] Properties to set
+ */
+ function ListFindingsResponse(properties) {
+ this.findings = [];
+ 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]];
+ }
+
+ /**
+ * ListFindingsResponse findings.
+ * @member {Array.} findings
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsResponse
+ * @instance
+ */
+ ListFindingsResponse.prototype.findings = $util.emptyArray;
+
+ /**
+ * ListFindingsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsResponse
+ * @instance
+ */
+ ListFindingsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListFindingsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListFindingsResponse=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingsResponse} ListFindingsResponse instance
+ */
+ ListFindingsResponse.create = function create(properties) {
+ return new ListFindingsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListFindingsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListFindingsResponse} message ListFindingsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFindingsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.findings != null && message.findings.length)
+ for (var i = 0; i < message.findings.length; ++i)
+ $root.google.cloud.websecurityscanner.v1.Finding.encode(message.findings[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 ListFindingsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListFindingsResponse} message ListFindingsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFindingsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListFindingsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingsResponse} ListFindingsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFindingsResponse.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.websecurityscanner.v1.ListFindingsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.findings && message.findings.length))
+ message.findings = [];
+ message.findings.push($root.google.cloud.websecurityscanner.v1.Finding.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListFindingsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingsResponse} ListFindingsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFindingsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListFindingsResponse message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListFindingsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.findings != null && message.hasOwnProperty("findings")) {
+ if (!Array.isArray(message.findings))
+ return "findings: array expected";
+ for (var i = 0; i < message.findings.length; ++i) {
+ var error = $root.google.cloud.websecurityscanner.v1.Finding.verify(message.findings[i]);
+ if (error)
+ return "findings." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListFindingsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingsResponse} ListFindingsResponse
+ */
+ ListFindingsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ListFindingsResponse)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ListFindingsResponse();
+ if (object.findings) {
+ if (!Array.isArray(object.findings))
+ throw TypeError(".google.cloud.websecurityscanner.v1.ListFindingsResponse.findings: array expected");
+ message.findings = [];
+ for (var i = 0; i < object.findings.length; ++i) {
+ if (typeof object.findings[i] !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ListFindingsResponse.findings: object expected");
+ message.findings[i] = $root.google.cloud.websecurityscanner.v1.Finding.fromObject(object.findings[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListFindingsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ListFindingsResponse} message ListFindingsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListFindingsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.findings = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.findings && message.findings.length) {
+ object.findings = [];
+ for (var j = 0; j < message.findings.length; ++j)
+ object.findings[j] = $root.google.cloud.websecurityscanner.v1.Finding.toObject(message.findings[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListFindingsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListFindingsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListFindingsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListFindingsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ListFindingsResponse";
+ };
+
+ return ListFindingsResponse;
+ })();
+
+ v1.ListFindingTypeStatsRequest = (function() {
+
+ /**
+ * Properties of a ListFindingTypeStatsRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IListFindingTypeStatsRequest
+ * @property {string|null} [parent] ListFindingTypeStatsRequest parent
+ */
+
+ /**
+ * Constructs a new ListFindingTypeStatsRequest.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ListFindingTypeStatsRequest.
+ * @implements IListFindingTypeStatsRequest
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IListFindingTypeStatsRequest=} [properties] Properties to set
+ */
+ function ListFindingTypeStatsRequest(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]];
+ }
+
+ /**
+ * ListFindingTypeStatsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest
+ * @instance
+ */
+ ListFindingTypeStatsRequest.prototype.parent = "";
+
+ /**
+ * Creates a new ListFindingTypeStatsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListFindingTypeStatsRequest=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest} ListFindingTypeStatsRequest instance
+ */
+ ListFindingTypeStatsRequest.create = function create(properties) {
+ return new ListFindingTypeStatsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListFindingTypeStatsRequest message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListFindingTypeStatsRequest} message ListFindingTypeStatsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFindingTypeStatsRequest.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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListFindingTypeStatsRequest message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListFindingTypeStatsRequest} message ListFindingTypeStatsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFindingTypeStatsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListFindingTypeStatsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest} ListFindingTypeStatsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFindingTypeStatsRequest.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.websecurityscanner.v1.ListFindingTypeStatsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListFindingTypeStatsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest} ListFindingTypeStatsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFindingTypeStatsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListFindingTypeStatsRequest message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListFindingTypeStatsRequest.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";
+ return null;
+ };
+
+ /**
+ * Creates a ListFindingTypeStatsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest} ListFindingTypeStatsRequest
+ */
+ ListFindingTypeStatsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListFindingTypeStatsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest} message ListFindingTypeStatsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListFindingTypeStatsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.parent = "";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ return object;
+ };
+
+ /**
+ * Converts this ListFindingTypeStatsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListFindingTypeStatsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListFindingTypeStatsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListFindingTypeStatsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest";
+ };
+
+ return ListFindingTypeStatsRequest;
+ })();
+
+ v1.ListFindingTypeStatsResponse = (function() {
+
+ /**
+ * Properties of a ListFindingTypeStatsResponse.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @interface IListFindingTypeStatsResponse
+ * @property {Array.|null} [findingTypeStats] ListFindingTypeStatsResponse findingTypeStats
+ */
+
+ /**
+ * Constructs a new ListFindingTypeStatsResponse.
+ * @memberof google.cloud.websecurityscanner.v1
+ * @classdesc Represents a ListFindingTypeStatsResponse.
+ * @implements IListFindingTypeStatsResponse
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1.IListFindingTypeStatsResponse=} [properties] Properties to set
+ */
+ function ListFindingTypeStatsResponse(properties) {
+ this.findingTypeStats = [];
+ 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]];
+ }
+
+ /**
+ * ListFindingTypeStatsResponse findingTypeStats.
+ * @member {Array.} findingTypeStats
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse
+ * @instance
+ */
+ ListFindingTypeStatsResponse.prototype.findingTypeStats = $util.emptyArray;
+
+ /**
+ * Creates a new ListFindingTypeStatsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListFindingTypeStatsResponse=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse} ListFindingTypeStatsResponse instance
+ */
+ ListFindingTypeStatsResponse.create = function create(properties) {
+ return new ListFindingTypeStatsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListFindingTypeStatsResponse message. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListFindingTypeStatsResponse} message ListFindingTypeStatsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFindingTypeStatsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.findingTypeStats != null && message.findingTypeStats.length)
+ for (var i = 0; i < message.findingTypeStats.length; ++i)
+ $root.google.cloud.websecurityscanner.v1.FindingTypeStats.encode(message.findingTypeStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListFindingTypeStatsResponse message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.IListFindingTypeStatsResponse} message ListFindingTypeStatsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFindingTypeStatsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListFindingTypeStatsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse} ListFindingTypeStatsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFindingTypeStatsResponse.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.websecurityscanner.v1.ListFindingTypeStatsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.findingTypeStats && message.findingTypeStats.length))
+ message.findingTypeStats = [];
+ message.findingTypeStats.push($root.google.cloud.websecurityscanner.v1.FindingTypeStats.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListFindingTypeStatsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse} ListFindingTypeStatsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFindingTypeStatsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListFindingTypeStatsResponse message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListFindingTypeStatsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.findingTypeStats != null && message.hasOwnProperty("findingTypeStats")) {
+ if (!Array.isArray(message.findingTypeStats))
+ return "findingTypeStats: array expected";
+ for (var i = 0; i < message.findingTypeStats.length; ++i) {
+ var error = $root.google.cloud.websecurityscanner.v1.FindingTypeStats.verify(message.findingTypeStats[i]);
+ if (error)
+ return "findingTypeStats." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListFindingTypeStatsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse} ListFindingTypeStatsResponse
+ */
+ ListFindingTypeStatsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse)
+ return object;
+ var message = new $root.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse();
+ if (object.findingTypeStats) {
+ if (!Array.isArray(object.findingTypeStats))
+ throw TypeError(".google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.findingTypeStats: array expected");
+ message.findingTypeStats = [];
+ for (var i = 0; i < object.findingTypeStats.length; ++i) {
+ if (typeof object.findingTypeStats[i] !== "object")
+ throw TypeError(".google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.findingTypeStats: object expected");
+ message.findingTypeStats[i] = $root.google.cloud.websecurityscanner.v1.FindingTypeStats.fromObject(object.findingTypeStats[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListFindingTypeStatsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse
+ * @static
+ * @param {google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse} message ListFindingTypeStatsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListFindingTypeStatsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.findingTypeStats = [];
+ if (message.findingTypeStats && message.findingTypeStats.length) {
+ object.findingTypeStats = [];
+ for (var j = 0; j < message.findingTypeStats.length; ++j)
+ object.findingTypeStats[j] = $root.google.cloud.websecurityscanner.v1.FindingTypeStats.toObject(message.findingTypeStats[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListFindingTypeStatsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListFindingTypeStatsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListFindingTypeStatsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListFindingTypeStatsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse";
+ };
+
+ return ListFindingTypeStatsResponse;
+ })();
+
+ return v1;
+ })();
+
+ websecurityscanner.v1alpha = (function() {
+
+ /**
+ * Namespace v1alpha.
+ * @memberof google.cloud.websecurityscanner
+ * @namespace
+ */
+ var v1alpha = {};
+
+ v1alpha.CrawledUrl = (function() {
+
+ /**
+ * Properties of a CrawledUrl.
+ * @memberof google.cloud.websecurityscanner.v1alpha
+ * @interface ICrawledUrl
+ * @property {string|null} [httpMethod] CrawledUrl httpMethod
+ * @property {string|null} [url] CrawledUrl url
+ * @property {string|null} [body] CrawledUrl body
+ */
+
+ /**
+ * Constructs a new CrawledUrl.
+ * @memberof google.cloud.websecurityscanner.v1alpha
+ * @classdesc Represents a CrawledUrl.
+ * @implements ICrawledUrl
+ * @constructor
+ * @param {google.cloud.websecurityscanner.v1alpha.ICrawledUrl=} [properties] Properties to set
+ */
+ function CrawledUrl(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]];
+ }
+
+ /**
+ * CrawledUrl httpMethod.
+ * @member {string} httpMethod
+ * @memberof google.cloud.websecurityscanner.v1alpha.CrawledUrl
+ * @instance
+ */
+ CrawledUrl.prototype.httpMethod = "";
+
+ /**
+ * CrawledUrl url.
+ * @member {string} url
+ * @memberof google.cloud.websecurityscanner.v1alpha.CrawledUrl
+ * @instance
+ */
+ CrawledUrl.prototype.url = "";
+
+ /**
+ * CrawledUrl body.
+ * @member {string} body
+ * @memberof google.cloud.websecurityscanner.v1alpha.CrawledUrl
+ * @instance
+ */
+ CrawledUrl.prototype.body = "";
+
+ /**
+ * Creates a new CrawledUrl instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.websecurityscanner.v1alpha.CrawledUrl
+ * @static
+ * @param {google.cloud.websecurityscanner.v1alpha.ICrawledUrl=} [properties] Properties to set
+ * @returns {google.cloud.websecurityscanner.v1alpha.CrawledUrl} CrawledUrl instance
+ */
+ CrawledUrl.create = function create(properties) {
+ return new CrawledUrl(properties);
+ };
+
+ /**
+ * Encodes the specified CrawledUrl message. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.CrawledUrl.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.websecurityscanner.v1alpha.CrawledUrl
+ * @static
+ * @param {google.cloud.websecurityscanner.v1alpha.ICrawledUrl} message CrawledUrl message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CrawledUrl.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.httpMethod != null && Object.hasOwnProperty.call(message, "httpMethod"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.httpMethod);
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
+ if (message.body != null && Object.hasOwnProperty.call(message, "body"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.body);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CrawledUrl message, length delimited. Does not implicitly {@link google.cloud.websecurityscanner.v1alpha.CrawledUrl.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1alpha.CrawledUrl
+ * @static
+ * @param {google.cloud.websecurityscanner.v1alpha.ICrawledUrl} message CrawledUrl message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CrawledUrl.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CrawledUrl message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.websecurityscanner.v1alpha.CrawledUrl
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.websecurityscanner.v1alpha.CrawledUrl} CrawledUrl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CrawledUrl.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.websecurityscanner.v1alpha.CrawledUrl();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.httpMethod = reader.string();
+ break;
+ }
+ case 2: {
+ message.url = reader.string();
+ break;
+ }
+ case 3: {
+ message.body = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CrawledUrl message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.websecurityscanner.v1alpha.CrawledUrl
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.websecurityscanner.v1alpha.CrawledUrl} CrawledUrl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CrawledUrl.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CrawledUrl message.
+ * @function verify
+ * @memberof google.cloud.websecurityscanner.v1alpha.CrawledUrl
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CrawledUrl.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.httpMethod != null && message.hasOwnProperty("httpMethod"))
+ if (!$util.isString(message.httpMethod))
+ return "httpMethod: string expected";
+ if (message.url != null && message.hasOwnProperty("url"))
+ if (!$util.isString(message.url))
+ return "url: string expected";
+ if (message.body != null && message.hasOwnProperty("body"))
+ if (!$util.isString(message.body))
+ return "body: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CrawledUrl message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.websecurityscanner.v1alpha.CrawledUrl
+ * @static
+ * @param {Object.