diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..a0d561ad --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,51 @@ +--- +name: Bug report +about: Create a report to help us improve + +--- + +Thanks for stopping by to let us know something could be better! + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. + +Please run down the following list and make sure you've tried the usual "quick fixes": + + - Search the issues already opened: https://github.com/googleapis/java-websecurityscanner/issues + - Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform + +If you are still having issues, please include as much information as possible: + +#### Environment details + +1. Specify the API at the beginning of the title. For example, "BigQuery: ..."). + General, Core, and Other are also allowed as types +2. OS type and version: +3. Java version: +4. websecurityscanner version(s): + +#### Steps to reproduce + + 1. ? + 2. ? + +#### Code example + +```java +// example +``` + +#### Stack trace +``` +Any relevant stacktrace here. +``` + +#### External references such as API reference guides + +- ? + +#### Any additional information below + + +Following these steps guarantees the quickest resolution possible. + +Thanks! diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..754e30c6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,21 @@ +--- +name: Feature request +about: Suggest an idea for this library + +--- + +Thanks for stopping by to let us know something could be better! + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. + +**Is your feature request related to a problem? Please describe.** +What the problem is. Example: I'm always frustrated when [...] + +**Describe the solution you'd like** +What you want to happen. + +**Describe alternatives you've considered** +Any alternative solutions or features you've considered. + +**Additional context** +Any other context or screenshots about the feature request. diff --git a/.github/ISSUE_TEMPLATE/support_request.md b/.github/ISSUE_TEMPLATE/support_request.md new file mode 100644 index 00000000..99586903 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/support_request.md @@ -0,0 +1,7 @@ +--- +name: Support request +about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. + +--- + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..0bd0ee06 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1 @@ +Fixes # (it's a good idea to open an issue first for context and/or discussion) \ No newline at end of file diff --git a/.github/release-please.yml b/.github/release-please.yml new file mode 100644 index 00000000..82744682 --- /dev/null +++ b/.github/release-please.yml @@ -0,0 +1 @@ +releaseType: java-yoshi diff --git a/.kokoro/build.bat b/.kokoro/build.bat new file mode 100644 index 00000000..63ff34db --- /dev/null +++ b/.kokoro/build.bat @@ -0,0 +1,3 @@ +:: See documentation in type-shell-output.bat + +"C:\Program Files\Git\bin\bash.exe" github/java-websecurityscanner/.kokoro/build.sh diff --git a/.kokoro/build.sh b/.kokoro/build.sh new file mode 100755 index 00000000..fa132f41 --- /dev/null +++ b/.kokoro/build.sh @@ -0,0 +1,60 @@ +#!/bin/bash +# 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. + +set -eo pipefail + +## Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +# Print out Java version +java -version +echo ${JOB_TYPE} + +mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true \ + -T 1C + +# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it +if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then + export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_ROOT}/src/${GOOGLE_APPLICATION_CREDENTIALS}) +fi + +case ${JOB_TYPE} in +test) + mvn test -B -Dclirr.skip=true + bash ${KOKORO_GFILE_DIR}/codecov.sh + bash .kokoro/coerce_logs.sh + ;; +lint) + mvn com.coveo:fmt-maven-plugin:check + ;; +javadoc) + mvn javadoc:javadoc javadoc:test-javadoc + ;; +integration) + mvn -B ${INTEGRATION_TEST_ARGS} -DtrimStackTrace=false -Dclirr.skip=true -fae verify + bash .kokoro/coerce_logs.sh + ;; +clirr) + mvn -B clirr:check + ;; +*) + ;; +esac \ No newline at end of file diff --git a/.kokoro/coerce_logs.sh b/.kokoro/coerce_logs.sh new file mode 100755 index 00000000..5cf7ba49 --- /dev/null +++ b/.kokoro/coerce_logs.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# This script finds and moves sponge logs so that they can be found by placer +# and are not flagged as flaky by sponge. + +set -eo pipefail + +## Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +job=$(basename ${KOKORO_JOB_NAME}) + +echo "coercing sponge logs..." +for xml in `find . -name *-sponge_log.xml` +do + echo "processing ${xml}" + class=$(basename ${xml} | cut -d- -f2) + dir=$(dirname ${xml})/${job}/${class} + text=$(dirname ${xml})/${class}-sponge_log.txt + mkdir -p ${dir} + mv ${xml} ${dir}/sponge_log.xml + mv ${text} ${dir}/sponge_log.txt +done diff --git a/.kokoro/common.cfg b/.kokoro/common.cfg new file mode 100644 index 00000000..31f4b33c --- /dev/null +++ b/.kokoro/common.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR} +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# All builds use the trampoline script to run in docker. +build_file: "java-websecurityscanner/.kokoro/trampoline.sh" + +# Tell the trampoline which build file to use. +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/build.sh" +} diff --git a/.kokoro/continuous/common.cfg b/.kokoro/continuous/common.cfg new file mode 100644 index 00000000..bb4b38e8 --- /dev/null +++ b/.kokoro/continuous/common.cfg @@ -0,0 +1,25 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + regex: "**/*sponge_log.txt" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-websecurityscanner/.kokoro/trampoline.sh" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/build.sh" +} + +env_vars: { + key: "JOB_TYPE" + value: "test" +} diff --git a/.kokoro/continuous/dependencies.cfg b/.kokoro/continuous/dependencies.cfg new file mode 100644 index 00000000..e121b240 --- /dev/null +++ b/.kokoro/continuous/dependencies.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/dependencies.sh" +} diff --git a/.kokoro/continuous/integration.cfg b/.kokoro/continuous/integration.cfg new file mode 100644 index 00000000..3b017fc8 --- /dev/null +++ b/.kokoro/continuous/integration.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/.kokoro/continuous/java11.cfg b/.kokoro/continuous/java11.cfg new file mode 100644 index 00000000..709f2b4c --- /dev/null +++ b/.kokoro/continuous/java11.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} diff --git a/.kokoro/continuous/java7.cfg b/.kokoro/continuous/java7.cfg new file mode 100644 index 00000000..cb24f44e --- /dev/null +++ b/.kokoro/continuous/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/.kokoro/continuous/java8-osx.cfg b/.kokoro/continuous/java8-osx.cfg new file mode 100644 index 00000000..037d39b2 --- /dev/null +++ b/.kokoro/continuous/java8-osx.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-websecurityscanner/.kokoro/build.sh" diff --git a/.kokoro/continuous/java8-win.cfg b/.kokoro/continuous/java8-win.cfg new file mode 100644 index 00000000..cf922937 --- /dev/null +++ b/.kokoro/continuous/java8-win.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-websecurityscanner/.kokoro/build.bat" diff --git a/.kokoro/continuous/java8.cfg b/.kokoro/continuous/java8.cfg new file mode 100644 index 00000000..3b017fc8 --- /dev/null +++ b/.kokoro/continuous/java8.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/.kokoro/continuous/lint.cfg b/.kokoro/continuous/lint.cfg new file mode 100644 index 00000000..6d323c8a --- /dev/null +++ b/.kokoro/continuous/lint.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "lint" +} \ No newline at end of file diff --git a/.kokoro/continuous/propose_release.cfg b/.kokoro/continuous/propose_release.cfg new file mode 100644 index 00000000..96a4ab87 --- /dev/null +++ b/.kokoro/continuous/propose_release.cfg @@ -0,0 +1,53 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-websecurityscanner/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/continuous/propose_release.sh" +} + +# tokens used by release-please to keep an up-to-date release PR. +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-key-release-please" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-token-release-please" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-url-release-please" + } + } +} diff --git a/.kokoro/continuous/propose_release.sh b/.kokoro/continuous/propose_release.sh new file mode 100755 index 00000000..677b2914 --- /dev/null +++ b/.kokoro/continuous/propose_release.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# 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 +# +# 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. + +set -eo pipefail + +export NPM_CONFIG_PREFIX=/home/node/.npm-global + +if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then + # Groom the release PR as new commits are merged. + npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ + --repo-url=googleapis/java-websecurityscanner \ + --package-name="websecurityscanner" \ + --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ + --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ + --release-type=java-yoshi +fi diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh new file mode 100755 index 00000000..a1da865a --- /dev/null +++ b/.kokoro/dependencies.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# 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. + +set -eo pipefail + +cd github/java-websecurityscanner/ + +# Print out Java +java -version +echo $JOB_TYPE + +export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" + +mvn install -DskipTests=true -B -V +mvn -B dependency:analyze -DfailOnWarning=true diff --git a/.kokoro/linkage-monitor.sh b/.kokoro/linkage-monitor.sh new file mode 100755 index 00000000..6925e6c4 --- /dev/null +++ b/.kokoro/linkage-monitor.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# 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. + +set -eo pipefail +# Display commands being run. +set -x + +cd github/java-websecurityscanner/ + +# Print out Java version +java -version +echo ${JOB_TYPE} + +mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V + +# Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR +JAR=linkage-monitor-latest-all-deps.jar +curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}" + +# Fails if there's new linkage errors compared with baseline +java -jar ${JAR} com.google.cloud:libraries-bom diff --git a/.kokoro/nightly/common.cfg b/.kokoro/nightly/common.cfg new file mode 100644 index 00000000..bb4b38e8 --- /dev/null +++ b/.kokoro/nightly/common.cfg @@ -0,0 +1,25 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + regex: "**/*sponge_log.txt" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-websecurityscanner/.kokoro/trampoline.sh" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/build.sh" +} + +env_vars: { + key: "JOB_TYPE" + value: "test" +} diff --git a/.kokoro/nightly/dependencies.cfg b/.kokoro/nightly/dependencies.cfg new file mode 100644 index 00000000..e121b240 --- /dev/null +++ b/.kokoro/nightly/dependencies.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/dependencies.sh" +} diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg new file mode 100644 index 00000000..3b017fc8 --- /dev/null +++ b/.kokoro/nightly/integration.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/.kokoro/nightly/java11.cfg b/.kokoro/nightly/java11.cfg new file mode 100644 index 00000000..709f2b4c --- /dev/null +++ b/.kokoro/nightly/java11.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} diff --git a/.kokoro/nightly/java7.cfg b/.kokoro/nightly/java7.cfg new file mode 100644 index 00000000..cb24f44e --- /dev/null +++ b/.kokoro/nightly/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/.kokoro/nightly/java8-osx.cfg b/.kokoro/nightly/java8-osx.cfg new file mode 100644 index 00000000..037d39b2 --- /dev/null +++ b/.kokoro/nightly/java8-osx.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-websecurityscanner/.kokoro/build.sh" diff --git a/.kokoro/nightly/java8-win.cfg b/.kokoro/nightly/java8-win.cfg new file mode 100644 index 00000000..cf922937 --- /dev/null +++ b/.kokoro/nightly/java8-win.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-websecurityscanner/.kokoro/build.bat" diff --git a/.kokoro/nightly/java8.cfg b/.kokoro/nightly/java8.cfg new file mode 100644 index 00000000..3b017fc8 --- /dev/null +++ b/.kokoro/nightly/java8.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/.kokoro/nightly/lint.cfg b/.kokoro/nightly/lint.cfg new file mode 100644 index 00000000..6d323c8a --- /dev/null +++ b/.kokoro/nightly/lint.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "lint" +} \ No newline at end of file diff --git a/.kokoro/presubmit/clirr.cfg b/.kokoro/presubmit/clirr.cfg new file mode 100644 index 00000000..ec572442 --- /dev/null +++ b/.kokoro/presubmit/clirr.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "clirr" +} \ No newline at end of file diff --git a/.kokoro/presubmit/common.cfg b/.kokoro/presubmit/common.cfg new file mode 100644 index 00000000..45112c1b --- /dev/null +++ b/.kokoro/presubmit/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + regex: "**/*sponge_log.txt" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-websecurityscanner/.kokoro/trampoline.sh" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/build.sh" +} + +env_vars: { + key: "JOB_TYPE" + value: "test" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "dpebot_codecov_token" + } + } +} diff --git a/.kokoro/presubmit/dependencies.cfg b/.kokoro/presubmit/dependencies.cfg new file mode 100644 index 00000000..e121b240 --- /dev/null +++ b/.kokoro/presubmit/dependencies.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/dependencies.sh" +} diff --git a/.kokoro/presubmit/integration.cfg b/.kokoro/presubmit/integration.cfg new file mode 100644 index 00000000..141f90c1 --- /dev/null +++ b/.kokoro/presubmit/integration.cfg @@ -0,0 +1,31 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/.kokoro/presubmit/java11.cfg b/.kokoro/presubmit/java11.cfg new file mode 100644 index 00000000..709f2b4c --- /dev/null +++ b/.kokoro/presubmit/java11.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} diff --git a/.kokoro/presubmit/java7.cfg b/.kokoro/presubmit/java7.cfg new file mode 100644 index 00000000..cb24f44e --- /dev/null +++ b/.kokoro/presubmit/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/.kokoro/presubmit/java8-osx.cfg b/.kokoro/presubmit/java8-osx.cfg new file mode 100644 index 00000000..037d39b2 --- /dev/null +++ b/.kokoro/presubmit/java8-osx.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-websecurityscanner/.kokoro/build.sh" diff --git a/.kokoro/presubmit/java8-win.cfg b/.kokoro/presubmit/java8-win.cfg new file mode 100644 index 00000000..cf922937 --- /dev/null +++ b/.kokoro/presubmit/java8-win.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-websecurityscanner/.kokoro/build.bat" diff --git a/.kokoro/presubmit/java8.cfg b/.kokoro/presubmit/java8.cfg new file mode 100644 index 00000000..3b017fc8 --- /dev/null +++ b/.kokoro/presubmit/java8.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/.kokoro/presubmit/linkage-monitor.cfg b/.kokoro/presubmit/linkage-monitor.cfg new file mode 100644 index 00000000..7318c2a8 --- /dev/null +++ b/.kokoro/presubmit/linkage-monitor.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/linkage-monitor.sh" +} \ No newline at end of file diff --git a/.kokoro/presubmit/lint.cfg b/.kokoro/presubmit/lint.cfg new file mode 100644 index 00000000..6d323c8a --- /dev/null +++ b/.kokoro/presubmit/lint.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "lint" +} \ No newline at end of file diff --git a/.kokoro/release/bump_snapshot.cfg b/.kokoro/release/bump_snapshot.cfg new file mode 100644 index 00000000..2ca7c338 --- /dev/null +++ b/.kokoro/release/bump_snapshot.cfg @@ -0,0 +1,53 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-websecurityscanner/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/release/bump_snapshot.sh" +} + +# tokens used by release-please to keep an up-to-date release PR. +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-key-release-please" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-token-release-please" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-url-release-please" + } + } +} diff --git a/.kokoro/release/bump_snapshot.sh b/.kokoro/release/bump_snapshot.sh new file mode 100755 index 00000000..bea7c96b --- /dev/null +++ b/.kokoro/release/bump_snapshot.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# 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 +# +# 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. + +set -eo pipefail + +export NPM_CONFIG_PREFIX=/home/node/.npm-global + +if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then + # Groom the snapshot release PR immediately after publishing a release + npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ + --repo-url=googleapis/java-websecurityscanner \ + --package-name="websecurityscanner" \ + --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ + --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ + --snapshot \ + --release-type=java-auth-yoshi +fi diff --git a/.kokoro/release/common.cfg b/.kokoro/release/common.cfg new file mode 100644 index 00000000..f3c46f3c --- /dev/null +++ b/.kokoro/release/common.cfg @@ -0,0 +1,49 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-websecurityscanner/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 70247 + keyname: "maven-gpg-keyring" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 70247 + keyname: "maven-gpg-passphrase" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 70247 + keyname: "maven-gpg-pubkeyring" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 70247 + keyname: "sonatype-credentials" + } + } +} diff --git a/.kokoro/release/common.sh b/.kokoro/release/common.sh new file mode 100755 index 00000000..6e3f6599 --- /dev/null +++ b/.kokoro/release/common.sh @@ -0,0 +1,50 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# 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. + +set -eo pipefail + +# Get secrets from keystore and set and environment variables +setup_environment_secrets() { + export GPG_PASSPHRASE=$(cat ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-passphrase) + export GPG_TTY=$(tty) + export GPG_HOMEDIR=/gpg + mkdir $GPG_HOMEDIR + mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-pubkeyring $GPG_HOMEDIR/pubring.gpg + mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-keyring $GPG_HOMEDIR/secring.gpg + export SONATYPE_USERNAME=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f1 -d'|') + export SONATYPE_PASSWORD=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f2 -d'|') +} + +create_settings_xml_file() { + echo " + + + ossrh + ${SONATYPE_USERNAME} + ${SONATYPE_PASSWORD} + + + sonatype-nexus-staging + ${SONATYPE_USERNAME} + ${SONATYPE_PASSWORD} + + + sonatype-nexus-snapshots + ${SONATYPE_USERNAME} + ${SONATYPE_PASSWORD} + + +" > $1 +} \ No newline at end of file diff --git a/.kokoro/release/drop.cfg b/.kokoro/release/drop.cfg new file mode 100644 index 00000000..3f39e838 --- /dev/null +++ b/.kokoro/release/drop.cfg @@ -0,0 +1,9 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/release/drop.sh" +} + +# Download staging properties file. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-websecurityscanner" \ No newline at end of file diff --git a/.kokoro/release/drop.sh b/.kokoro/release/drop.sh new file mode 100755 index 00000000..5c4551ef --- /dev/null +++ b/.kokoro/release/drop.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# 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. + +set -eo pipefail + +# STAGING_REPOSITORY_ID must be set +if [ -z "${STAGING_REPOSITORY_ID}" ]; then + echo "Missing STAGING_REPOSITORY_ID environment variable" + exit 1 +fi + +source $(dirname "$0")/common.sh +pushd $(dirname "$0")/../../ + +setup_environment_secrets +create_settings_xml_file "settings.xml" + +mvn nexus-staging:drop -B \ + --settings=settings.xml \ + -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/promote.cfg b/.kokoro/release/promote.cfg new file mode 100644 index 00000000..1408e5f9 --- /dev/null +++ b/.kokoro/release/promote.cfg @@ -0,0 +1,10 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/release/promote.sh" +} + +# Download staging properties file. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-websecurityscanner" + diff --git a/.kokoro/release/promote.sh b/.kokoro/release/promote.sh new file mode 100755 index 00000000..1fa95fa5 --- /dev/null +++ b/.kokoro/release/promote.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# 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. + +set -eo pipefail + +# STAGING_REPOSITORY_ID must be set +if [ -z "${STAGING_REPOSITORY_ID}" ]; then + echo "Missing STAGING_REPOSITORY_ID environment variable" + exit 1 +fi + +source $(dirname "$0")/common.sh + +pushd $(dirname "$0")/../../ + +setup_environment_secrets +create_settings_xml_file "settings.xml" + +mvn nexus-staging:release -B \ + -DperformRelease=true \ + --settings=settings.xml \ + -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg new file mode 100644 index 00000000..818d9c17 --- /dev/null +++ b/.kokoro/release/publish_javadoc.cfg @@ -0,0 +1,19 @@ +# Format: //devtools/kokoro/config/proto/build.proto +env_vars: { + key: "STAGING_BUCKET" + value: "docs-staging" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/release/publish_javadoc.sh" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "docuploader_service_account" + } + } +} diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh new file mode 100755 index 00000000..109712d9 --- /dev/null +++ b/.kokoro/release/publish_javadoc.sh @@ -0,0 +1,55 @@ +#!/bin/bash +# Copyright 2019 Google Inc. +# +# 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. + +set -eo pipefail + +if [[ -z "${CREDENTIALS}" ]]; then + CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account +fi + +if [[ -z "${STAGING_BUCKET}" ]]; then + echo "Need to set STAGING_BUCKET environment variable" + exit 1 +fi + +# work from the git root directory +pushd $(dirname "$0")/../../ + +# install docuploader package +python3 -m pip install gcp-docuploader + +# compile all packages +mvn clean install -B -DskipTests=true + +NAME=websecurityscanner +VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) + +# build the docs +mvn site -B + +pushd target/site/apidocs + +# create metadata +python3 -m docuploader create-metadata \ + --name ${NAME} \ + --version ${VERSION} \ + --language java + +# upload docs +python3 -m docuploader upload . \ + --credentials ${CREDENTIALS} \ + --staging-bucket ${STAGING_BUCKET} + +popd diff --git a/.kokoro/release/snapshot.cfg b/.kokoro/release/snapshot.cfg new file mode 100644 index 00000000..89a22f67 --- /dev/null +++ b/.kokoro/release/snapshot.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/release/snapshot.sh" +} \ No newline at end of file diff --git a/.kokoro/release/snapshot.sh b/.kokoro/release/snapshot.sh new file mode 100755 index 00000000..098168a7 --- /dev/null +++ b/.kokoro/release/snapshot.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# 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. + +set -eo pipefail + +source $(dirname "$0")/common.sh +MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml +pushd $(dirname "$0")/../../ + +# ensure we're trying to push a snapshot (no-result returns non-zero exit code) +grep SNAPSHOT versions.txt + +setup_environment_secrets +create_settings_xml_file "settings.xml" + +mvn clean install deploy -B \ + --settings ${MAVEN_SETTINGS_FILE} \ + -DperformRelease=true \ + -Dgpg.executable=gpg \ + -Dgpg.passphrase=${GPG_PASSPHRASE} \ + -Dgpg.homedir=${GPG_HOMEDIR} diff --git a/.kokoro/release/stage.cfg b/.kokoro/release/stage.cfg new file mode 100644 index 00000000..71a21f08 --- /dev/null +++ b/.kokoro/release/stage.cfg @@ -0,0 +1,44 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-websecurityscanner/.kokoro/release/stage.sh" +} + +# Need to save the properties file +action { + define_artifacts { + regex: "github/java-websecurityscanner/target/nexus-staging/staging/*.properties" + strip_prefix: "github/java-websecurityscanner" + } +} + +# Fetch the token needed for reporting release status to GitHub +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "yoshi-automation-github-key" + } + } +} + +# Fetch magictoken to use with Magic Github Proxy +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "releasetool-magictoken" + } + } +} + +# Fetch api key to use with Magic Github Proxy +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "magic-github-proxy-api-key" + } + } +} diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh new file mode 100755 index 00000000..3c482cbc --- /dev/null +++ b/.kokoro/release/stage.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# 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. + +set -eo pipefail + +# Start the releasetool reporter +python3 -m pip install gcp-releasetool +python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script + +source $(dirname "$0")/common.sh +MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml +pushd $(dirname "$0")/../../ + +setup_environment_secrets +create_settings_xml_file "settings.xml" + +mvn clean install deploy -B \ + --settings ${MAVEN_SETTINGS_FILE} \ + -DskipTests=true \ + -DperformRelease=true \ + -Dgpg.executable=gpg \ + -Dgpg.passphrase=${GPG_PASSPHRASE} \ + -Dgpg.homedir=${GPG_HOMEDIR} + +if [[ -n "${AUTORELEASE_PR}" ]] +then + mvn nexus-staging:release -B \ + -DperformRelease=true \ + --settings=settings.xml +fi \ No newline at end of file diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh new file mode 100644 index 00000000..ba17ce01 --- /dev/null +++ b/.kokoro/trampoline.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# 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. +set -eo pipefail +# Always run the cleanup script, regardless of the success of bouncing into +# the container. +function cleanup() { + chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh + ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh + echo "cleanup"; +} +trap cleanup EXIT +python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" diff --git a/google-cloud-websecurityscanner/.repo-metadata.json b/.repo-metadata.json similarity index 63% rename from google-cloud-websecurityscanner/.repo-metadata.json rename to .repo-metadata.json index 8ffc2b8c..7ff3d09e 100644 --- a/google-cloud-websecurityscanner/.repo-metadata.json +++ b/.repo-metadata.json @@ -2,12 +2,12 @@ "name": "websecurityscanner", "name_pretty": "Cloud Security Scanner", "product_documentation": "https://cloud.google.com/security-scanner/docs/", - "client_documentation": "https://googleapis.dev/java/google-cloud-clients/latest/index.html?com/google/cloud/asset/v1beta1/package-summary.html", + "client_documentation": "https://googleapis.dev/java/java-websecurityscanner/latest/", "issue_tracker": "https://issuetracker.google.com/savedsearches/559748", "release_level": "beta", "language": "java", - "repo": "googleapis/google-cloud-java", - "repo_short": "google-cloud-java", + "repo": "googleapis/java-websecurityscanner", + "repo_short": "java-websecurityscanner", "distribution_name": "com.google.cloud:google-cloud-websecurityscanner", "api_id": "websecurityscanner.googleapis.com" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..49516b1c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,15 @@ +# Changelog + +## [0.116.0](https://www.github.com/googleapis/java-websecurityscanner/compare/0.115.0...v0.116.0) (2019-10-25) + + +### Features + +* make repo releasable, add parent/bom ([#1](https://www.github.com/googleapis/java-websecurityscanner/issues/1)) ([ed44eb5](https://www.github.com/googleapis/java-websecurityscanner/commit/ed44eb5538b2202577c885017ac8a3bc06e9be08)) + + +### Dependencies + +* update dependency io.grpc:grpc-bom to v1.24.1 ([f66d759](https://www.github.com/googleapis/java-websecurityscanner/commit/f66d7598e568c6c4a9ee717824e78e5db04d10fc)) +* update dependency joda-time:joda-time to v2.10.5 ([#7](https://www.github.com/googleapis/java-websecurityscanner/issues/7)) ([3f13f43](https://www.github.com/googleapis/java-websecurityscanner/commit/3f13f4336d5d4d8b402dd15db4fc8a7fbbb4099c)) +* update gax.version to v1.49.1 ([e5b3084](https://www.github.com/googleapis/java-websecurityscanner/commit/e5b3084fa45ac7c993b498048b7f0baadd3d6f66)) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..6b2238bb --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,93 @@ +# 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 *[PROJECT STEWARD NAME(s) AND EMAIL(s)]*, the +Project Steward(s) for *[PROJECT NAME]*. 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 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/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..ebbb59e5 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,28 @@ +# How to Contribute + +We'd love to accept your patches and contributions to this project. There are +just a few small guidelines you need to follow. + +## Contributor License Agreement + +Contributions to this project must be accompanied by a Contributor License +Agreement. You (or your employer) retain the copyright to your contribution; +this simply gives us permission to use and redistribute your contributions as +part of the project. Head over to to see +your current agreements on file or to sign a new one. + +You generally only need to submit a CLA once, so if you've already submitted one +(even if it was for a different project), you probably don't need to do it +again. + +## Code reviews + +All submissions, including submissions by project members, require review. We +use GitHub pull requests for this purpose. Consult +[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more +information on using pull requests. + +## Community Guidelines + +This project follows +[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). \ No newline at end of file diff --git a/LICENSE b/LICENSE index 4eedc011..d6456956 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,5 @@ -Apache License + + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -178,7 +179,7 @@ Apache License 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 "{}" + 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 diff --git a/google-cloud-websecurityscanner/README.md b/README.md similarity index 97% rename from google-cloud-websecurityscanner/README.md rename to README.md index 85d327b7..fddafabb 100644 --- a/google-cloud-websecurityscanner/README.md +++ b/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-websecurityscanner - 0.115.0 + 0.116.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-websecurityscanner:0.115.0' +compile 'com.google.cloud:google-cloud-websecurityscanner:0.116.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "0.115.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "0.116.0" ``` [//]: # ({x-version-update-end}) diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 00000000..5724ea94 --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,4 @@ +--- +codecov: + ci: + - source.cloud.google.com diff --git a/google-cloud-websecurityscanner-bom/pom.xml b/google-cloud-websecurityscanner-bom/pom.xml new file mode 100644 index 00000000..25725c8f --- /dev/null +++ b/google-cloud-websecurityscanner-bom/pom.xml @@ -0,0 +1,103 @@ + + + 4.0.0 + com.google.cloud + google-cloud-websecurityscanner-bom + 0.116.0 + pom + + com.google.cloud + google-cloud-shared-config + 0.2.1 + + + Google Cloud websecurityscanner BOM + https://github.com/googleapis/java-websecurityscanner + + BOM for Google Cloud Web Security Scanner + + + + Google LLC + + + + + chingor13 + Jeff Ching + chingor@google.com + Google LLC + + Developer + + + + + + scm:git:https://github.com/googleapis/java-websecurityscanner.git + scm:git:git@github.com:googleapis/java-websecurityscanner.git + https://github.com/googleapis/java-websecurityscanner + + + + + sonatype-nexus-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + + + com.google.api.grpc + grpc-google-cloud-websecurityscanner-v1alpha + 0.81.0 + + + com.google.api.grpc + proto-google-cloud-websecurityscanner-v1beta + 0.81.0 + + + com.google.api.grpc + grpc-google-cloud-websecurityscanner-v1beta + 0.81.0 + + + com.google.api.grpc + proto-google-cloud-websecurityscanner-v1alpha + 0.81.0 + + + com.google.cloud + google-cloud-websecurityscanner + 0.116.0 + + + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + true + + + + + \ No newline at end of file diff --git a/google-cloud-websecurityscanner/clirr-ignored-differences.xml b/google-cloud-websecurityscanner/clirr-ignored-differences.xml new file mode 100644 index 00000000..aee9c29f --- /dev/null +++ b/google-cloud-websecurityscanner/clirr-ignored-differences.xml @@ -0,0 +1,14 @@ + + + + + 7002 + com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient + java.lang.String format*Name(*) + + + 7002 + com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient + java.lang.String parse*Name(java.lang.String) + + \ No newline at end of file diff --git a/google-cloud-websecurityscanner/pom.xml b/google-cloud-websecurityscanner/pom.xml index d87dbc0f..d06b016d 100644 --- a/google-cloud-websecurityscanner/pom.xml +++ b/google-cloud-websecurityscanner/pom.xml @@ -1,35 +1,71 @@ 4.0.0 + com.google.cloud google-cloud-websecurityscanner - 0.115.0 + 0.116.0 jar Google Cloud Web Security Scanner - https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-websecurityscanner - - Java idiomatic client for Google Cloud Web Security Scanner - + https://github.com/googleapis/java-websecurityscanner + Java idiomatic client for Google Cloud Web Security Scanner com.google.cloud - google-cloud-clients - 0.115.0-alpha + google-cloud-websecurityscanner-parent + 0.116.0 google-cloud-websecurityscanner - ${project.groupId} - google-cloud-core-grpc + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java com.google.api.grpc - proto-google-cloud-websecurityscanner-v1alpha + proto-google-common-protos + com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta + + com.google.api.grpc + proto-google-cloud-websecurityscanner-v1alpha + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + org.threeten + threetenbp + @@ -37,6 +73,17 @@ junit test + + joda-time + joda-time + test + + + com.google.auth + google-auth-library-oauth2-http + test + + com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha @@ -54,46 +101,20 @@ testlib test - - - joda-time - joda-time - 2.10.4 - test - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 - - protected - true - none - true - - - ${project.javadoc.protobufBaseURL} - ../../../../../google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/target/site/apidocs/ - - - ${project.javadoc.protobufBaseURL} - ../../../../../google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/target/site/apidocs/ - - - ${project.javadoc.protobufBaseURL} - ../../../../../google-api-grpc/proto-google-cloud-websecurityscanner-beta1/target/site/apidocs/ - - - ${project.javadoc.protobufBaseURL} - ../../../../../google-api-grpc/grpc-google-cloud-websecurityscanner-beta1/target/site/apidocs/ - - - - - - - + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + \ No newline at end of file diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java index 81af4b7a..ee68033c 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java @@ -25,7 +25,6 @@ import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.pathtemplate.PathTemplate; import com.google.cloud.websecurityscanner.v1beta.stub.WebSecurityScannerStub; import com.google.cloud.websecurityscanner.v1beta.stub.WebSecurityScannerStubSettings; import com.google.common.util.concurrent.MoreExecutors; @@ -48,9 +47,9 @@ *
  * 
  * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
- *   String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]");
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
- *   ScanConfig response = webSecurityScannerClient.createScanConfig(formattedParent, scanConfig);
+ *   ScanConfig response = webSecurityScannerClient.createScanConfig(parent, scanConfig);
  * }
  * 
  * 
@@ -112,172 +111,6 @@ public class WebSecurityScannerClient implements BackgroundResource { private final WebSecurityScannerSettings settings; private final WebSecurityScannerStub stub; - private static final PathTemplate FINDING_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding}"); - - private static final PathTemplate PROJECT_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}"); - - private static final PathTemplate SCAN_CONFIG_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/scanConfigs/{scan_config}"); - - private static final PathTemplate SCAN_RUN_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}"); - - /** - * Formats a string containing the fully-qualified path to represent a finding resource. - * - * @deprecated Use the {@link FindingName} class instead. - */ - @Deprecated - public static final String formatFindingName( - String project, String scanConfig, String scanRun, String finding) { - return FINDING_PATH_TEMPLATE.instantiate( - "project", project, - "scan_config", scanConfig, - "scan_run", scanRun, - "finding", finding); - } - - /** - * Formats a string containing the fully-qualified path to represent a project resource. - * - * @deprecated Use the {@link ProjectName} class instead. - */ - @Deprecated - public static final String formatProjectName(String project) { - return PROJECT_PATH_TEMPLATE.instantiate("project", project); - } - - /** - * Formats a string containing the fully-qualified path to represent a scan_config resource. - * - * @deprecated Use the {@link ScanConfigName} class instead. - */ - @Deprecated - public static final String formatScanConfigName(String project, String scanConfig) { - return SCAN_CONFIG_PATH_TEMPLATE.instantiate( - "project", project, - "scan_config", scanConfig); - } - - /** - * Formats a string containing the fully-qualified path to represent a scan_run resource. - * - * @deprecated Use the {@link ScanRunName} class instead. - */ - @Deprecated - public static final String formatScanRunName(String project, String scanConfig, String scanRun) { - return SCAN_RUN_PATH_TEMPLATE.instantiate( - "project", project, - "scan_config", scanConfig, - "scan_run", scanRun); - } - - /** - * Parses the project from the given fully-qualified path which represents a finding resource. - * - * @deprecated Use the {@link FindingName} class instead. - */ - @Deprecated - public static final String parseProjectFromFindingName(String findingName) { - return FINDING_PATH_TEMPLATE.parse(findingName).get("project"); - } - - /** - * Parses the scan_config from the given fully-qualified path which represents a finding resource. - * - * @deprecated Use the {@link FindingName} class instead. - */ - @Deprecated - public static final String parseScanConfigFromFindingName(String findingName) { - return FINDING_PATH_TEMPLATE.parse(findingName).get("scan_config"); - } - - /** - * Parses the scan_run from the given fully-qualified path which represents a finding resource. - * - * @deprecated Use the {@link FindingName} class instead. - */ - @Deprecated - public static final String parseScanRunFromFindingName(String findingName) { - return FINDING_PATH_TEMPLATE.parse(findingName).get("scan_run"); - } - - /** - * Parses the finding from the given fully-qualified path which represents a finding resource. - * - * @deprecated Use the {@link FindingName} class instead. - */ - @Deprecated - public static final String parseFindingFromFindingName(String findingName) { - return FINDING_PATH_TEMPLATE.parse(findingName).get("finding"); - } - - /** - * Parses the project from the given fully-qualified path which represents a project resource. - * - * @deprecated Use the {@link ProjectName} class instead. - */ - @Deprecated - public static final String parseProjectFromProjectName(String projectName) { - return PROJECT_PATH_TEMPLATE.parse(projectName).get("project"); - } - - /** - * Parses the project from the given fully-qualified path which represents a scan_config resource. - * - * @deprecated Use the {@link ScanConfigName} class instead. - */ - @Deprecated - public static final String parseProjectFromScanConfigName(String scanConfigName) { - return SCAN_CONFIG_PATH_TEMPLATE.parse(scanConfigName).get("project"); - } - - /** - * Parses the scan_config from the given fully-qualified path which represents a scan_config - * resource. - * - * @deprecated Use the {@link ScanConfigName} class instead. - */ - @Deprecated - public static final String parseScanConfigFromScanConfigName(String scanConfigName) { - return SCAN_CONFIG_PATH_TEMPLATE.parse(scanConfigName).get("scan_config"); - } - - /** - * Parses the project from the given fully-qualified path which represents a scan_run resource. - * - * @deprecated Use the {@link ScanRunName} class instead. - */ - @Deprecated - public static final String parseProjectFromScanRunName(String scanRunName) { - return SCAN_RUN_PATH_TEMPLATE.parse(scanRunName).get("project"); - } - - /** - * Parses the scan_config from the given fully-qualified path which represents a scan_run - * resource. - * - * @deprecated Use the {@link ScanRunName} class instead. - */ - @Deprecated - public static final String parseScanConfigFromScanRunName(String scanRunName) { - return SCAN_RUN_PATH_TEMPLATE.parse(scanRunName).get("scan_config"); - } - - /** - * Parses the scan_run from the given fully-qualified path which represents a scan_run resource. - * - * @deprecated Use the {@link ScanRunName} class instead. - */ - @Deprecated - public static final String parseScanRunFromScanRunName(String scanRunName) { - return SCAN_RUN_PATH_TEMPLATE.parse(scanRunName).get("scan_run"); - } - /** Constructs an instance of WebSecurityScannerClient with default settings. */ public static final WebSecurityScannerClient create() throws IOException { return create(WebSecurityScannerSettings.newBuilder().build()); @@ -334,9 +167,38 @@ public WebSecurityScannerStub getStub() { * *

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
+   *   ScanConfig response = webSecurityScannerClient.createScanConfig(parent, scanConfig);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name where the scan is created, which should be a + * project resource name in the format 'projects/{projectId}'. + * @param scanConfig Required. The ScanConfig to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ScanConfig createScanConfig(ProjectName parent, ScanConfig scanConfig) { + + CreateScanConfigRequest request = + CreateScanConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setScanConfig(scanConfig) + .build(); + return createScanConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new ScanConfig. + * + *

Sample code: + * + *


+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
-   *   ScanConfig response = webSecurityScannerClient.createScanConfig(formattedParent, scanConfig);
+   *   ScanConfig response = webSecurityScannerClient.createScanConfig(parent.toString(), scanConfig);
    * }
    * 
* @@ -346,7 +208,7 @@ public WebSecurityScannerStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ScanConfig createScanConfig(String parent, ScanConfig scanConfig) { - PROJECT_PATH_TEMPLATE.validate(parent, "createScanConfig"); + CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder().setParent(parent).setScanConfig(scanConfig).build(); return createScanConfig(request); @@ -360,10 +222,10 @@ public final ScanConfig createScanConfig(String parent, ScanConfig scanConfig) { * *

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
    *   CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setScanConfig(scanConfig)
    *     .build();
    *   ScanConfig response = webSecurityScannerClient.createScanConfig(request);
@@ -385,10 +247,10 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest request) {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
    *   CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setScanConfig(scanConfig)
    *     .build();
    *   ApiFuture<ScanConfig> future = webSecurityScannerClient.createScanConfigCallable().futureCall(request);
@@ -409,8 +271,32 @@ public final UnaryCallable createScanConfig
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
-   *   webSecurityScannerClient.deleteScanConfig(formattedName);
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   webSecurityScannerClient.deleteScanConfig(name);
+   * }
+   * 
+ * + * @param name Required. The resource name of the ScanConfig to be deleted. The name follows the + * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteScanConfig(ScanConfigName name) { + + DeleteScanConfigRequest request = + DeleteScanConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteScanConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an existing ScanConfig and its child resources. + * + *

Sample code: + * + *


+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   webSecurityScannerClient.deleteScanConfig(name.toString());
    * }
    * 
* @@ -419,7 +305,7 @@ public final UnaryCallable createScanConfig * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteScanConfig(String name) { - SCAN_CONFIG_PATH_TEMPLATE.validate(name, "deleteScanConfig"); + DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder().setName(name).build(); deleteScanConfig(request); } @@ -432,9 +318,9 @@ public final void deleteScanConfig(String name) { * *

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   webSecurityScannerClient.deleteScanConfig(request);
    * }
@@ -455,9 +341,9 @@ public final void deleteScanConfig(DeleteScanConfigRequest request) {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<Void> future = webSecurityScannerClient.deleteScanConfigCallable().futureCall(request);
    *   // Do something
@@ -477,8 +363,32 @@ public final UnaryCallable deleteScanConfigCalla
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
-   *   ScanConfig response = webSecurityScannerClient.getScanConfig(formattedName);
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfig response = webSecurityScannerClient.getScanConfig(name);
+   * }
+   * 
+ * + * @param name Required. The resource name of the ScanConfig to be returned. The name follows the + * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ScanConfig getScanConfig(ScanConfigName name) { + + GetScanConfigRequest request = + GetScanConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getScanConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a ScanConfig. + * + *

Sample code: + * + *


+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfig response = webSecurityScannerClient.getScanConfig(name.toString());
    * }
    * 
* @@ -487,7 +397,7 @@ public final UnaryCallable deleteScanConfigCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ScanConfig getScanConfig(String name) { - SCAN_CONFIG_PATH_TEMPLATE.validate(name, "getScanConfig"); + GetScanConfigRequest request = GetScanConfigRequest.newBuilder().setName(name).build(); return getScanConfig(request); } @@ -500,9 +410,9 @@ public final ScanConfig getScanConfig(String name) { * *

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   GetScanConfigRequest request = GetScanConfigRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ScanConfig response = webSecurityScannerClient.getScanConfig(request);
    * }
@@ -523,9 +433,9 @@ public final ScanConfig getScanConfig(GetScanConfigRequest request) {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   GetScanConfigRequest request = GetScanConfigRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<ScanConfig> future = webSecurityScannerClient.getScanConfigCallable().futureCall(request);
    *   // Do something
@@ -545,8 +455,35 @@ public final UnaryCallable getScanConfigCallab
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]");
-   *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(formattedParent).iterateAll()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, which should be a project resource name in + * the format 'projects/{projectId}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent) { + ListScanConfigsRequest request = + ListScanConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listScanConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists ScanConfigs under a given project. + * + *

Sample code: + * + *


+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent.toString()).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -557,7 +494,6 @@ public final UnaryCallable getScanConfigCallab
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final ListScanConfigsPagedResponse listScanConfigs(String parent) {
-    PROJECT_PATH_TEMPLATE.validate(parent, "listScanConfigs");
     ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder().setParent(parent).build();
     return listScanConfigs(request);
   }
@@ -570,9 +506,9 @@ public final ListScanConfigsPagedResponse listScanConfigs(String parent) {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   for (ScanConfig element : webSecurityScannerClient.listScanConfigs(request).iterateAll()) {
    *     // doThingsWith(element);
@@ -595,9 +531,9 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<ListScanConfigsPagedResponse> future = webSecurityScannerClient.listScanConfigsPagedCallable().futureCall(request);
    *   // Do something
@@ -620,9 +556,9 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
    *     ListScanConfigsResponse response = webSecurityScannerClient.listScanConfigsCallable().call(request);
@@ -733,8 +669,32 @@ public final UnaryCallable updateScanConfig
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
-   *   ScanRun response = webSecurityScannerClient.startScanRun(formattedName);
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanRun response = webSecurityScannerClient.startScanRun(name);
+   * }
+   * 
+ * + * @param name Required. The resource name of the ScanConfig to be used. The name follows the + * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ScanRun startScanRun(ScanConfigName name) { + + StartScanRunRequest request = + StartScanRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return startScanRun(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Start a ScanRun according to the given ScanConfig. + * + *

Sample code: + * + *


+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanRun response = webSecurityScannerClient.startScanRun(name.toString());
    * }
    * 
* @@ -743,7 +703,7 @@ public final UnaryCallable updateScanConfig * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ScanRun startScanRun(String name) { - SCAN_CONFIG_PATH_TEMPLATE.validate(name, "startScanRun"); + StartScanRunRequest request = StartScanRunRequest.newBuilder().setName(name).build(); return startScanRun(request); } @@ -756,9 +716,9 @@ public final ScanRun startScanRun(String name) { * *

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   StartScanRunRequest request = StartScanRunRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ScanRun response = webSecurityScannerClient.startScanRun(request);
    * }
@@ -779,9 +739,9 @@ public final ScanRun startScanRun(StartScanRunRequest request) {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   StartScanRunRequest request = StartScanRunRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<ScanRun> future = webSecurityScannerClient.startScanRunCallable().futureCall(request);
    *   // Do something
@@ -801,8 +761,32 @@ public final UnaryCallable startScanRunCallable()
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
-   *   ScanRun response = webSecurityScannerClient.getScanRun(formattedName);
+   *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRun response = webSecurityScannerClient.getScanRun(name);
+   * }
+   * 
+ * + * @param name Required. The resource name of the ScanRun to be returned. The name follows the + * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ScanRun getScanRun(ScanRunName name) { + + GetScanRunRequest request = + GetScanRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getScanRun(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a ScanRun. + * + *

Sample code: + * + *


+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRun response = webSecurityScannerClient.getScanRun(name.toString());
    * }
    * 
* @@ -811,7 +795,7 @@ public final UnaryCallable startScanRunCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ScanRun getScanRun(String name) { - SCAN_RUN_PATH_TEMPLATE.validate(name, "getScanRun"); + GetScanRunRequest request = GetScanRunRequest.newBuilder().setName(name).build(); return getScanRun(request); } @@ -824,9 +808,9 @@ public final ScanRun getScanRun(String name) { * *

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   GetScanRunRequest request = GetScanRunRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ScanRun response = webSecurityScannerClient.getScanRun(request);
    * }
@@ -847,9 +831,9 @@ public final ScanRun getScanRun(GetScanRunRequest request) {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   GetScanRunRequest request = GetScanRunRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<ScanRun> future = webSecurityScannerClient.getScanRunCallable().futureCall(request);
    *   // Do something
@@ -869,8 +853,35 @@ public final UnaryCallable getScanRunCallable() {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
-   *   for (ScanRun element : webSecurityScannerClient.listScanRuns(formattedParent).iterateAll()) {
+   *   ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, which should be a scan resource name in the + * format 'projects/{projectId}/scanConfigs/{scanConfigId}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScanRunsPagedResponse listScanRuns(ScanConfigName parent) { + ListScanRunsRequest request = + ListScanRunsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listScanRuns(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. + * + *

Sample code: + * + *


+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
+   *   for (ScanRun element : webSecurityScannerClient.listScanRuns(parent.toString()).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -881,7 +892,6 @@ public final UnaryCallable getScanRunCallable() {
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final ListScanRunsPagedResponse listScanRuns(String parent) {
-    SCAN_CONFIG_PATH_TEMPLATE.validate(parent, "listScanRuns");
     ListScanRunsRequest request = ListScanRunsRequest.newBuilder().setParent(parent).build();
     return listScanRuns(request);
   }
@@ -894,9 +904,9 @@ public final ListScanRunsPagedResponse listScanRuns(String parent) {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   ListScanRunsRequest request = ListScanRunsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   for (ScanRun element : webSecurityScannerClient.listScanRuns(request).iterateAll()) {
    *     // doThingsWith(element);
@@ -919,9 +929,9 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request)
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   ListScanRunsRequest request = ListScanRunsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<ListScanRunsPagedResponse> future = webSecurityScannerClient.listScanRunsPagedCallable().futureCall(request);
    *   // Do something
@@ -944,9 +954,9 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request)
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
+   *   ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]");
    *   ListScanRunsRequest request = ListScanRunsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
    *     ListScanRunsResponse response = webSecurityScannerClient.listScanRunsCallable().call(request);
@@ -975,8 +985,32 @@ public final UnaryCallable listScanRu
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
-   *   ScanRun response = webSecurityScannerClient.stopScanRun(formattedName);
+   *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRun response = webSecurityScannerClient.stopScanRun(name);
+   * }
+   * 
+ * + * @param name Required. The resource name of the ScanRun to be stopped. The name follows the + * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ScanRun stopScanRun(ScanRunName name) { + + StopScanRunRequest request = + StopScanRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return stopScanRun(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Stops a ScanRun. The stopped ScanRun is returned. + * + *

Sample code: + * + *


+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRun response = webSecurityScannerClient.stopScanRun(name.toString());
    * }
    * 
* @@ -985,7 +1019,7 @@ public final UnaryCallable listScanRu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ScanRun stopScanRun(String name) { - SCAN_RUN_PATH_TEMPLATE.validate(name, "stopScanRun"); + StopScanRunRequest request = StopScanRunRequest.newBuilder().setName(name).build(); return stopScanRun(request); } @@ -998,9 +1032,9 @@ public final ScanRun stopScanRun(String name) { * *

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   StopScanRunRequest request = StopScanRunRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ScanRun response = webSecurityScannerClient.stopScanRun(request);
    * }
@@ -1021,9 +1055,9 @@ public final ScanRun stopScanRun(StopScanRunRequest request) {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   StopScanRunRequest request = StopScanRunRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<ScanRun> future = webSecurityScannerClient.stopScanRunCallable().futureCall(request);
    *   // Do something
@@ -1043,8 +1077,35 @@ public final UnaryCallable stopScanRunCallable() {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
-   *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(formattedParent).iterateAll()) {
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, which should be a scan run resource name in + * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCrawledUrlsPagedResponse listCrawledUrls(ScanRunName parent) { + ListCrawledUrlsRequest request = + ListCrawledUrlsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCrawledUrls(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * List CrawledUrls under a given ScanRun. + * + *

Sample code: + * + *


+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent.toString()).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -1055,7 +1116,6 @@ public final UnaryCallable stopScanRunCallable() {
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final ListCrawledUrlsPagedResponse listCrawledUrls(String parent) {
-    SCAN_RUN_PATH_TEMPLATE.validate(parent, "listCrawledUrls");
     ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder().setParent(parent).build();
     return listCrawledUrls(request);
   }
@@ -1068,9 +1128,9 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(String parent) {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(request).iterateAll()) {
    *     // doThingsWith(element);
@@ -1093,9 +1153,9 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<ListCrawledUrlsPagedResponse> future = webSecurityScannerClient.listCrawledUrlsPagedCallable().futureCall(request);
    *   // Do something
@@ -1118,9 +1178,9 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
    *     ListCrawledUrlsResponse response = webSecurityScannerClient.listCrawledUrlsCallable().call(request);
@@ -1150,8 +1210,33 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatFindingName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
-   *   Finding response = webSecurityScannerClient.getFinding(formattedName);
+   *   FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
+   *   Finding response = webSecurityScannerClient.getFinding(name);
+   * }
+   * 
+ * + * @param name Required. The resource name of the Finding to be returned. The name follows the + * format of + * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Finding getFinding(FindingName name) { + + GetFindingRequest request = + GetFindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getFinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a Finding. + * + *

Sample code: + * + *


+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
+   *   Finding response = webSecurityScannerClient.getFinding(name.toString());
    * }
    * 
* @@ -1161,7 +1246,7 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Finding getFinding(String name) { - FINDING_PATH_TEMPLATE.validate(name, "getFinding"); + GetFindingRequest request = GetFindingRequest.newBuilder().setName(name).build(); return getFinding(request); } @@ -1174,9 +1259,9 @@ public final Finding getFinding(String name) { * *

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatFindingName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
+   *   FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
    *   GetFindingRequest request = GetFindingRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   Finding response = webSecurityScannerClient.getFinding(request);
    * }
@@ -1197,9 +1282,9 @@ public final Finding getFinding(GetFindingRequest request) {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedName = WebSecurityScannerClient.formatFindingName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
+   *   FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]");
    *   GetFindingRequest request = GetFindingRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<Finding> future = webSecurityScannerClient.getFindingCallable().futureCall(request);
    *   // Do something
@@ -1219,9 +1304,41 @@ public final UnaryCallable getFindingCallable() {
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   String filter = "";
+   *   for (Finding element : webSecurityScannerClient.listFindings(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, which should be a scan run resource name in + * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. + * @param filter Required. The filter expression. The expression must be in the format: + * <field> <operator> <value>. Supported field: 'finding_type'. Supported + * operator: '='. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFindingsPagedResponse listFindings(ScanRunName parent, String filter) { + ListFindingsRequest request = + ListFindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listFindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * List Findings under a given ScanRun. + * + *

Sample code: + * + *


+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   String filter = "";
-   *   for (Finding element : webSecurityScannerClient.listFindings(formattedParent, filter).iterateAll()) {
+   *   for (Finding element : webSecurityScannerClient.listFindings(parent.toString(), filter).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -1229,12 +1346,12 @@ public final UnaryCallable getFindingCallable() {
    *
    * @param parent Required. The parent resource name, which should be a scan run resource name in
    *     the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * @param filter The filter expression. The expression must be in the format: <field>
-   *     <operator> <value>. Supported field: 'finding_type'. Supported operator: '='.
+   * @param filter Required. The filter expression. The expression must be in the format:
+   *     <field> <operator> <value>. Supported field: 'finding_type'. Supported
+   *     operator: '='.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final ListFindingsPagedResponse listFindings(String parent, String filter) {
-    SCAN_RUN_PATH_TEMPLATE.validate(parent, "listFindings");
     ListFindingsRequest request =
         ListFindingsRequest.newBuilder().setParent(parent).setFilter(filter).build();
     return listFindings(request);
@@ -1248,10 +1365,10 @@ public final ListFindingsPagedResponse listFindings(String parent, String filter
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   String filter = "";
    *   ListFindingsRequest request = ListFindingsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setFilter(filter)
    *     .build();
    *   for (Finding element : webSecurityScannerClient.listFindings(request).iterateAll()) {
@@ -1275,10 +1392,10 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request)
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   String filter = "";
    *   ListFindingsRequest request = ListFindingsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setFilter(filter)
    *     .build();
    *   ApiFuture<ListFindingsPagedResponse> future = webSecurityScannerClient.listFindingsPagedCallable().futureCall(request);
@@ -1302,10 +1419,10 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request)
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   String filter = "";
    *   ListFindingsRequest request = ListFindingsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setFilter(filter)
    *     .build();
    *   while (true) {
@@ -1335,8 +1452,34 @@ public final UnaryCallable listFindin
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
-   *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(formattedParent);
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, which should be a scan run resource name in + * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFindingTypeStatsResponse listFindingTypeStats(ScanRunName parent) { + + ListFindingTypeStatsRequest request = + ListFindingTypeStatsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFindingTypeStats(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * List all FindingTypeStats under a given ScanRun. + * + *

Sample code: + * + *


+   * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent.toString());
    * }
    * 
* @@ -1345,7 +1488,7 @@ public final UnaryCallable listFindin * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFindingTypeStatsResponse listFindingTypeStats(String parent) { - SCAN_RUN_PATH_TEMPLATE.validate(parent, "listFindingTypeStats"); + ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder().setParent(parent).build(); return listFindingTypeStats(request); @@ -1359,9 +1502,9 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(String parent) { * *

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(request);
    * }
@@ -1383,9 +1526,9 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(
    *
    * 

    * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
-   *   String formattedParent = WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
+   *   ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]");
    *   ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<ListFindingTypeStatsResponse> future = webSecurityScannerClient.listFindingTypeStatsCallable().futureCall(request);
    *   // Do something
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
index 0cc6e3ec..6b82a18a 100644
--- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
+++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
@@ -30,9 +30,9 @@
  * 
  * 
  * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
- *   String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]");
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   ScanConfig scanConfig = ScanConfig.newBuilder().build();
- *   ScanConfig response = webSecurityScannerClient.createScanConfig(formattedParent, scanConfig);
+ *   ScanConfig response = webSecurityScannerClient.createScanConfig(parent, scanConfig);
  * }
  * 
  * 
diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java index c2c669cc..9d22d105 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java @@ -642,7 +642,7 @@ private static Builder initDefaults(Builder builder) { builder .deleteScanConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java index 43c7c945..5674cd83 100644 --- a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java +++ b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java @@ -84,24 +84,28 @@ public void tearDown() throws Exception { @Test @SuppressWarnings("all") public void createScanConfigTest() { - String name = "name3373707"; + ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); String displayName = "displayName1615086568"; int maxQps = 844445913; ScanConfig expectedResponse = - ScanConfig.newBuilder().setName(name).setDisplayName(displayName).setMaxQps(maxQps).build(); + ScanConfig.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setMaxQps(maxQps) + .build(); mockWebSecurityScanner.addResponse(expectedResponse); - String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); ScanConfig scanConfig = ScanConfig.newBuilder().build(); - ScanConfig actualResponse = client.createScanConfig(formattedParent, scanConfig); + ScanConfig actualResponse = client.createScanConfig(parent, scanConfig); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockWebSecurityScanner.getRequests(); Assert.assertEquals(1, actualRequests.size()); CreateScanConfigRequest actualRequest = (CreateScanConfigRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); Assert.assertEquals(scanConfig, actualRequest.getScanConfig()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -116,10 +120,10 @@ public void createScanConfigExceptionTest() throws Exception { mockWebSecurityScanner.addException(exception); try { - String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); ScanConfig scanConfig = ScanConfig.newBuilder().build(); - client.createScanConfig(formattedParent, scanConfig); + client.createScanConfig(parent, scanConfig); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -132,16 +136,15 @@ public void deleteScanConfigTest() { Empty expectedResponse = Empty.newBuilder().build(); mockWebSecurityScanner.addResponse(expectedResponse); - String formattedName = - WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]"); + ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); - client.deleteScanConfig(formattedName); + client.deleteScanConfig(name); List actualRequests = mockWebSecurityScanner.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteScanConfigRequest actualRequest = (DeleteScanConfigRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, ScanConfigName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -155,10 +158,9 @@ public void deleteScanConfigExceptionTest() throws Exception { mockWebSecurityScanner.addException(exception); try { - String formattedName = - WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]"); + ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); - client.deleteScanConfig(formattedName); + client.deleteScanConfig(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -168,28 +170,27 @@ public void deleteScanConfigExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getScanConfigTest() { - String name2 = "name2-1052831874"; + ScanConfigName name2 = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); String displayName = "displayName1615086568"; int maxQps = 844445913; ScanConfig expectedResponse = ScanConfig.newBuilder() - .setName(name2) + .setName(name2.toString()) .setDisplayName(displayName) .setMaxQps(maxQps) .build(); mockWebSecurityScanner.addResponse(expectedResponse); - String formattedName = - WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]"); + ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); - ScanConfig actualResponse = client.getScanConfig(formattedName); + ScanConfig actualResponse = client.getScanConfig(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockWebSecurityScanner.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetScanConfigRequest actualRequest = (GetScanConfigRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, ScanConfigName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -203,10 +204,9 @@ public void getScanConfigExceptionTest() throws Exception { mockWebSecurityScanner.addException(exception); try { - String formattedName = - WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]"); + ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); - client.getScanConfig(formattedName); + client.getScanConfig(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -226,9 +226,9 @@ public void listScanConfigsTest() { .build(); mockWebSecurityScanner.addResponse(expectedResponse); - String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); - ListScanConfigsPagedResponse pagedListResponse = client.listScanConfigs(formattedParent); + ListScanConfigsPagedResponse pagedListResponse = client.listScanConfigs(parent); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -238,7 +238,7 @@ public void listScanConfigsTest() { Assert.assertEquals(1, actualRequests.size()); ListScanConfigsRequest actualRequest = (ListScanConfigsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -252,9 +252,9 @@ public void listScanConfigsExceptionTest() throws Exception { mockWebSecurityScanner.addException(exception); try { - String formattedParent = WebSecurityScannerClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); - client.listScanConfigs(formattedParent); + client.listScanConfigs(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -264,11 +264,15 @@ public void listScanConfigsExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void updateScanConfigTest() { - String name = "name3373707"; + ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); String displayName = "displayName1615086568"; int maxQps = 844445913; ScanConfig expectedResponse = - ScanConfig.newBuilder().setName(name).setDisplayName(displayName).setMaxQps(maxQps).build(); + ScanConfig.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setMaxQps(maxQps) + .build(); mockWebSecurityScanner.addResponse(expectedResponse); ScanConfig scanConfig = ScanConfig.newBuilder().build(); @@ -309,14 +313,14 @@ public void updateScanConfigExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void startScanRunTest() { - String name2 = "name2-1052831874"; + ScanRunName name2 = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); long urlsCrawledCount = 1749797253L; long urlsTestedCount = 1498664068L; boolean hasVulnerabilities = false; int progressPercent = 2137894861; ScanRun expectedResponse = ScanRun.newBuilder() - .setName(name2) + .setName(name2.toString()) .setUrlsCrawledCount(urlsCrawledCount) .setUrlsTestedCount(urlsTestedCount) .setHasVulnerabilities(hasVulnerabilities) @@ -324,17 +328,16 @@ public void startScanRunTest() { .build(); mockWebSecurityScanner.addResponse(expectedResponse); - String formattedName = - WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]"); + ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); - ScanRun actualResponse = client.startScanRun(formattedName); + ScanRun actualResponse = client.startScanRun(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockWebSecurityScanner.getRequests(); Assert.assertEquals(1, actualRequests.size()); StartScanRunRequest actualRequest = (StartScanRunRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, ScanConfigName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -348,10 +351,9 @@ public void startScanRunExceptionTest() throws Exception { mockWebSecurityScanner.addException(exception); try { - String formattedName = - WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]"); + ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); - client.startScanRun(formattedName); + client.startScanRun(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -361,14 +363,14 @@ public void startScanRunExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getScanRunTest() { - String name2 = "name2-1052831874"; + ScanRunName name2 = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); long urlsCrawledCount = 1749797253L; long urlsTestedCount = 1498664068L; boolean hasVulnerabilities = false; int progressPercent = 2137894861; ScanRun expectedResponse = ScanRun.newBuilder() - .setName(name2) + .setName(name2.toString()) .setUrlsCrawledCount(urlsCrawledCount) .setUrlsTestedCount(urlsTestedCount) .setHasVulnerabilities(hasVulnerabilities) @@ -376,17 +378,16 @@ public void getScanRunTest() { .build(); mockWebSecurityScanner.addResponse(expectedResponse); - String formattedName = - WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); + ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); - ScanRun actualResponse = client.getScanRun(formattedName); + ScanRun actualResponse = client.getScanRun(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockWebSecurityScanner.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetScanRunRequest actualRequest = (GetScanRunRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, ScanRunName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -400,10 +401,9 @@ public void getScanRunExceptionTest() throws Exception { mockWebSecurityScanner.addException(exception); try { - String formattedName = - WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); + ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); - client.getScanRun(formattedName); + client.getScanRun(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -423,10 +423,9 @@ public void listScanRunsTest() { .build(); mockWebSecurityScanner.addResponse(expectedResponse); - String formattedParent = - WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]"); + ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); - ListScanRunsPagedResponse pagedListResponse = client.listScanRuns(formattedParent); + ListScanRunsPagedResponse pagedListResponse = client.listScanRuns(parent); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -436,7 +435,7 @@ public void listScanRunsTest() { Assert.assertEquals(1, actualRequests.size()); ListScanRunsRequest actualRequest = (ListScanRunsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ScanConfigName.parse(actualRequest.getParent())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -450,10 +449,9 @@ public void listScanRunsExceptionTest() throws Exception { mockWebSecurityScanner.addException(exception); try { - String formattedParent = - WebSecurityScannerClient.formatScanConfigName("[PROJECT]", "[SCAN_CONFIG]"); + ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); - client.listScanRuns(formattedParent); + client.listScanRuns(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -463,14 +461,14 @@ public void listScanRunsExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void stopScanRunTest() { - String name2 = "name2-1052831874"; + ScanRunName name2 = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); long urlsCrawledCount = 1749797253L; long urlsTestedCount = 1498664068L; boolean hasVulnerabilities = false; int progressPercent = 2137894861; ScanRun expectedResponse = ScanRun.newBuilder() - .setName(name2) + .setName(name2.toString()) .setUrlsCrawledCount(urlsCrawledCount) .setUrlsTestedCount(urlsTestedCount) .setHasVulnerabilities(hasVulnerabilities) @@ -478,17 +476,16 @@ public void stopScanRunTest() { .build(); mockWebSecurityScanner.addResponse(expectedResponse); - String formattedName = - WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); + ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); - ScanRun actualResponse = client.stopScanRun(formattedName); + ScanRun actualResponse = client.stopScanRun(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockWebSecurityScanner.getRequests(); Assert.assertEquals(1, actualRequests.size()); StopScanRunRequest actualRequest = (StopScanRunRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, ScanRunName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -502,10 +499,9 @@ public void stopScanRunExceptionTest() throws Exception { mockWebSecurityScanner.addException(exception); try { - String formattedName = - WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); + ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); - client.stopScanRun(formattedName); + client.stopScanRun(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -525,10 +521,9 @@ public void listCrawledUrlsTest() { .build(); mockWebSecurityScanner.addResponse(expectedResponse); - String formattedParent = - WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); + ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); - ListCrawledUrlsPagedResponse pagedListResponse = client.listCrawledUrls(formattedParent); + ListCrawledUrlsPagedResponse pagedListResponse = client.listCrawledUrls(parent); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -538,7 +533,7 @@ public void listCrawledUrlsTest() { Assert.assertEquals(1, actualRequests.size()); ListCrawledUrlsRequest actualRequest = (ListCrawledUrlsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ScanRunName.parse(actualRequest.getParent())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -552,10 +547,9 @@ public void listCrawledUrlsExceptionTest() throws Exception { mockWebSecurityScanner.addException(exception); try { - String formattedParent = - WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); + ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); - client.listCrawledUrls(formattedParent); + client.listCrawledUrls(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -565,7 +559,7 @@ public void listCrawledUrlsExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getFindingTest() { - String name2 = "name2-1052831874"; + FindingName name2 = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); String findingType = "findingType274496048"; String httpMethod = "httpMethod820747384"; String fuzzedUrl = "fuzzedUrl-2120677666"; @@ -577,7 +571,7 @@ public void getFindingTest() { String trackingId = "trackingId1878901667"; Finding expectedResponse = Finding.newBuilder() - .setName(name2) + .setName(name2.toString()) .setFindingType(findingType) .setHttpMethod(httpMethod) .setFuzzedUrl(fuzzedUrl) @@ -590,18 +584,16 @@ public void getFindingTest() { .build(); mockWebSecurityScanner.addResponse(expectedResponse); - String formattedName = - WebSecurityScannerClient.formatFindingName( - "[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); + FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); - Finding actualResponse = client.getFinding(formattedName); + Finding actualResponse = client.getFinding(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockWebSecurityScanner.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetFindingRequest actualRequest = (GetFindingRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, FindingName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -615,11 +607,9 @@ public void getFindingExceptionTest() throws Exception { mockWebSecurityScanner.addException(exception); try { - String formattedName = - WebSecurityScannerClient.formatFindingName( - "[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); + FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); - client.getFinding(formattedName); + client.getFinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -639,11 +629,10 @@ public void listFindingsTest() { .build(); mockWebSecurityScanner.addResponse(expectedResponse); - String formattedParent = - WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); + ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); String filter = "filter-1274492040"; - ListFindingsPagedResponse pagedListResponse = client.listFindings(formattedParent, filter); + ListFindingsPagedResponse pagedListResponse = client.listFindings(parent, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -653,7 +642,7 @@ public void listFindingsTest() { Assert.assertEquals(1, actualRequests.size()); ListFindingsRequest actualRequest = (ListFindingsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ScanRunName.parse(actualRequest.getParent())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -668,11 +657,10 @@ public void listFindingsExceptionTest() throws Exception { mockWebSecurityScanner.addException(exception); try { - String formattedParent = - WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); + ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); String filter = "filter-1274492040"; - client.listFindings(formattedParent, filter); + client.listFindings(parent, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -686,17 +674,16 @@ public void listFindingTypeStatsTest() { ListFindingTypeStatsResponse.newBuilder().build(); mockWebSecurityScanner.addResponse(expectedResponse); - String formattedParent = - WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); + ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); - ListFindingTypeStatsResponse actualResponse = client.listFindingTypeStats(formattedParent); + ListFindingTypeStatsResponse actualResponse = client.listFindingTypeStats(parent); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockWebSecurityScanner.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListFindingTypeStatsRequest actualRequest = (ListFindingTypeStatsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ScanRunName.parse(actualRequest.getParent())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -710,10 +697,9 @@ public void listFindingTypeStatsExceptionTest() throws Exception { mockWebSecurityScanner.addException(exception); try { - String formattedParent = - WebSecurityScannerClient.formatScanRunName("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); + ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); - client.listFindingTypeStats(formattedParent); + client.listFindingTypeStats(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception diff --git a/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index c64dc206..b65090e9 100644 --- a/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -2,51 +2,55 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.80.0 + 0.81.0 grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha - com.google.api.grpc - google-api-grpc - 0.80.0 + com.google.cloud + google-cloud-websecurityscanner-parent + 0.116.0 + + io.grpc + grpc-api + io.grpc grpc-stub - compile io.grpc grpc-protobuf - compile + + + com.google.protobuf + protobuf-java com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - compile + + + com.google.guava + guava - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 - - protected - true - none - true - - - ${project.javadoc.protobufBaseURL} - ../../../../proto-google-cloud-websecurityscanner-v1alpha/target/site/apidocs/ - - - - - - - + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + \ No newline at end of file diff --git a/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java b/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java index 6802f4ee..21e8de25 100644 --- a/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java +++ b/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ package com.google.cloud.websecurityscanner.v1alpha; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/grpc-google-cloud-websecurityscanner-v1beta/pom.xml b/grpc-google-cloud-websecurityscanner-v1beta/pom.xml index 748fe5f7..0c18dae5 100644 --- a/grpc-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/grpc-google-cloud-websecurityscanner-v1beta/pom.xml @@ -2,51 +2,55 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.80.0 + 0.81.0 grpc-google-cloud-websecurityscanner-v1beta GRPC library for grpc-google-cloud-websecurityscanner-v1beta - com.google.api.grpc - google-api-grpc - 0.80.0 + com.google.cloud + google-cloud-websecurityscanner-parent + 0.116.0 + + io.grpc + grpc-api + io.grpc grpc-stub - compile io.grpc grpc-protobuf - compile + + + com.google.protobuf + protobuf-java com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - compile + + + com.google.guava + guava - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 - - protected - true - none - true - - - ${project.javadoc.protobufBaseURL} - ../../../../proto-google-cloud-websecurityscanner-v1beta/target/site/apidocs/ - - - - - - - + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + \ No newline at end of file diff --git a/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java b/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java index acc262fa..2ffd9d71 100644 --- a/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java +++ b/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ package com.google.cloud.websecurityscanner.v1beta; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/java.header b/java.header new file mode 100644 index 00000000..3a9b503a --- /dev/null +++ b/java.header @@ -0,0 +1,15 @@ +^/\*$ +^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)( All [rR]ights [rR]eserved\.)?$ +^ \*$ +^ \* 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\.$ +^ \*/$ diff --git a/license-checks.xml b/license-checks.xml new file mode 100644 index 00000000..6597fced --- /dev/null +++ b/license-checks.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..6b25ae06 --- /dev/null +++ b/pom.xml @@ -0,0 +1,283 @@ + + + 4.0.0 + com.google.cloud + google-cloud-websecurityscanner-parent + pom + 0.116.0 + Google Cloud Web Security Scanner Parent + https://github.com/googleapis/java-websecurityscanner + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-shared-config + 0.2.1 + + + + + chingor + Jeff Ching + chingor@google.com + Google + + Developer + + + + + Google LLC + + + scm:git:git@github.com:googleapis/java-websecurityscanner.git + scm:git:git@github.com:googleapis/java-websecurityscanner.git + https://github.com/googleapis/java-websecurityscanner + HEAD + + + https://github.com/googleapis/java-websecurityscanner/issues + GitHub Issues + + + + sonatype-nexus-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + Apache-2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + + + + + UTF-8 + UTF-8 + github + google-cloud-websecurityscanner-parent + 1.91.1 + 1.8.1 + 1.17.0 + 0.18.0 + 1.49.1 + 1.24.1 + 3.10.0 + 4.12 + 28.1-android + 1.4.0 + 1.3.2 + 1.18 + 2.10.5 + + + + + + com.google.api.grpc + proto-google-cloud-websecurityscanner-v1beta + 0.81.0 + + + com.google.api.grpc + proto-google-cloud-websecurityscanner-v1alpha + 0.81.0 + + + com.google.api.grpc + grpc-google-cloud-websecurityscanner-v1alpha + 0.81.0 + + + com.google.api.grpc + grpc-google-cloud-websecurityscanner-v1beta + 0.81.0 + + + com.google.cloud + google-cloud-websecurityscanner + 0.116.0 + + + + com.google.auth + google-auth-library-bom + ${google.auth.version} + pom + import + + + io.grpc + grpc-bom + ${grpc.version} + pom + import + + + com.google.api + gax-bom + ${gax.version} + pom + import + + + com.google.guava + guava-bom + ${guava.version} + pom + import + + + + com.google.protobuf + protobuf-java + ${protobuf.version} + + + com.google.api + api-common + ${google.api-common.version} + + + com.google.api.grpc + proto-google-common-protos + ${google.common-protos.version} + + + org.threeten + threetenbp + ${threeten.version} + + + javax.annotation + javax.annotation-api + ${javax.annotations.version} + + + org.codehaus.mojo + animal-sniffer-annotations + ${animal-sniffer.version} + + + + junit + junit + ${junit.version} + test + + + joda-time + joda-time + ${joda.version} + test + + + com.google.api + gax-grpc + ${gax.version} + testlib + test + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + org.objenesis:objenesis + + + + + + + + proto-google-cloud-websecurityscanner-v1beta + proto-google-cloud-websecurityscanner-v1alpha + grpc-google-cloud-websecurityscanner-v1alpha + grpc-google-cloud-websecurityscanner-v1beta + google-cloud-websecurityscanner + google-cloud-websecurityscanner-bom + + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 3.0.0 + + + + index + dependency-info + team + ci-management + issue-management + licenses + scm + dependency-management + distribution-management + summary + modules + + + + + true + ${site.installationModule} + jar + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.1 + + + html + + aggregate + javadoc + + + + + none + protected + true + ${project.build.directory}/javadoc + + + Test helpers packages + com.google.cloud.testing + + + SPI packages + com.google.cloud.spi* + + + + + https://grpc.io/grpc-java/javadoc/ + https://developers.google.com/protocol-buffers/docs/reference/java/ + https://googleapis.dev/java/google-auth-library/latest/ + https://googleapis.dev/java/gax/latest/ + https://googleapis.github.io/api-common-java/${google.api-common.version}/apidocs/ + + + + + + \ No newline at end of file diff --git a/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index e097a911..be51527b 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -2,30 +2,32 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.80.0 + 0.81.0 proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha - com.google.api.grpc - google-api-grpc - 0.80.0 + com.google.cloud + google-cloud-websecurityscanner-parent + 0.116.0 com.google.protobuf protobuf-java - compile + + + com.google.api.grpc + proto-google-common-protos com.google.api api-common - compile - com.google.api.grpc - proto-google-common-protos - compile + com.google.guava + guava \ No newline at end of file diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java index be5fd5ab..42afe978 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java index 08a9f629..8e846d36 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java index 538dcd0b..cada2a4f 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java index 79d81109..4c165b9e 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java index 3ae9d782..fec395ea 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java index b3bbcac2..9f471669 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java index 2a54e027..e20f4529 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java index 50e110fd..602b4c8c 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java index 34f9d6ff..8300c3fd 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java index 13b02a1a..14be1c25 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * 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 + * 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 + * 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. + * 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. */ package com.google.cloud.websecurityscanner.v1alpha; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java index e84652a3..46fb5735 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java index 1f8d7aa4..7bffdbdf 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java index 70e2aa54..048fd9ad 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java index d812ed93..743d7578 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java index 5bdec7db..b8b71e5b 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java index 7beca9e7..0ee284a8 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java index 23082eaf..723e731f 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java index 14d7bf16..0accc3e0 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java index 29a6d254..815351f4 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java index 4c254ab8..0983a678 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java index c6982463..2d3d1fb1 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java index 792f813a..37bbf0fa 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java index 70addebe..cb6b1c6e 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java index 08c36339..80b438de 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java index e80ef4b3..5f930e7d 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java index e000664d..6116339b 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java index 615ad9c4..34342051 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java index fa9505c1..092dc36d 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java index adc9192d..acc34b06 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java index 1750c4c6..a9672d3b 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java index 1eb1f4d8..edfee1b2 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java index 02c31a4a..cbd9d72e 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java index 16949a14..f02e6873 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java index 0b7dd0d5..923bb905 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java index 6b6befc5..8a3f294f 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java index b3caf32a..36fb934b 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java index 5ccf8e88..d2e33638 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java index b1f91f0f..df6618ff 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java index fda04f8a..5f19f753 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java index a4331379..9dd5fa3f 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java index 45ee1574..dfc2bd22 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java index e84f7f02..74799c77 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java index b2df0853..11fa9cf6 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java index 12220fee..2b7a321b 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * 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 + * 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 + * 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. + * 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. */ package com.google.cloud.websecurityscanner.v1alpha; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java index 88e10e22..8594be16 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_config.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java index afd7af1f..83d85a76 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * 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 + * 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 + * 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. + * 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. */ package com.google.cloud.websecurityscanner.v1alpha; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java index 953ed751..aa4070fb 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_config.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java index 34c1844e..a6e04dc9 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_config.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java index c6c99fc5..5f0a28d4 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_run.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java index 12a7159c..95b894c1 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * 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 + * 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 + * 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. + * 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. */ package com.google.cloud.websecurityscanner.v1alpha; diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java index 47db3bb7..6f9d384d 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_run.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java index 0b4053e2..9ee2ba25 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_run.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java index 3e009696..6d44c195 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java index b0e149a9..8a4c053d 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java index 0c1ed9f4..5931f140 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java index ece14480..b3268b37 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java index e683ba91..41b69727 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java index 5d2834dc..d90fac3e 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java index 8f5bacf8..5dd6ab3f 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java index 400cbe34..ffbc8dd4 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java index 8749f54f..d108bab9 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java index 5d047fd2..1b0d6db4 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java index 99a0f992..47d49acb 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java index c3896ba0..e2953c22 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java index bc101185..da0f5c7d 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto @@ -129,115 +144,114 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nner.v1alpha.ScanConfig\022\027\n\017next_page_tok" + "en\030\002 \001(\t\"Y\n\023StartScanRunRequest\022B\n\004name\030" + "\001 \001(\tB4\340A\002\372A.\n,websecurityscanner.google" - + "apis.com/ScanConfig\"W\n\021GetScanRunRequest" - + "\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,websecurityscann" - + "er.googleapis.com/ScanConfig\"\202\001\n\023ListSca" - + "nRunsRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,we" - + "bsecurityscanner.googleapis.com/ScanConf" - + "ig\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(" - + "\005\"t\n\024ListScanRunsResponse\022C\n\tscan_runs\030\001" - + " \003(\01320.google.cloud.websecurityscanner.v" - + "1alpha.ScanRun\022\027\n\017next_page_token\030\002 \001(\t\"" - + "U\n\022StopScanRunRequest\022?\n\004name\030\001 \001(\tB1\340A\002" - + "\372A+\n)websecurityscanner.googleapis.com/S" - + "canRun\"\202\001\n\026ListCrawledUrlsRequest\022A\n\006par" - + "ent\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.go" - + "ogleapis.com/ScanRun\022\022\n\npage_token\030\002 \001(\t" - + "\022\021\n\tpage_size\030\003 \001(\005\"}\n\027ListCrawledUrlsRe" - + "sponse\022I\n\014crawled_urls\030\001 \003(\01323.google.cl" - + "oud.websecurityscanner.v1alpha.CrawledUr" - + "l\022\027\n\017next_page_token\030\002 \001(\t\"T\n\021GetFinding" - + "Request\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuri" - + "tyscanner.googleapis.com/Finding\"\224\001\n\023Lis" - + "tFindingsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+" + + "apis.com/ScanConfig\"T\n\021GetScanRunRequest" + + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecurityscann" + + "er.googleapis.com/ScanRun\"\202\001\n\023ListScanRu" + + "nsRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,webse" + + "curityscanner.googleapis.com/ScanConfig\022" + + "\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"t" + + "\n\024ListScanRunsResponse\022C\n\tscan_runs\030\001 \003(" + + "\01320.google.cloud.websecurityscanner.v1al" + + "pha.ScanRun\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022" + + "StopScanRunRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" + "\n)websecurityscanner.googleapis.com/Scan" - + "Run\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\npage_token\030\003" - + " \001(\t\022\021\n\tpage_size\030\004 \001(\005\"s\n\024ListFindingsR" - + "esponse\022B\n\010findings\030\001 \003(\01320.google.cloud" - + ".websecurityscanner.v1alpha.Finding\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"`\n\033ListFindingTypeS" - + "tatsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)web" - + "securityscanner.googleapis.com/ScanRun\"u" - + "\n\034ListFindingTypeStatsResponse\022U\n\022findin" - + "g_type_stats\030\001 \003(\01329.google.cloud.websec" - + "urityscanner.v1alpha.FindingTypeStats2\264\026" - + "\n\022WebSecurityScanner\022\335\001\n\020CreateScanConfi" - + "g\022@.google.cloud.websecurityscanner.v1al" - + "pha.CreateScanConfigRequest\0323.google.clo" - + "ud.websecurityscanner.v1alpha.ScanConfig" - + "\"R\202\323\344\223\0027\"(/v1alpha/{parent=projects/*}/s" - + "canConfigs:\013scan_config\332A\022parent,scan_co" - + "nfig\022\245\001\n\020DeleteScanConfig\022@.google.cloud" - + ".websecurityscanner.v1alpha.DeleteScanCo" - + "nfigRequest\032\026.google.protobuf.Empty\"7\202\323\344" - + "\223\002**(/v1alpha/{name=projects/*/scanConfi" - + "gs/*}\332A\004name\022\274\001\n\rGetScanConfig\022=.google." - + "cloud.websecurityscanner.v1alpha.GetScan" - + "ConfigRequest\0323.google.cloud.websecurity" - + "scanner.v1alpha.ScanConfig\"7\202\323\344\223\002*\022(/v1a" - + "lpha/{name=projects/*/scanConfigs/*}\332A\004n" - + "ame\022\317\001\n\017ListScanConfigs\022?.google.cloud.w" - + "ebsecurityscanner.v1alpha.ListScanConfig" - + "sRequest\032@.google.cloud.websecurityscann" - + "er.v1alpha.ListScanConfigsResponse\"9\202\323\344\223" - + "\002*\022(/v1alpha/{parent=projects/*}/scanCon" - + "figs\332A\006parent\022\356\001\n\020UpdateScanConfig\022@.goo" - + "gle.cloud.websecurityscanner.v1alpha.Upd" - + "ateScanConfigRequest\0323.google.cloud.webs" - + "ecurityscanner.v1alpha.ScanConfig\"c\202\323\344\223\002" - + "C24/v1alpha/{scan_config.name=projects/*" - + "/scanConfigs/*}:\013scan_config\332A\027scan_conf" - + "ig,update_mask\022\300\001\n\014StartScanRun\022<.google" - + ".cloud.websecurityscanner.v1alpha.StartS" - + "canRunRequest\0320.google.cloud.websecurity" - + "scanner.v1alpha.ScanRun\"@\202\323\344\223\0023\"./v1alph" - + "a/{name=projects/*/scanConfigs/*}:start:" - + "\001*\332A\004name\022\276\001\n\nGetScanRun\022:.google.cloud." - + "websecurityscanner.v1alpha.GetScanRunReq" + + "Run\"\202\001\n\026ListCrawledUrlsRequest\022A\n\006parent" + + "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" + + "eapis.com/ScanRun\022\022\n\npage_token\030\002 \001(\t\022\021\n" + + "\tpage_size\030\003 \001(\005\"}\n\027ListCrawledUrlsRespo" + + "nse\022I\n\014crawled_urls\030\001 \003(\01323.google.cloud" + + ".websecurityscanner.v1alpha.CrawledUrl\022\027" + + "\n\017next_page_token\030\002 \001(\t\"T\n\021GetFindingReq" + + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuritys" + + "canner.googleapis.com/Finding\"\224\001\n\023ListFi" + + "ndingsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)w" + + "ebsecurityscanner.googleapis.com/ScanRun" + + "\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(" + + "\t\022\021\n\tpage_size\030\004 \001(\005\"s\n\024ListFindingsResp" + + "onse\022B\n\010findings\030\001 \003(\01320.google.cloud.we" + + "bsecurityscanner.v1alpha.Finding\022\027\n\017next" + + "_page_token\030\002 \001(\t\"`\n\033ListFindingTypeStat" + + "sRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websec" + + "urityscanner.googleapis.com/ScanRun\"u\n\034L" + + "istFindingTypeStatsResponse\022U\n\022finding_t" + + "ype_stats\030\001 \003(\01329.google.cloud.websecuri" + + "tyscanner.v1alpha.FindingTypeStats2\264\026\n\022W" + + "ebSecurityScanner\022\335\001\n\020CreateScanConfig\022@" + + ".google.cloud.websecurityscanner.v1alpha" + + ".CreateScanConfigRequest\0323.google.cloud." + + "websecurityscanner.v1alpha.ScanConfig\"R\202" + + "\323\344\223\0027\"(/v1alpha/{parent=projects/*}/scan" + + "Configs:\013scan_config\332A\022parent,scan_confi" + + "g\022\245\001\n\020DeleteScanConfig\022@.google.cloud.we" + + "bsecurityscanner.v1alpha.DeleteScanConfi" + + "gRequest\032\026.google.protobuf.Empty\"7\202\323\344\223\002*" + + "*(/v1alpha/{name=projects/*/scanConfigs/" + + "*}\332A\004name\022\274\001\n\rGetScanConfig\022=.google.clo" + + "ud.websecurityscanner.v1alpha.GetScanCon" + + "figRequest\0323.google.cloud.websecuritysca" + + "nner.v1alpha.ScanConfig\"7\202\323\344\223\002*\022(/v1alph" + + "a/{name=projects/*/scanConfigs/*}\332A\004name" + + "\022\317\001\n\017ListScanConfigs\022?.google.cloud.webs" + + "ecurityscanner.v1alpha.ListScanConfigsRe" + + "quest\032@.google.cloud.websecurityscanner." + + "v1alpha.ListScanConfigsResponse\"9\202\323\344\223\002*\022" + + "(/v1alpha/{parent=projects/*}/scanConfig" + + "s\332A\006parent\022\356\001\n\020UpdateScanConfig\022@.google" + + ".cloud.websecurityscanner.v1alpha.Update" + + "ScanConfigRequest\0323.google.cloud.websecu" + + "rityscanner.v1alpha.ScanConfig\"c\202\323\344\223\002C24" + + "/v1alpha/{scan_config.name=projects/*/sc" + + "anConfigs/*}:\013scan_config\332A\027scan_config," + + "update_mask\022\300\001\n\014StartScanRun\022<.google.cl" + + "oud.websecurityscanner.v1alpha.StartScan" + + "RunRequest\0320.google.cloud.websecuritysca" + + "nner.v1alpha.ScanRun\"@\202\323\344\223\0023\"./v1alpha/{" + + "name=projects/*/scanConfigs/*}:start:\001*\332" + + "A\004name\022\276\001\n\nGetScanRun\022:.google.cloud.web" + + "securityscanner.v1alpha.GetScanRunReques" + + "t\0320.google.cloud.websecurityscanner.v1al" + + "pha.ScanRun\"B\202\323\344\223\0025\0223/v1alpha/{name=proj" + + "ects/*/scanConfigs/*/scanRuns/*}\332A\004name\022" + + "\321\001\n\014ListScanRuns\022<.google.cloud.websecur" + + "ityscanner.v1alpha.ListScanRunsRequest\032=" + + ".google.cloud.websecurityscanner.v1alpha" + + ".ListScanRunsResponse\"D\202\323\344\223\0025\0223/v1alpha/" + + "{parent=projects/*/scanConfigs/*}/scanRu" + + "ns\332A\006parent\022\310\001\n\013StopScanRun\022;.google.clo" + + "ud.websecurityscanner.v1alpha.StopScanRu" + + "nRequest\0320.google.cloud.websecurityscann" + + "er.v1alpha.ScanRun\"J\202\323\344\223\002=\"8/v1alpha/{na" + + "me=projects/*/scanConfigs/*/scanRuns/*}:" + + "stop:\001*\332A\004name\022\350\001\n\017ListCrawledUrls\022?.goo" + + "gle.cloud.websecurityscanner.v1alpha.Lis" + + "tCrawledUrlsRequest\032@.google.cloud.webse" + + "curityscanner.v1alpha.ListCrawledUrlsRes" + + "ponse\"R\202\323\344\223\002C\022A/v1alpha/{parent=projects" + + "/*/scanConfigs/*/scanRuns/*}/crawledUrls" + + "\332A\006parent\022\311\001\n\nGetFinding\022:.google.cloud." + + "websecurityscanner.v1alpha.GetFindingReq" + "uest\0320.google.cloud.websecurityscanner.v" - + "1alpha.ScanRun\"B\202\323\344\223\0025\0223/v1alpha/{name=p" - + "rojects/*/scanConfigs/*/scanRuns/*}\332A\004na" - + "me\022\321\001\n\014ListScanRuns\022<.google.cloud.webse" - + "curityscanner.v1alpha.ListScanRunsReques" - + "t\032=.google.cloud.websecurityscanner.v1al" - + "pha.ListScanRunsResponse\"D\202\323\344\223\0025\0223/v1alp" - + "ha/{parent=projects/*/scanConfigs/*}/sca" - + "nRuns\332A\006parent\022\310\001\n\013StopScanRun\022;.google." - + "cloud.websecurityscanner.v1alpha.StopSca" - + "nRunRequest\0320.google.cloud.websecuritysc" - + "anner.v1alpha.ScanRun\"J\202\323\344\223\002=\"8/v1alpha/" - + "{name=projects/*/scanConfigs/*/scanRuns/" - + "*}:stop:\001*\332A\004name\022\350\001\n\017ListCrawledUrls\022?." - + "google.cloud.websecurityscanner.v1alpha." - + "ListCrawledUrlsRequest\032@.google.cloud.we" - + "bsecurityscanner.v1alpha.ListCrawledUrls" - + "Response\"R\202\323\344\223\002C\022A/v1alpha/{parent=proje" - + "cts/*/scanConfigs/*/scanRuns/*}/crawledU" - + "rls\332A\006parent\022\311\001\n\nGetFinding\022:.google.clo" - + "ud.websecurityscanner.v1alpha.GetFinding" - + "Request\0320.google.cloud.websecurityscanne" - + "r.v1alpha.Finding\"M\202\323\344\223\002@\022>/v1alpha/{nam" - + "e=projects/*/scanConfigs/*/scanRuns/*/fi" - + "ndings/*}\332A\004name\022\343\001\n\014ListFindings\022<.goog" - + "le.cloud.websecurityscanner.v1alpha.List" - + "FindingsRequest\032=.google.cloud.websecuri" - + "tyscanner.v1alpha.ListFindingsResponse\"V" - + "\202\323\344\223\002@\022>/v1alpha/{parent=projects/*/scan" - + "Configs/*/scanRuns/*}/findings\332A\rparent," - + "filter\022\374\001\n\024ListFindingTypeStats\022D.google" - + ".cloud.websecurityscanner.v1alpha.ListFi" - + "ndingTypeStatsRequest\032E.google.cloud.web" - + "securityscanner.v1alpha.ListFindingTypeS" - + "tatsResponse\"W\202\323\344\223\002H\022F/v1alpha/{parent=p" - + "rojects/*/scanConfigs/*/scanRuns/*}/find" - + "ingTypeStats\332A\006parent\032U\312A!websecuritysca" - + "nner.googleapis.com\322A.https://www.google" - + "apis.com/auth/cloud-platformB\243\001\n+com.goo" - + "gle.cloud.websecurityscanner.v1alphaB\027We" - + "bSecurityScannerProtoP\001ZYgoogle.golang.o" - + "rg/genproto/googleapis/cloud/websecurity" - + "scanner/v1alpha;websecurityscannerb\006prot" - + "o3" + + "1alpha.Finding\"M\202\323\344\223\002@\022>/v1alpha/{name=p" + + "rojects/*/scanConfigs/*/scanRuns/*/findi" + + "ngs/*}\332A\004name\022\343\001\n\014ListFindings\022<.google." + + "cloud.websecurityscanner.v1alpha.ListFin" + + "dingsRequest\032=.google.cloud.websecuritys" + + "canner.v1alpha.ListFindingsResponse\"V\202\323\344" + + "\223\002@\022>/v1alpha/{parent=projects/*/scanCon" + + "figs/*/scanRuns/*}/findings\332A\rparent,fil" + + "ter\022\374\001\n\024ListFindingTypeStats\022D.google.cl" + + "oud.websecurityscanner.v1alpha.ListFindi" + + "ngTypeStatsRequest\032E.google.cloud.websec" + + "urityscanner.v1alpha.ListFindingTypeStat" + + "sResponse\"W\202\323\344\223\002H\022F/v1alpha/{parent=proj" + + "ects/*/scanConfigs/*/scanRuns/*}/finding" + + "TypeStats\332A\006parent\032U\312A!websecurityscanne" + + "r.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\243\001\n+com.google" + + ".cloud.websecurityscanner.v1alphaB\027WebSe" + + "curityScannerProtoP\001ZYgoogle.golang.org/" + + "genproto/googleapis/cloud/websecuritysca" + + "nner/v1alpha;websecurityscannerb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java index 29d549cb..c601da90 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java index 1a4f591a..3b5612ba 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto b/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto index 427be897..f34bd74d 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto @@ -255,7 +255,7 @@ message GetScanRunRequest { string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "websecurityscanner.googleapis.com/ScanConfig" + type: "websecurityscanner.googleapis.com/ScanRun" } ]; } diff --git a/proto-google-cloud-websecurityscanner-v1beta/pom.xml b/proto-google-cloud-websecurityscanner-v1beta/pom.xml index 6b953bf4..4f856a8e 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/proto-google-cloud-websecurityscanner-v1beta/pom.xml @@ -2,30 +2,32 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.80.0 + 0.81.0 proto-google-cloud-websecurityscanner-v1beta PROTO library for proto-google-cloud-websecurityscanner-v1beta - com.google.api.grpc - google-api-grpc - 0.80.0 + com.google.cloud + google-cloud-websecurityscanner-parent + 0.116.0 com.google.protobuf protobuf-java - compile + + + com.google.api.grpc + proto-google-common-protos com.google.api api-common - compile - com.google.api.grpc - proto-google-common-protos - compile + com.google.guava + guava \ No newline at end of file diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java index 719b5fad..9b452b25 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/crawled_url.proto @@ -115,7 +130,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only.
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
@@ -137,7 +151,6 @@ public java.lang.String getHttpMethod() { * * *
-   * Output only.
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
@@ -162,7 +175,6 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { * * *
-   * Output only.
    * The URL that was crawled.
    * 
* @@ -183,7 +195,6 @@ public java.lang.String getUrl() { * * *
-   * Output only.
    * The URL that was crawled.
    * 
* @@ -207,7 +218,6 @@ public com.google.protobuf.ByteString getUrlBytes() { * * *
-   * Output only.
    * The body of the request that was used to visit the URL.
    * 
* @@ -228,7 +238,6 @@ public java.lang.String getBody() { * * *
-   * Output only.
    * The body of the request that was used to visit the URL.
    * 
* @@ -604,7 +613,6 @@ public Builder mergeFrom( * * *
-     * Output only.
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
@@ -626,7 +634,6 @@ public java.lang.String getHttpMethod() { * * *
-     * Output only.
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
@@ -648,7 +655,6 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { * * *
-     * Output only.
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
@@ -668,7 +674,6 @@ public Builder setHttpMethod(java.lang.String value) { * * *
-     * Output only.
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
@@ -685,7 +690,6 @@ public Builder clearHttpMethod() { * * *
-     * Output only.
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
@@ -708,7 +712,6 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only.
      * The URL that was crawled.
      * 
* @@ -729,7 +732,6 @@ public java.lang.String getUrl() { * * *
-     * Output only.
      * The URL that was crawled.
      * 
* @@ -750,7 +752,6 @@ public com.google.protobuf.ByteString getUrlBytes() { * * *
-     * Output only.
      * The URL that was crawled.
      * 
* @@ -769,7 +770,6 @@ public Builder setUrl(java.lang.String value) { * * *
-     * Output only.
      * The URL that was crawled.
      * 
* @@ -785,7 +785,6 @@ public Builder clearUrl() { * * *
-     * Output only.
      * The URL that was crawled.
      * 
* @@ -807,7 +806,6 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only.
      * The body of the request that was used to visit the URL.
      * 
* @@ -828,7 +826,6 @@ public java.lang.String getBody() { * * *
-     * Output only.
      * The body of the request that was used to visit the URL.
      * 
* @@ -849,7 +846,6 @@ public com.google.protobuf.ByteString getBodyBytes() { * * *
-     * Output only.
      * The body of the request that was used to visit the URL.
      * 
* @@ -868,7 +864,6 @@ public Builder setBody(java.lang.String value) { * * *
-     * Output only.
      * The body of the request that was used to visit the URL.
      * 
* @@ -884,7 +879,6 @@ public Builder clearBody() { * * *
-     * Output only.
      * The body of the request that was used to visit the URL.
      * 
* diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java index 252df27b..e06968fc 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/crawled_url.proto @@ -12,7 +27,6 @@ public interface CrawledUrlOrBuilder * * *
-   * Output only.
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
@@ -24,7 +38,6 @@ public interface CrawledUrlOrBuilder * * *
-   * Output only.
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
@@ -37,7 +50,6 @@ public interface CrawledUrlOrBuilder * * *
-   * Output only.
    * The URL that was crawled.
    * 
* @@ -48,7 +60,6 @@ public interface CrawledUrlOrBuilder * * *
-   * Output only.
    * The URL that was crawled.
    * 
* @@ -60,7 +71,6 @@ public interface CrawledUrlOrBuilder * * *
-   * Output only.
    * The body of the request that was used to visit the URL.
    * 
* @@ -71,7 +81,6 @@ public interface CrawledUrlOrBuilder * * *
-   * Output only.
    * The body of the request that was used to visit the URL.
    * 
* diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java index 38f1f047..9ef7bae5 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/crawled_url.proto @@ -27,14 +42,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n8google/cloud/websecurityscanner/v1beta" + "/crawled_url.proto\022&google.cloud.websecu" - + "rityscanner.v1beta\032\034google/api/annotatio" - + "ns.proto\"<\n\nCrawledUrl\022\023\n\013http_method\030\001 " - + "\001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\tB\302\001\n*com.g" - + "oogle.cloud.websecurityscanner.v1betaB\017C" - + "rawledUrlProtoP\001ZXgoogle.golang.org/genp" - + "roto/googleapis/cloud/websecurityscanner" - + "/v1beta;websecurityscanner\312\002&Google\\Clou" - + "d\\WebSecurityScanner\\V1betab\006proto3" + + "rityscanner.v1beta\"<\n\nCrawledUrl\022\023\n\013http" + + "_method\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\t" + + "B\302\001\n*com.google.cloud.websecurityscanner" + + ".v1betaB\017CrawledUrlProtoP\001ZXgoogle.golan" + + "g.org/genproto/googleapis/cloud/websecur" + + "ityscanner/v1beta;websecurityscanner\312\002&G" + + "oogle\\Cloud\\WebSecurityScanner\\V1betab\006p" + + "roto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -45,11 +60,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( } }; com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }, - assigner); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner); internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable = @@ -58,7 +69,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "HttpMethod", "Url", "Body", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java index a7a7e5b8..949a6f04 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -114,12 +129,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The parent resource name where the scan is created, which should be a
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -136,12 +152,13 @@ public java.lang.String getParent() { * * *
-   * Required.
-   * The parent resource name where the scan is created, which should be a
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -161,11 +178,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Required.
-   * The ScanConfig to be created.
+   * Required. The ScanConfig to be created.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasScanConfig() { return scanConfig_ != null; @@ -174,11 +192,12 @@ public boolean hasScanConfig() { * * *
-   * Required.
-   * The ScanConfig to be created.
+   * Required. The ScanConfig to be created.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { return scanConfig_ == null @@ -189,11 +208,12 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { * * *
-   * Required.
-   * The ScanConfig to be created.
+   * Required. The ScanConfig to be created.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { return getScanConfig(); @@ -559,12 +579,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The parent resource name where the scan is created, which should be a
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -581,12 +602,13 @@ public java.lang.String getParent() { * * *
-     * Required.
-     * The parent resource name where the scan is created, which should be a
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -603,12 +625,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required.
-     * The parent resource name where the scan is created, which should be a
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -623,12 +646,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required.
-     * The parent resource name where the scan is created, which should be a
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -640,12 +664,13 @@ public Builder clearParent() { * * *
-     * Required.
-     * The parent resource name where the scan is created, which should be a
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -668,11 +693,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Required.
-     * The ScanConfig to be created.
+     * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; @@ -681,11 +707,12 @@ public boolean hasScanConfig() { * * *
-     * Required.
-     * The ScanConfig to be created.
+     * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { @@ -700,11 +727,12 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { * * *
-     * Required.
-     * The ScanConfig to be created.
+     * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -723,11 +751,12 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConf * * *
-     * Required.
-     * The ScanConfig to be created.
+     * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder builderForValue) { @@ -744,11 +773,12 @@ public Builder setScanConfig( * * *
-     * Required.
-     * The ScanConfig to be created.
+     * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -771,11 +801,12 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanCo * * *
-     * Required.
-     * The ScanConfig to be created.
+     * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -792,11 +823,12 @@ public Builder clearScanConfig() { * * *
-     * Required.
-     * The ScanConfig to be created.
+     * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConfigBuilder() { @@ -807,11 +839,12 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf * * *
-     * Required.
-     * The ScanConfig to be created.
+     * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { @@ -826,11 +859,12 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon * * *
-     * Required.
-     * The ScanConfig to be created.
+     * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.websecurityscanner.v1beta.ScanConfig, diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java index 5ad04128..1d5abcd4 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,24 +27,26 @@ public interface CreateScanConfigRequestOrBuilder * * *
-   * Required.
-   * The parent resource name where the scan is created, which should be a
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * Required.
-   * The parent resource name where the scan is created, which should be a
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); @@ -37,33 +54,36 @@ public interface CreateScanConfigRequestOrBuilder * * *
-   * Required.
-   * The ScanConfig to be created.
+   * Required. The ScanConfig to be created.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasScanConfig(); /** * * *
-   * Required.
-   * The ScanConfig to be created.
+   * Required. The ScanConfig to be created.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(); /** * * *
-   * Required.
-   * The ScanConfig to be created.
+   * Required. The ScanConfig to be created.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java index ef86b857..6dc1b411 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -97,12 +112,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The resource name of the ScanConfig to be deleted. The name follows the
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -119,12 +135,13 @@ public java.lang.String getName() { * * *
-   * Required.
-   * The resource name of the ScanConfig to be deleted. The name follows the
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -470,12 +487,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The resource name of the ScanConfig to be deleted. The name follows the
+     * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -492,12 +510,13 @@ public java.lang.String getName() { * * *
-     * Required.
-     * The resource name of the ScanConfig to be deleted. The name follows the
+     * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -514,12 +533,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required.
-     * The resource name of the ScanConfig to be deleted. The name follows the
+     * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -534,12 +554,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Required.
-     * The resource name of the ScanConfig to be deleted. The name follows the
+     * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -551,12 +572,13 @@ public Builder clearName() { * * *
-     * Required.
-     * The resource name of the ScanConfig to be deleted. The name follows the
+     * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java index 4fa2dd85..72708797 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,24 +27,26 @@ public interface DeleteScanConfigRequestOrBuilder * * *
-   * Required.
-   * The resource name of the ScanConfig to be deleted. The name follows the
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Required.
-   * The resource name of the ScanConfig to be deleted. The name follows the
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java index a4dbf30f..177725e6 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding.proto @@ -273,7 +288,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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.
@@ -296,7 +310,6 @@ public java.lang.String getName() {
    *
    *
    * 
-   * 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.
@@ -322,7 +335,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    *
    * 
-   * Output only.
    * 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
@@ -345,7 +357,6 @@ public java.lang.String getFindingType() {
    *
    *
    * 
-   * Output only.
    * 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
@@ -371,7 +382,6 @@ public com.google.protobuf.ByteString getFindingTypeBytes() {
    *
    *
    * 
-   * Output only.
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
@@ -393,7 +403,6 @@ public java.lang.String getHttpMethod() { * * *
-   * Output only.
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
@@ -418,7 +427,6 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { * * *
-   * Output only.
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
@@ -440,7 +448,6 @@ public java.lang.String getFuzzedUrl() { * * *
-   * Output only.
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
@@ -465,7 +472,6 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { * * *
-   * Output only.
    * The body of the request that triggered the vulnerability.
    * 
* @@ -486,7 +492,6 @@ public java.lang.String getBody() { * * *
-   * Output only.
    * The body of the request that triggered the vulnerability.
    * 
* @@ -510,7 +515,6 @@ public com.google.protobuf.ByteString getBodyBytes() { * * *
-   * Output only.
    * The description of the vulnerability.
    * 
* @@ -531,7 +535,6 @@ public java.lang.String getDescription() { * * *
-   * Output only.
    * The description of the vulnerability.
    * 
* @@ -555,7 +558,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Output only.
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
@@ -577,7 +579,6 @@ public java.lang.String getReproductionUrl() { * * *
-   * Output only.
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
@@ -602,7 +603,6 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { * * *
-   * Output only.
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
@@ -624,7 +624,6 @@ public java.lang.String getFrameUrl() { * * *
-   * Output only.
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
@@ -649,7 +648,6 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { * * *
-   * Output only.
    * The URL where the browser lands when the vulnerability is detected.
    * 
* @@ -670,7 +668,6 @@ public java.lang.String getFinalUrl() { * * *
-   * Output only.
    * The URL where the browser lands when the vulnerability is detected.
    * 
* @@ -694,7 +691,6 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { * * *
-   * Output only.
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
@@ -716,7 +712,6 @@ public java.lang.String getTrackingId() { * * *
-   * Output only.
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
@@ -741,7 +736,6 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { * * *
-   * Output only.
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
@@ -755,7 +749,6 @@ public boolean hasForm() { * * *
-   * Output only.
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
@@ -771,7 +764,6 @@ public com.google.cloud.websecurityscanner.v1beta.Form getForm() { * * *
-   * Output only.
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
@@ -788,7 +780,6 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder * * *
-   * Output only.
    * An addon containing information about outdated libraries.
    * 
* @@ -801,7 +792,6 @@ public boolean hasOutdatedLibrary() { * * *
-   * Output only.
    * An addon containing information about outdated libraries.
    * 
* @@ -816,7 +806,6 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLib * * *
-   * Output only.
    * An addon containing information about outdated libraries.
    * 
* @@ -833,7 +822,6 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLib * * *
-   * Output only.
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
@@ -847,7 +835,6 @@ public boolean hasViolatingResource() { * * *
-   * Output only.
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
@@ -863,7 +850,6 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolating * * *
-   * Output only.
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
@@ -881,7 +867,6 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolating * * *
-   * Output only.
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* @@ -894,7 +879,6 @@ public boolean hasVulnerableHeaders() { * * *
-   * Output only.
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* @@ -909,7 +893,6 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerabl * * *
-   * Output only.
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* @@ -926,7 +909,6 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerabl * * *
-   * Output only.
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
@@ -941,7 +923,6 @@ public boolean hasVulnerableParameters() { * * *
-   * Output only.
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
@@ -958,7 +939,6 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getVulner * * *
-   * Output only.
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
@@ -977,7 +957,6 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getVulner * * *
-   * Output only.
    * An addon containing information reported for an XSS, if any.
    * 
* @@ -990,7 +969,6 @@ public boolean hasXss() { * * *
-   * Output only.
    * An addon containing information reported for an XSS, if any.
    * 
* @@ -1005,7 +983,6 @@ public com.google.cloud.websecurityscanner.v1beta.Xss getXss() { * * *
-   * Output only.
    * An addon containing information reported for an XSS, if any.
    * 
* @@ -1652,7 +1629,6 @@ public Builder mergeFrom( * * *
-     * 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.
@@ -1675,7 +1651,6 @@ public java.lang.String getName() {
      *
      *
      * 
-     * 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.
@@ -1698,7 +1673,6 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * 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.
@@ -1719,7 +1693,6 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * 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.
@@ -1737,7 +1710,6 @@ public Builder clearName() {
      *
      *
      * 
-     * 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.
@@ -1761,7 +1733,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Output only.
      * 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
@@ -1784,7 +1755,6 @@ public java.lang.String getFindingType() {
      *
      *
      * 
-     * Output only.
      * 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
@@ -1807,7 +1777,6 @@ public com.google.protobuf.ByteString getFindingTypeBytes() {
      *
      *
      * 
-     * Output only.
      * 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
@@ -1828,7 +1797,6 @@ public Builder setFindingType(java.lang.String value) {
      *
      *
      * 
-     * Output only.
      * 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
@@ -1846,7 +1814,6 @@ public Builder clearFindingType() {
      *
      *
      * 
-     * Output only.
      * 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
@@ -1870,7 +1837,6 @@ public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Output only.
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
@@ -1892,7 +1858,6 @@ public java.lang.String getHttpMethod() { * * *
-     * Output only.
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
@@ -1914,7 +1879,6 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { * * *
-     * Output only.
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
@@ -1934,7 +1898,6 @@ public Builder setHttpMethod(java.lang.String value) { * * *
-     * Output only.
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
@@ -1951,7 +1914,6 @@ public Builder clearHttpMethod() { * * *
-     * Output only.
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
@@ -1974,7 +1936,6 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only.
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
@@ -1996,7 +1957,6 @@ public java.lang.String getFuzzedUrl() { * * *
-     * Output only.
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
@@ -2018,7 +1978,6 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { * * *
-     * Output only.
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
@@ -2038,7 +1997,6 @@ public Builder setFuzzedUrl(java.lang.String value) { * * *
-     * Output only.
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
@@ -2055,7 +2013,6 @@ public Builder clearFuzzedUrl() { * * *
-     * Output only.
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
@@ -2078,7 +2035,6 @@ public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only.
      * The body of the request that triggered the vulnerability.
      * 
* @@ -2099,7 +2055,6 @@ public java.lang.String getBody() { * * *
-     * Output only.
      * The body of the request that triggered the vulnerability.
      * 
* @@ -2120,7 +2075,6 @@ public com.google.protobuf.ByteString getBodyBytes() { * * *
-     * Output only.
      * The body of the request that triggered the vulnerability.
      * 
* @@ -2139,7 +2093,6 @@ public Builder setBody(java.lang.String value) { * * *
-     * Output only.
      * The body of the request that triggered the vulnerability.
      * 
* @@ -2155,7 +2108,6 @@ public Builder clearBody() { * * *
-     * Output only.
      * The body of the request that triggered the vulnerability.
      * 
* @@ -2177,7 +2129,6 @@ public Builder setBodyBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only.
      * The description of the vulnerability.
      * 
* @@ -2198,7 +2149,6 @@ public java.lang.String getDescription() { * * *
-     * Output only.
      * The description of the vulnerability.
      * 
* @@ -2219,7 +2169,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-     * Output only.
      * The description of the vulnerability.
      * 
* @@ -2238,7 +2187,6 @@ public Builder setDescription(java.lang.String value) { * * *
-     * Output only.
      * The description of the vulnerability.
      * 
* @@ -2254,7 +2202,6 @@ public Builder clearDescription() { * * *
-     * Output only.
      * The description of the vulnerability.
      * 
* @@ -2276,7 +2223,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only.
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
@@ -2298,7 +2244,6 @@ public java.lang.String getReproductionUrl() { * * *
-     * Output only.
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
@@ -2320,7 +2265,6 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { * * *
-     * Output only.
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
@@ -2340,7 +2284,6 @@ public Builder setReproductionUrl(java.lang.String value) { * * *
-     * Output only.
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
@@ -2357,7 +2300,6 @@ public Builder clearReproductionUrl() { * * *
-     * Output only.
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
@@ -2380,7 +2322,6 @@ public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only.
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
@@ -2402,7 +2343,6 @@ public java.lang.String getFrameUrl() { * * *
-     * Output only.
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
@@ -2424,7 +2364,6 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { * * *
-     * Output only.
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
@@ -2444,7 +2383,6 @@ public Builder setFrameUrl(java.lang.String value) { * * *
-     * Output only.
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
@@ -2461,7 +2399,6 @@ public Builder clearFrameUrl() { * * *
-     * Output only.
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
@@ -2484,7 +2421,6 @@ public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only.
      * The URL where the browser lands when the vulnerability is detected.
      * 
* @@ -2505,7 +2441,6 @@ public java.lang.String getFinalUrl() { * * *
-     * Output only.
      * The URL where the browser lands when the vulnerability is detected.
      * 
* @@ -2526,7 +2461,6 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { * * *
-     * Output only.
      * The URL where the browser lands when the vulnerability is detected.
      * 
* @@ -2545,7 +2479,6 @@ public Builder setFinalUrl(java.lang.String value) { * * *
-     * Output only.
      * The URL where the browser lands when the vulnerability is detected.
      * 
* @@ -2561,7 +2494,6 @@ public Builder clearFinalUrl() { * * *
-     * Output only.
      * The URL where the browser lands when the vulnerability is detected.
      * 
* @@ -2583,7 +2515,6 @@ public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only.
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
@@ -2605,7 +2536,6 @@ public java.lang.String getTrackingId() { * * *
-     * Output only.
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
@@ -2627,7 +2557,6 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { * * *
-     * Output only.
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
@@ -2647,7 +2576,6 @@ public Builder setTrackingId(java.lang.String value) { * * *
-     * Output only.
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
@@ -2664,7 +2592,6 @@ public Builder clearTrackingId() { * * *
-     * Output only.
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
@@ -2692,7 +2619,6 @@ public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only.
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
@@ -2706,7 +2632,6 @@ public boolean hasForm() { * * *
-     * Output only.
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
@@ -2726,7 +2651,6 @@ public com.google.cloud.websecurityscanner.v1beta.Form getForm() { * * *
-     * Output only.
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
@@ -2750,7 +2674,6 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1beta.Form value) { * * *
-     * Output only.
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
@@ -2772,7 +2695,6 @@ public Builder setForm( * * *
-     * Output only.
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
@@ -2800,7 +2722,6 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1beta.Form value) * * *
-     * Output only.
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
@@ -2822,7 +2743,6 @@ public Builder clearForm() { * * *
-     * Output only.
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
@@ -2838,7 +2758,6 @@ public com.google.cloud.websecurityscanner.v1beta.Form.Builder getFormBuilder() * * *
-     * Output only.
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
@@ -2858,7 +2777,6 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder * * *
-     * Output only.
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
@@ -2892,7 +2810,6 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder * * *
-     * Output only.
      * An addon containing information about outdated libraries.
      * 
* @@ -2905,7 +2822,6 @@ public boolean hasOutdatedLibrary() { * * *
-     * Output only.
      * An addon containing information about outdated libraries.
      * 
* @@ -2924,7 +2840,6 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLib * * *
-     * Output only.
      * An addon containing information about outdated libraries.
      * 
* @@ -2948,7 +2863,6 @@ public Builder setOutdatedLibrary( * * *
-     * Output only.
      * An addon containing information about outdated libraries.
      * 
* @@ -2969,7 +2883,6 @@ public Builder setOutdatedLibrary( * * *
-     * Output only.
      * An addon containing information about outdated libraries.
      * 
* @@ -2998,7 +2911,6 @@ public Builder mergeOutdatedLibrary( * * *
-     * Output only.
      * An addon containing information about outdated libraries.
      * 
* @@ -3019,7 +2931,6 @@ public Builder clearOutdatedLibrary() { * * *
-     * Output only.
      * An addon containing information about outdated libraries.
      * 
* @@ -3035,7 +2946,6 @@ public Builder clearOutdatedLibrary() { * * *
-     * Output only.
      * An addon containing information about outdated libraries.
      * 
* @@ -3055,7 +2965,6 @@ public Builder clearOutdatedLibrary() { * * *
-     * Output only.
      * An addon containing information about outdated libraries.
      * 
* @@ -3088,7 +2997,6 @@ public Builder clearOutdatedLibrary() { * * *
-     * Output only.
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
@@ -3103,7 +3011,6 @@ public boolean hasViolatingResource() { * * *
-     * Output only.
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
@@ -3124,7 +3031,6 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolating * * *
-     * Output only.
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
@@ -3150,7 +3056,6 @@ public Builder setViolatingResource( * * *
-     * Output only.
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
@@ -3173,7 +3078,6 @@ public Builder setViolatingResource( * * *
-     * Output only.
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
@@ -3204,7 +3108,6 @@ public Builder mergeViolatingResource( * * *
-     * Output only.
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
@@ -3227,7 +3130,6 @@ public Builder clearViolatingResource() { * * *
-     * Output only.
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
@@ -3245,7 +3147,6 @@ public Builder clearViolatingResource() { * * *
-     * Output only.
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
@@ -3267,7 +3168,6 @@ public Builder clearViolatingResource() { * * *
-     * Output only.
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
@@ -3302,7 +3202,6 @@ public Builder clearViolatingResource() { * * *
-     * Output only.
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* @@ -3316,7 +3215,6 @@ public boolean hasVulnerableHeaders() { * * *
-     * Output only.
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* @@ -3336,7 +3234,6 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerabl * * *
-     * Output only.
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* @@ -3361,7 +3258,6 @@ public Builder setVulnerableHeaders( * * *
-     * Output only.
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* @@ -3383,7 +3279,6 @@ public Builder setVulnerableHeaders( * * *
-     * Output only.
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* @@ -3413,7 +3308,6 @@ public Builder mergeVulnerableHeaders( * * *
-     * Output only.
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* @@ -3435,7 +3329,6 @@ public Builder clearVulnerableHeaders() { * * *
-     * Output only.
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* @@ -3452,7 +3345,6 @@ public Builder clearVulnerableHeaders() { * * *
-     * Output only.
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* @@ -3473,7 +3365,6 @@ public Builder clearVulnerableHeaders() { * * *
-     * Output only.
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* @@ -3507,7 +3398,6 @@ public Builder clearVulnerableHeaders() { * * *
-     * Output only.
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
@@ -3523,7 +3413,6 @@ public boolean hasVulnerableParameters() { * * *
-     * Output only.
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
@@ -3546,7 +3435,6 @@ public boolean hasVulnerableParameters() { * * *
-     * Output only.
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
@@ -3573,7 +3461,6 @@ public Builder setVulnerableParameters( * * *
-     * Output only.
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
@@ -3597,7 +3484,6 @@ public Builder setVulnerableParameters( * * *
-     * Output only.
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
@@ -3629,7 +3515,6 @@ public Builder mergeVulnerableParameters( * * *
-     * Output only.
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
@@ -3653,7 +3538,6 @@ public Builder clearVulnerableParameters() { * * *
-     * Output only.
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
@@ -3672,7 +3556,6 @@ public Builder clearVulnerableParameters() { * * *
-     * Output only.
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
@@ -3695,7 +3578,6 @@ public Builder clearVulnerableParameters() { * * *
-     * Output only.
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
@@ -3731,7 +3613,6 @@ public Builder clearVulnerableParameters() { * * *
-     * Output only.
      * An addon containing information reported for an XSS, if any.
      * 
* @@ -3744,7 +3625,6 @@ public boolean hasXss() { * * *
-     * Output only.
      * An addon containing information reported for an XSS, if any.
      * 
* @@ -3763,7 +3643,6 @@ public com.google.cloud.websecurityscanner.v1beta.Xss getXss() { * * *
-     * Output only.
      * An addon containing information reported for an XSS, if any.
      * 
* @@ -3786,7 +3665,6 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { * * *
-     * Output only.
      * An addon containing information reported for an XSS, if any.
      * 
* @@ -3806,7 +3684,6 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1beta.Xss.Builder bui * * *
-     * Output only.
      * An addon containing information reported for an XSS, if any.
      * 
* @@ -3833,7 +3710,6 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { * * *
-     * Output only.
      * An addon containing information reported for an XSS, if any.
      * 
* @@ -3854,7 +3730,6 @@ public Builder clearXss() { * * *
-     * Output only.
      * An addon containing information reported for an XSS, if any.
      * 
* @@ -3869,7 +3744,6 @@ public com.google.cloud.websecurityscanner.v1beta.Xss.Builder getXssBuilder() { * * *
-     * Output only.
      * An addon containing information reported for an XSS, if any.
      * 
* @@ -3888,7 +3762,6 @@ public com.google.cloud.websecurityscanner.v1beta.XssOrBuilder getXssOrBuilder() * * *
-     * Output only.
      * An addon containing information reported for an XSS, if any.
      * 
* diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java index 54074cfc..da443716 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto @@ -51,26 +66,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n:google/cloud/websecurityscanner/v1beta" + "/finding_addon.proto\022&google.cloud.webse" - + "curityscanner.v1beta\032\034google/api/annotat" - + "ions.proto\"*\n\004Form\022\022\n\naction_uri\030\001 \001(\t\022\016" - + "\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibrary\022\024\n\014lib" - + "rary_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\027\n\017lear" - + "n_more_urls\030\003 \003(\t\"?\n\021ViolatingResource\022\024" - + "\n\014content_type\030\001 \001(\t\022\024\n\014resource_url\030\002 \001" - + "(\t\"/\n\024VulnerableParameters\022\027\n\017parameter_" - + "names\030\001 \003(\t\"\350\001\n\021VulnerableHeaders\022Q\n\007hea" - + "ders\030\001 \003(\0132@.google.cloud.websecuritysca" - + "nner.v1beta.VulnerableHeaders.Header\022Y\n\017" - + "missing_headers\030\002 \003(\0132@.google.cloud.web" - + "securityscanner.v1beta.VulnerableHeaders" - + ".Header\032%\n\006Header\022\014\n\004name\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030\001 \003(\t\022\025\n\re" - + "rror_message\030\002 \001(\tB\304\001\n*com.google.cloud." - + "websecurityscanner.v1betaB\021FindingAddonP" - + "rotoP\001ZXgoogle.golang.org/genproto/googl" - + "eapis/cloud/websecurityscanner/v1beta;we" - + "bsecurityscanner\312\002&Google\\Cloud\\WebSecur" - + "ityScanner\\V1betab\006proto3" + + "curityscanner.v1beta\"*\n\004Form\022\022\n\naction_u" + + "ri\030\001 \001(\t\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibr" + + "ary\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001" + + "(\t\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021Violating" + + "Resource\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resour" + + "ce_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017" + + "parameter_names\030\001 \003(\t\"\350\001\n\021VulnerableHead" + + "ers\022Q\n\007headers\030\001 \003(\0132@.google.cloud.webs" + + "ecurityscanner.v1beta.VulnerableHeaders." + + "Header\022Y\n\017missing_headers\030\002 \003(\0132@.google" + + ".cloud.websecurityscanner.v1beta.Vulnera" + + "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" + + "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\304\001\n*com.goo" + + "gle.cloud.websecurityscanner.v1betaB\021Fin" + + "dingAddonProtoP\001ZXgoogle.golang.org/genp" + + "roto/googleapis/cloud/websecurityscanner" + + "/v1beta;websecurityscanner\312\002&Google\\Clou" + + "d\\WebSecurityScanner\\V1betab\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -81,11 +95,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( } }; com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }, - assigner); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner); internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable = @@ -144,7 +154,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "StackTraces", "ErrorMessage", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java index 7bfa75e7..7f33bcc0 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * 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 + * 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 + * 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. + * 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. */ package com.google.cloud.websecurityscanner.v1beta; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java index b4e9ff2d..11c45b27 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding.proto @@ -12,7 +27,6 @@ public interface FindingOrBuilder * * *
-   * 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.
@@ -25,7 +39,6 @@ public interface FindingOrBuilder
    *
    *
    * 
-   * 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.
@@ -39,7 +52,6 @@ public interface FindingOrBuilder
    *
    *
    * 
-   * Output only.
    * 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
@@ -52,7 +64,6 @@ public interface FindingOrBuilder
    *
    *
    * 
-   * Output only.
    * 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
@@ -66,7 +77,6 @@ public interface FindingOrBuilder
    *
    *
    * 
-   * Output only.
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
@@ -78,7 +88,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
@@ -91,7 +100,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
@@ -103,7 +111,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
@@ -116,7 +123,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The body of the request that triggered the vulnerability.
    * 
* @@ -127,7 +133,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The body of the request that triggered the vulnerability.
    * 
* @@ -139,7 +144,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The description of the vulnerability.
    * 
* @@ -150,7 +154,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The description of the vulnerability.
    * 
* @@ -162,7 +165,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
@@ -174,7 +176,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
@@ -187,7 +188,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
@@ -199,7 +199,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
@@ -212,7 +211,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The URL where the browser lands when the vulnerability is detected.
    * 
* @@ -223,7 +221,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The URL where the browser lands when the vulnerability is detected.
    * 
* @@ -235,7 +232,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
@@ -247,7 +243,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
@@ -260,7 +255,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
@@ -272,7 +266,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
@@ -284,7 +277,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
@@ -297,7 +289,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information about outdated libraries.
    * 
* @@ -308,7 +299,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information about outdated libraries.
    * 
* @@ -319,7 +309,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information about outdated libraries.
    * 
* @@ -331,7 +320,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
@@ -343,7 +331,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
@@ -355,7 +342,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
@@ -369,7 +355,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* @@ -380,7 +365,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* @@ -391,7 +375,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* @@ -404,7 +387,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
@@ -417,7 +399,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
@@ -430,7 +411,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
@@ -445,7 +425,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information reported for an XSS, if any.
    * 
* @@ -456,7 +435,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information reported for an XSS, if any.
    * 
* @@ -467,7 +445,6 @@ public interface FindingOrBuilder * * *
-   * Output only.
    * An addon containing information reported for an XSS, if any.
    * 
* diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java index 1430f1e1..4e5f52c8 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding.proto @@ -27,31 +42,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n4google/cloud/websecurityscanner/v1beta" + "/finding.proto\022&google.cloud.websecurity" - + "scanner.v1beta\032\034google/api/annotations.p" - + "roto\032:google/cloud/websecurityscanner/v1" - + "beta/finding_addon.proto\"\242\005\n\007Finding\022\014\n\004" - + "name\030\001 \001(\t\022\024\n\014finding_type\030\002 \001(\t\022\023\n\013http" - + "_method\030\003 \001(\t\022\022\n\nfuzzed_url\030\004 \001(\t\022\014\n\004bod" - + "y\030\005 \001(\t\022\023\n\013description\030\006 \001(\t\022\030\n\020reproduc" - + "tion_url\030\007 \001(\t\022\021\n\tframe_url\030\010 \001(\t\022\021\n\tfin" - + "al_url\030\t \001(\t\022\023\n\013tracking_id\030\n \001(\t\022:\n\004for" - + "m\030\020 \001(\0132,.google.cloud.websecurityscanne" - + "r.v1beta.Form\022Q\n\020outdated_library\030\013 \001(\0132" - + "7.google.cloud.websecurityscanner.v1beta" - + ".OutdatedLibrary\022U\n\022violating_resource\030\014" - + " \001(\01329.google.cloud.websecurityscanner.v" - + "1beta.ViolatingResource\022U\n\022vulnerable_he" - + "aders\030\017 \001(\01329.google.cloud.websecuritysc" - + "anner.v1beta.VulnerableHeaders\022[\n\025vulner" - + "able_parameters\030\r \001(\0132<.google.cloud.web" - + "securityscanner.v1beta.VulnerableParamet" - + "ers\0228\n\003xss\030\016 \001(\0132+.google.cloud.websecur" - + "ityscanner.v1beta.XssB\277\001\n*com.google.clo" - + "ud.websecurityscanner.v1betaB\014FindingPro" - + "toP\001ZXgoogle.golang.org/genproto/googlea" - + "pis/cloud/websecurityscanner/v1beta;webs" - + "ecurityscanner\312\002&Google\\Cloud\\WebSecurit" - + "yScanner\\V1betab\006proto3" + + "scanner.v1beta\032\031google/api/resource.prot" + + "o\032:google/cloud/websecurityscanner/v1bet" + + "a/finding_addon.proto\"\251\006\n\007Finding\022\014\n\004nam" + + "e\030\001 \001(\t\022\024\n\014finding_type\030\002 \001(\t\022\023\n\013http_me" + + "thod\030\003 \001(\t\022\022\n\nfuzzed_url\030\004 \001(\t\022\014\n\004body\030\005" + + " \001(\t\022\023\n\013description\030\006 \001(\t\022\030\n\020reproductio" + + "n_url\030\007 \001(\t\022\021\n\tframe_url\030\010 \001(\t\022\021\n\tfinal_" + + "url\030\t \001(\t\022\023\n\013tracking_id\030\n \001(\t\022:\n\004form\030\020" + + " \001(\0132,.google.cloud.websecurityscanner.v" + + "1beta.Form\022Q\n\020outdated_library\030\013 \001(\01327.g" + + "oogle.cloud.websecurityscanner.v1beta.Ou" + + "tdatedLibrary\022U\n\022violating_resource\030\014 \001(" + + "\01329.google.cloud.websecurityscanner.v1be" + + "ta.ViolatingResource\022U\n\022vulnerable_heade" + + "rs\030\017 \001(\01329.google.cloud.websecurityscann" + + "er.v1beta.VulnerableHeaders\022[\n\025vulnerabl" + + "e_parameters\030\r \001(\0132<.google.cloud.websec" + + "urityscanner.v1beta.VulnerableParameters" + + "\0228\n\003xss\030\016 \001(\0132+.google.cloud.websecurity" + + "scanner.v1beta.Xss:\204\001\352A\200\001\n)websecuritysc" + + "anner.googleapis.com/Finding\022Sprojects/{" + + "project}/scanConfigs/{scan_config}/scanR" + + "uns/{scan_run}/findings/{finding}B\277\001\n*co" + + "m.google.cloud.websecurityscanner.v1beta" + + "B\014FindingProtoP\001ZXgoogle.golang.org/genp" + + "roto/googleapis/cloud/websecurityscanner" + + "/v1beta;websecurityscanner\312\002&Google\\Clou" + + "d\\WebSecurityScanner\\V1betab\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -64,7 +82,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(), }, assigner); @@ -91,7 +109,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "VulnerableParameters", "Xss", }); - com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java index 8de7793f..7c1dead8 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto @@ -103,7 +118,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only.
    * The finding type associated with the stats.
    * 
* @@ -124,7 +138,6 @@ public java.lang.String getFindingType() { * * *
-   * Output only.
    * The finding type associated with the stats.
    * 
* @@ -148,7 +161,6 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { * * *
-   * Output only.
    * The count of findings belonging to this finding type.
    * 
* @@ -498,7 +510,6 @@ public Builder mergeFrom( * * *
-     * Output only.
      * The finding type associated with the stats.
      * 
* @@ -519,7 +530,6 @@ public java.lang.String getFindingType() { * * *
-     * Output only.
      * The finding type associated with the stats.
      * 
* @@ -540,7 +550,6 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { * * *
-     * Output only.
      * The finding type associated with the stats.
      * 
* @@ -559,7 +568,6 @@ public Builder setFindingType(java.lang.String value) { * * *
-     * Output only.
      * The finding type associated with the stats.
      * 
* @@ -575,7 +583,6 @@ public Builder clearFindingType() { * * *
-     * Output only.
      * The finding type associated with the stats.
      * 
* @@ -597,7 +604,6 @@ public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only.
      * The count of findings belonging to this finding type.
      * 
* @@ -610,7 +616,6 @@ public int getFindingCount() { * * *
-     * Output only.
      * The count of findings belonging to this finding type.
      * 
* @@ -626,7 +631,6 @@ public Builder setFindingCount(int value) { * * *
-     * Output only.
      * The count of findings belonging to this finding type.
      * 
* diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java index b68aa1de..554ce479 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto @@ -12,7 +27,6 @@ public interface FindingTypeStatsOrBuilder * * *
-   * Output only.
    * The finding type associated with the stats.
    * 
* @@ -23,7 +37,6 @@ public interface FindingTypeStatsOrBuilder * * *
-   * Output only.
    * The finding type associated with the stats.
    * 
* @@ -35,7 +48,6 @@ public interface FindingTypeStatsOrBuilder * * *
-   * Output only.
    * The count of findings belonging to this finding type.
    * 
* diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java index 85f030fd..d50267ad 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto @@ -27,15 +42,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n?google/cloud/websecurityscanner/v1beta" + "/finding_type_stats.proto\022&google.cloud." - + "websecurityscanner.v1beta\032\034google/api/an" - + "notations.proto\"?\n\020FindingTypeStats\022\024\n\014f" - + "inding_type\030\001 \001(\t\022\025\n\rfinding_count\030\002 \001(\005" - + "B\310\001\n*com.google.cloud.websecurityscanner" - + ".v1betaB\025FindingTypeStatsProtoP\001ZXgoogle" - + ".golang.org/genproto/googleapis/cloud/we" - + "bsecurityscanner/v1beta;websecurityscann" - + "er\312\002&Google\\Cloud\\WebSecurityScanner\\V1b" - + "etab\006proto3" + + "websecurityscanner.v1beta\"?\n\020FindingType" + + "Stats\022\024\n\014finding_type\030\001 \001(\t\022\025\n\rfinding_c" + + "ount\030\002 \001(\005B\310\001\n*com.google.cloud.websecur" + + "ityscanner.v1betaB\025FindingTypeStatsProto" + + "P\001ZXgoogle.golang.org/genproto/googleapi" + + "s/cloud/websecurityscanner/v1beta;websec" + + "urityscanner\312\002&Google\\Cloud\\WebSecurityS" + + "canner\\V1betab\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -46,11 +60,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( } }; com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }, - assigner); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner); internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable = @@ -59,7 +69,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "FindingType", "FindingCount", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java index 074a4e68..0138f92a 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java index f550c4e1..d26bcfae 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java index cf29d18b..17198722 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -97,13 +112,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The resource name of the Finding to be returned. The name follows the
+   * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -120,13 +136,14 @@ public java.lang.String getName() { * * *
-   * Required.
-   * The resource name of the Finding to be returned. The name follows the
+   * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -466,13 +483,14 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The resource name of the Finding to be returned. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -489,13 +507,14 @@ public java.lang.String getName() { * * *
-     * Required.
-     * The resource name of the Finding to be returned. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -512,13 +531,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required.
-     * The resource name of the Finding to be returned. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -533,13 +553,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Required.
-     * The resource name of the Finding to be returned. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -551,13 +572,14 @@ public Builder clearName() { * * *
-     * Required.
-     * The resource name of the Finding to be returned. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java index addfb378..0d608b56 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,26 +27,28 @@ public interface GetFindingRequestOrBuilder * * *
-   * Required.
-   * The resource name of the Finding to be returned. The name follows the
+   * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Required.
-   * The resource name of the Finding to be returned. The name follows the
+   * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java index 42226789..2f56143d 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -97,12 +112,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The resource name of the ScanConfig to be returned. The name follows the
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -119,12 +135,13 @@ public java.lang.String getName() { * * *
-   * Required.
-   * The resource name of the ScanConfig to be returned. The name follows the
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -466,12 +483,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The resource name of the ScanConfig to be returned. The name follows the
+     * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -488,12 +506,13 @@ public java.lang.String getName() { * * *
-     * Required.
-     * The resource name of the ScanConfig to be returned. The name follows the
+     * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -510,12 +529,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required.
-     * The resource name of the ScanConfig to be returned. The name follows the
+     * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -530,12 +550,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Required.
-     * The resource name of the ScanConfig to be returned. The name follows the
+     * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -547,12 +568,13 @@ public Builder clearName() { * * *
-     * Required.
-     * The resource name of the ScanConfig to be returned. The name follows the
+     * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java index eb1bc055..438fff02 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,24 +27,26 @@ public interface GetScanConfigRequestOrBuilder * * *
-   * Required.
-   * The resource name of the ScanConfig to be returned. The name follows the
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Required.
-   * The resource name of the ScanConfig to be returned. The name follows the
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java index 81b14aa7..d92ec8fa 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -97,13 +112,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The resource name of the ScanRun to be returned. The name follows the
+   * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -120,13 +136,14 @@ public java.lang.String getName() { * * *
-   * Required.
-   * The resource name of the ScanRun to be returned. The name follows the
+   * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -466,13 +483,14 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The resource name of the ScanRun to be returned. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -489,13 +507,14 @@ public java.lang.String getName() { * * *
-     * Required.
-     * The resource name of the ScanRun to be returned. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -512,13 +531,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required.
-     * The resource name of the ScanRun to be returned. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -533,13 +553,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Required.
-     * The resource name of the ScanRun to be returned. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -551,13 +572,14 @@ public Builder clearName() { * * *
-     * Required.
-     * The resource name of the ScanRun to be returned. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java index aee9d212..b4b1efa4 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,26 +27,28 @@ public interface GetScanRunRequestOrBuilder * * *
-   * Required.
-   * The resource name of the ScanRun to be returned. The name follows the
+   * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Required.
-   * The resource name of the ScanRun to be returned. The name follows the
+   * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java index 2b95bea6..f455f95c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -110,13 +125,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The parent resource name, which should be a scan run resource name in the
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -133,13 +149,14 @@ public java.lang.String getParent() { * * *
-   * Required.
-   * The parent resource name, which should be a scan run resource name in the
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -578,13 +595,14 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -601,13 +619,14 @@ public java.lang.String getParent() { * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -624,13 +643,14 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -645,13 +665,14 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -663,13 +684,14 @@ public Builder clearParent() { * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java index d150ebe8..85c5452f 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,26 +27,28 @@ public interface ListCrawledUrlsRequestOrBuilder * * *
-   * Required.
-   * The parent resource name, which should be a scan run resource name in the
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * Required.
-   * The parent resource name, which should be a scan run resource name in the
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java index 8be3d2d5..49c38fa5 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java index ececcbc2..dcae057c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java index 587af8fb..30f04232 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -97,13 +112,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The parent resource name, which should be a scan run resource name in the
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -120,13 +136,14 @@ public java.lang.String getParent() { * * *
-   * Required.
-   * The parent resource name, which should be a scan run resource name in the
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -473,13 +490,14 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -496,13 +514,14 @@ public java.lang.String getParent() { * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -519,13 +538,14 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -540,13 +560,14 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -558,13 +579,14 @@ public Builder clearParent() { * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java index ac6d4ebc..2a7a8864 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,26 +27,28 @@ public interface ListFindingTypeStatsRequestOrBuilder * * *
-   * Required.
-   * The parent resource name, which should be a scan run resource name in the
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * Required.
-   * The parent resource name, which should be a scan run resource name in the
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java index ec2bd948..09f0cd39 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java index 6f9549dc..2d7c2704 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java index d8beeb72..2c8f0c52 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -118,13 +133,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The parent resource name, which should be a scan run resource name in the
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -141,13 +157,14 @@ public java.lang.String getParent() { * * *
-   * Required.
-   * The parent resource name, which should be a scan run resource name in the
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -167,13 +184,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The filter expression. The expression must be in the format: <field>
+   * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
    * Supported field: 'finding_type'.
    * Supported operator: '='.
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -190,13 +207,13 @@ public java.lang.String getFilter() { * * *
-   * The filter expression. The expression must be in the format: <field>
+   * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
    * Supported field: 'finding_type'.
    * Supported operator: '='.
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -648,13 +665,14 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -671,13 +689,14 @@ public java.lang.String getParent() { * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -694,13 +713,14 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -715,13 +735,14 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -733,13 +754,14 @@ public Builder clearParent() { * * *
-     * Required.
-     * The parent resource name, which should be a scan run resource name in the
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -757,13 +779,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The filter expression. The expression must be in the format: <field>
+     * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
      * Supported field: 'finding_type'.
      * Supported operator: '='.
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getFilter() { java.lang.Object ref = filter_; @@ -780,13 +802,13 @@ public java.lang.String getFilter() { * * *
-     * The filter expression. The expression must be in the format: <field>
+     * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
      * Supported field: 'finding_type'.
      * Supported operator: '='.
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; @@ -803,13 +825,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * The filter expression. The expression must be in the format: <field>
+     * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
      * Supported field: 'finding_type'.
      * Supported operator: '='.
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFilter(java.lang.String value) { if (value == null) { @@ -824,13 +846,13 @@ public Builder setFilter(java.lang.String value) { * * *
-     * The filter expression. The expression must be in the format: <field>
+     * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
      * Supported field: 'finding_type'.
      * Supported operator: '='.
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFilter() { @@ -842,13 +864,13 @@ public Builder clearFilter() { * * *
-     * The filter expression. The expression must be in the format: <field>
+     * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
      * Supported field: 'finding_type'.
      * Supported operator: '='.
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java index 27c7496b..d72720e5 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,26 +27,28 @@ public interface ListFindingsRequestOrBuilder * * *
-   * Required.
-   * The parent resource name, which should be a scan run resource name in the
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * Required.
-   * The parent resource name, which should be a scan run resource name in the
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); @@ -39,26 +56,26 @@ public interface ListFindingsRequestOrBuilder * * *
-   * The filter expression. The expression must be in the format: <field>
+   * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
    * Supported field: 'finding_type'.
    * Supported operator: '='.
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; */ java.lang.String getFilter(); /** * * *
-   * The filter expression. The expression must be in the format: <field>
+   * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
    * Supported field: 'finding_type'.
    * Supported operator: '='.
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.ByteString getFilterBytes(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java index f18ec47a..05f1eba3 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java index edbfdf00..a6b9d0dd 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java index cdd0dd76..9b63f6d2 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -110,12 +125,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The parent resource name, which should be a project resource name in the
+   * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -132,12 +148,13 @@ public java.lang.String getParent() { * * *
-   * Required.
-   * The parent resource name, which should be a project resource name in the
+   * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -576,12 +593,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The parent resource name, which should be a project resource name in the
+     * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -598,12 +616,13 @@ public java.lang.String getParent() { * * *
-     * Required.
-     * The parent resource name, which should be a project resource name in the
+     * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -620,12 +639,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required.
-     * The parent resource name, which should be a project resource name in the
+     * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -640,12 +660,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required.
-     * The parent resource name, which should be a project resource name in the
+     * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -657,12 +678,13 @@ public Builder clearParent() { * * *
-     * Required.
-     * The parent resource name, which should be a project resource name in the
+     * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java index 3dd8dda6..207d4a90 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,24 +27,26 @@ public interface ListScanConfigsRequestOrBuilder * * *
-   * Required.
-   * The parent resource name, which should be a project resource name in the
+   * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * Required.
-   * The parent resource name, which should be a project resource name in the
+   * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java index 5b845253..5088d38b 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java index aa6c714f..b677e5a5 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java index 9b7ec794..cc3752c7 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -110,12 +125,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The parent resource name, which should be a scan resource name in the
+   * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -132,12 +148,13 @@ public java.lang.String getParent() { * * *
-   * Required.
-   * The parent resource name, which should be a scan resource name in the
+   * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -573,12 +590,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The parent resource name, which should be a scan resource name in the
+     * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -595,12 +613,13 @@ public java.lang.String getParent() { * * *
-     * Required.
-     * The parent resource name, which should be a scan resource name in the
+     * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -617,12 +636,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required.
-     * The parent resource name, which should be a scan resource name in the
+     * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -637,12 +657,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required.
-     * The parent resource name, which should be a scan resource name in the
+     * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -654,12 +675,13 @@ public Builder clearParent() { * * *
-     * Required.
-     * The parent resource name, which should be a scan resource name in the
+     * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java index 6b53cba4..bab26475 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,24 +27,26 @@ public interface ListScanRunsRequestOrBuilder * * *
-   * Required.
-   * The parent resource name, which should be a scan resource name in the
+   * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * Required.
-   * The parent resource name, which should be a scan resource name in the
+   * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java index 6f2354ff..4889dbb3 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java index 48ae850f..c4627da8 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java index 897f7877..bb8ad0f0 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java index 679e7a20..77095623 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java index a976ef5e..d4e1aeb4 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * 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 + * 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 + * 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. + * 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. */ package com.google.cloud.websecurityscanner.v1beta; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java index 038969ef..f58b0c38 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_config.proto @@ -1085,22 +1100,20 @@ public interface GoogleAccountOrBuilder * * *
-       * Required.
-       * The user name of the Google account.
+       * Required. The user name of the Google account.
        * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ java.lang.String getUsername(); /** * * *
-       * Required.
-       * The user name of the Google account.
+       * Required. The user name of the Google account.
        * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.ByteString getUsernameBytes(); @@ -1108,26 +1121,26 @@ public interface GoogleAccountOrBuilder * * *
-       * Input only.
-       * Required.
-       * The password of the Google account. The credential is stored encrypted
+       * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ java.lang.String getPassword(); /** * * *
-       * Input only.
-       * Required.
-       * The password of the Google account. The credential is stored encrypted
+       * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ com.google.protobuf.ByteString getPasswordBytes(); } @@ -1237,11 +1250,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * Required.
-       * The user name of the Google account.
+       * Required. The user name of the Google account.
        * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getUsername() { java.lang.Object ref = username_; @@ -1258,11 +1270,10 @@ public java.lang.String getUsername() { * * *
-       * Required.
-       * The user name of the Google account.
+       * Required. The user name of the Google account.
        * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; @@ -1282,13 +1293,13 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * *
-       * Input only.
-       * Required.
-       * The password of the Google account. The credential is stored encrypted
+       * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -1305,13 +1316,13 @@ public java.lang.String getPassword() { * * *
-       * Input only.
-       * Required.
-       * The password of the Google account. The credential is stored encrypted
+       * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; @@ -1714,11 +1725,10 @@ public Builder mergeFrom( * * *
-         * Required.
-         * The user name of the Google account.
+         * Required. The user name of the Google account.
          * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getUsername() { java.lang.Object ref = username_; @@ -1735,11 +1745,10 @@ public java.lang.String getUsername() { * * *
-         * Required.
-         * The user name of the Google account.
+         * Required. The user name of the Google account.
          * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; @@ -1756,11 +1765,10 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * *
-         * Required.
-         * The user name of the Google account.
+         * Required. The user name of the Google account.
          * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUsername(java.lang.String value) { if (value == null) { @@ -1775,11 +1783,10 @@ public Builder setUsername(java.lang.String value) { * * *
-         * Required.
-         * The user name of the Google account.
+         * Required. The user name of the Google account.
          * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUsername() { @@ -1791,11 +1798,10 @@ public Builder clearUsername() { * * *
-         * Required.
-         * The user name of the Google account.
+         * Required. The user name of the Google account.
          * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1813,13 +1819,13 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * * *
-         * Input only.
-         * Required.
-         * The password of the Google account. The credential is stored encrypted
+         * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -1836,13 +1842,13 @@ public java.lang.String getPassword() { * * *
-         * Input only.
-         * Required.
-         * The password of the Google account. The credential is stored encrypted
+         * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; @@ -1859,13 +1865,13 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * *
-         * Input only.
-         * Required.
-         * The password of the Google account. The credential is stored encrypted
+         * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setPassword(java.lang.String value) { if (value == null) { @@ -1880,13 +1886,13 @@ public Builder setPassword(java.lang.String value) { * * *
-         * Input only.
-         * Required.
-         * The password of the Google account. The credential is stored encrypted
+         * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder clearPassword() { @@ -1898,13 +1904,13 @@ public Builder clearPassword() { * * *
-         * Input only.
-         * Required.
-         * The password of the Google account. The credential is stored encrypted
+         * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1985,22 +1991,20 @@ public interface CustomAccountOrBuilder * * *
-       * Required.
-       * The user name of the custom account.
+       * Required. The user name of the custom account.
        * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ java.lang.String getUsername(); /** * * *
-       * Required.
-       * The user name of the custom account.
+       * Required. The user name of the custom account.
        * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.ByteString getUsernameBytes(); @@ -2008,26 +2012,26 @@ public interface CustomAccountOrBuilder * * *
-       * Input only.
-       * Required.
-       * The password of the custom account. The credential is stored encrypted
+       * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ java.lang.String getPassword(); /** * * *
-       * Input only.
-       * Required.
-       * The password of the custom account. The credential is stored encrypted
+       * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ com.google.protobuf.ByteString getPasswordBytes(); @@ -2035,22 +2039,20 @@ public interface CustomAccountOrBuilder * * *
-       * Required.
-       * The login form URL of the website.
+       * Required. The login form URL of the website.
        * 
* - * string login_url = 3; + * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; */ java.lang.String getLoginUrl(); /** * * *
-       * Required.
-       * The login form URL of the website.
+       * Required. The login form URL of the website.
        * 
* - * string login_url = 3; + * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.ByteString getLoginUrlBytes(); } @@ -2168,11 +2170,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * Required.
-       * The user name of the custom account.
+       * Required. The user name of the custom account.
        * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getUsername() { java.lang.Object ref = username_; @@ -2189,11 +2190,10 @@ public java.lang.String getUsername() { * * *
-       * Required.
-       * The user name of the custom account.
+       * Required. The user name of the custom account.
        * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; @@ -2213,13 +2213,13 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * *
-       * Input only.
-       * Required.
-       * The password of the custom account. The credential is stored encrypted
+       * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -2236,13 +2236,13 @@ public java.lang.String getPassword() { * * *
-       * Input only.
-       * Required.
-       * The password of the custom account. The credential is stored encrypted
+       * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; @@ -2262,11 +2262,10 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * *
-       * Required.
-       * The login form URL of the website.
+       * Required. The login form URL of the website.
        * 
* - * string login_url = 3; + * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getLoginUrl() { java.lang.Object ref = loginUrl_; @@ -2283,11 +2282,10 @@ public java.lang.String getLoginUrl() { * * *
-       * Required.
-       * The login form URL of the website.
+       * Required. The login form URL of the website.
        * 
* - * string login_url = 3; + * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getLoginUrlBytes() { java.lang.Object ref = loginUrl_; @@ -2706,11 +2704,10 @@ public Builder mergeFrom( * * *
-         * Required.
-         * The user name of the custom account.
+         * Required. The user name of the custom account.
          * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getUsername() { java.lang.Object ref = username_; @@ -2727,11 +2724,10 @@ public java.lang.String getUsername() { * * *
-         * Required.
-         * The user name of the custom account.
+         * Required. The user name of the custom account.
          * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; @@ -2748,11 +2744,10 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * *
-         * Required.
-         * The user name of the custom account.
+         * Required. The user name of the custom account.
          * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUsername(java.lang.String value) { if (value == null) { @@ -2767,11 +2762,10 @@ public Builder setUsername(java.lang.String value) { * * *
-         * Required.
-         * The user name of the custom account.
+         * Required. The user name of the custom account.
          * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUsername() { @@ -2783,11 +2777,10 @@ public Builder clearUsername() { * * *
-         * Required.
-         * The user name of the custom account.
+         * Required. The user name of the custom account.
          * 
* - * string username = 1; + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2805,13 +2798,13 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * * *
-         * Input only.
-         * Required.
-         * The password of the custom account. The credential is stored encrypted
+         * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -2828,13 +2821,13 @@ public java.lang.String getPassword() { * * *
-         * Input only.
-         * Required.
-         * The password of the custom account. The credential is stored encrypted
+         * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; @@ -2851,13 +2844,13 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * *
-         * Input only.
-         * Required.
-         * The password of the custom account. The credential is stored encrypted
+         * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setPassword(java.lang.String value) { if (value == null) { @@ -2872,13 +2865,13 @@ public Builder setPassword(java.lang.String value) { * * *
-         * Input only.
-         * Required.
-         * The password of the custom account. The credential is stored encrypted
+         * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder clearPassword() { @@ -2890,13 +2883,13 @@ public Builder clearPassword() { * * *
-         * Input only.
-         * Required.
-         * The password of the custom account. The credential is stored encrypted
+         * 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; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2914,11 +2907,10 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { * * *
-         * Required.
-         * The login form URL of the website.
+         * Required. The login form URL of the website.
          * 
* - * string login_url = 3; + * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getLoginUrl() { java.lang.Object ref = loginUrl_; @@ -2935,11 +2927,10 @@ public java.lang.String getLoginUrl() { * * *
-         * Required.
-         * The login form URL of the website.
+         * Required. The login form URL of the website.
          * 
* - * string login_url = 3; + * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getLoginUrlBytes() { java.lang.Object ref = loginUrl_; @@ -2956,11 +2947,10 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { * * *
-         * Required.
-         * The login form URL of the website.
+         * Required. The login form URL of the website.
          * 
* - * string login_url = 3; + * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setLoginUrl(java.lang.String value) { if (value == null) { @@ -2975,11 +2965,10 @@ public Builder setLoginUrl(java.lang.String value) { * * *
-         * Required.
-         * The login form URL of the website.
+         * Required. The login form URL of the website.
          * 
* - * string login_url = 3; + * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearLoginUrl() { @@ -2991,11 +2980,10 @@ public Builder clearLoginUrl() { * * *
-         * Required.
-         * The login form URL of the website.
+         * Required. The login form URL of the website.
          * 
* - * string login_url = 3; + * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -4243,11 +4231,10 @@ public interface ScheduleOrBuilder * * *
-     * Required.
-     * The duration of time between executions in days.
+     * Required. The duration of time between executions in days.
      * 
* - * int32 interval_duration_days = 2; + * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; */ int getIntervalDurationDays(); } @@ -4406,11 +4393,10 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { * * *
-     * Required.
-     * The duration of time between executions in days.
+     * Required. The duration of time between executions in days.
      * 
* - * int32 interval_duration_days = 2; + * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; */ public int getIntervalDurationDays() { return intervalDurationDays_; @@ -4983,11 +4969,10 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { * * *
-       * Required.
-       * The duration of time between executions in days.
+       * Required. The duration of time between executions in days.
        * 
* - * int32 interval_duration_days = 2; + * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; */ public int getIntervalDurationDays() { return intervalDurationDays_; @@ -4996,11 +4981,10 @@ public int getIntervalDurationDays() { * * *
-       * Required.
-       * The duration of time between executions in days.
+       * Required. The duration of time between executions in days.
        * 
* - * int32 interval_duration_days = 2; + * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setIntervalDurationDays(int value) { @@ -5012,11 +4996,10 @@ public Builder setIntervalDurationDays(int value) { * * *
-       * Required.
-       * The duration of time between executions in days.
+       * Required. The duration of time between executions in days.
        * 
* - * int32 interval_duration_days = 2; + * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearIntervalDurationDays() { @@ -5134,11 +5117,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required.
-   * The user provided display name of the ScanConfig.
+   * Required. The user provided display name of the ScanConfig.
    * 
* - * string display_name = 2; + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; @@ -5155,11 +5137,10 @@ public java.lang.String getDisplayName() { * * *
-   * Required.
-   * The user provided display name of the ScanConfig.
+   * Required. The user provided display name of the ScanConfig.
    * 
* - * string display_name = 2; + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; @@ -5197,11 +5178,10 @@ public int getMaxQps() { * * *
-   * Required.
-   * The starting URLs from which the scanner finds site pages.
+   * Required. The starting URLs from which the scanner finds site pages.
    * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ProtocolStringList getStartingUrlsList() { return startingUrls_; @@ -5210,11 +5190,10 @@ public com.google.protobuf.ProtocolStringList getStartingUrlsList() { * * *
-   * Required.
-   * The starting URLs from which the scanner finds site pages.
+   * Required. The starting URLs from which the scanner finds site pages.
    * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public int getStartingUrlsCount() { return startingUrls_.size(); @@ -5223,11 +5202,10 @@ public int getStartingUrlsCount() { * * *
-   * Required.
-   * The starting URLs from which the scanner finds site pages.
+   * Required. The starting URLs from which the scanner finds site pages.
    * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); @@ -5236,11 +5214,10 @@ public java.lang.String getStartingUrls(int index) { * * *
-   * Required.
-   * The starting URLs from which the scanner finds site pages.
+   * Required. The starting URLs from which the scanner finds site pages.
    * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); @@ -6356,11 +6333,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required.
-     * The user provided display name of the ScanConfig.
+     * Required. The user provided display name of the ScanConfig.
      * 
* - * string display_name = 2; + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; @@ -6377,11 +6353,10 @@ public java.lang.String getDisplayName() { * * *
-     * Required.
-     * The user provided display name of the ScanConfig.
+     * Required. The user provided display name of the ScanConfig.
      * 
* - * string display_name = 2; + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; @@ -6398,11 +6373,10 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Required.
-     * The user provided display name of the ScanConfig.
+     * Required. The user provided display name of the ScanConfig.
      * 
* - * string display_name = 2; + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDisplayName(java.lang.String value) { if (value == null) { @@ -6417,11 +6391,10 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Required.
-     * The user provided display name of the ScanConfig.
+     * Required. The user provided display name of the ScanConfig.
      * 
* - * string display_name = 2; + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDisplayName() { @@ -6433,11 +6406,10 @@ public Builder clearDisplayName() { * * *
-     * Required.
-     * The user provided display name of the ScanConfig.
+     * Required. The user provided display name of the ScanConfig.
      * 
* - * string display_name = 2; + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -6516,11 +6488,10 @@ private void ensureStartingUrlsIsMutable() { * * *
-     * Required.
-     * The starting URLs from which the scanner finds site pages.
+     * Required. The starting URLs from which the scanner finds site pages.
      * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ProtocolStringList getStartingUrlsList() { return startingUrls_.getUnmodifiableView(); @@ -6529,11 +6500,10 @@ public com.google.protobuf.ProtocolStringList getStartingUrlsList() { * * *
-     * Required.
-     * The starting URLs from which the scanner finds site pages.
+     * Required. The starting URLs from which the scanner finds site pages.
      * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public int getStartingUrlsCount() { return startingUrls_.size(); @@ -6542,11 +6512,10 @@ public int getStartingUrlsCount() { * * *
-     * Required.
-     * The starting URLs from which the scanner finds site pages.
+     * Required. The starting URLs from which the scanner finds site pages.
      * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); @@ -6555,11 +6524,10 @@ public java.lang.String getStartingUrls(int index) { * * *
-     * Required.
-     * The starting URLs from which the scanner finds site pages.
+     * Required. The starting URLs from which the scanner finds site pages.
      * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); @@ -6568,11 +6536,10 @@ public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { * * *
-     * Required.
-     * The starting URLs from which the scanner finds site pages.
+     * Required. The starting URLs from which the scanner finds site pages.
      * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setStartingUrls(int index, java.lang.String value) { if (value == null) { @@ -6587,11 +6554,10 @@ public Builder setStartingUrls(int index, java.lang.String value) { * * *
-     * Required.
-     * The starting URLs from which the scanner finds site pages.
+     * Required. The starting URLs from which the scanner finds site pages.
      * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addStartingUrls(java.lang.String value) { if (value == null) { @@ -6606,11 +6572,10 @@ public Builder addStartingUrls(java.lang.String value) { * * *
-     * Required.
-     * The starting URLs from which the scanner finds site pages.
+     * Required. The starting URLs from which the scanner finds site pages.
      * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllStartingUrls(java.lang.Iterable values) { ensureStartingUrlsIsMutable(); @@ -6622,11 +6587,10 @@ public Builder addAllStartingUrls(java.lang.Iterable values) { * * *
-     * Required.
-     * The starting URLs from which the scanner finds site pages.
+     * Required. The starting URLs from which the scanner finds site pages.
      * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearStartingUrls() { startingUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -6638,11 +6602,10 @@ public Builder clearStartingUrls() { * * *
-     * Required.
-     * The starting URLs from which the scanner finds site pages.
+     * Required. The starting URLs from which the scanner finds site pages.
      * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java index 16348ab5..14ae2314 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto @@ -108,7 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Output only.
    * Defines an error reason code.
-   * Next id: 43
+   * Next id: 44
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfigError.Code} @@ -323,6 +338,16 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * FORBIDDEN_TO_SCAN_COMPUTE = 21; */ FORBIDDEN_TO_SCAN_COMPUTE(20, 21), + /** + * + * + *
+     * User tries to update managed scan
+     * 
+ * + * FORBIDDEN_UPDATE_TO_MANAGED_SCAN = 43; + */ + FORBIDDEN_UPDATE_TO_MANAGED_SCAN(21, 43), /** * * @@ -334,7 +359,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * MALFORMED_FILTER = 22; */ - MALFORMED_FILTER(21, 22), + MALFORMED_FILTER(22, 22), /** * * @@ -344,7 +369,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * MALFORMED_RESOURCE_NAME = 23; */ - MALFORMED_RESOURCE_NAME(22, 23), + MALFORMED_RESOURCE_NAME(23, 23), /** * * @@ -354,7 +379,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * PROJECT_INACTIVE = 24; */ - PROJECT_INACTIVE(23, 24), + PROJECT_INACTIVE(24, 24), /** * * @@ -364,7 +389,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * REQUIRED_FIELD = 25; */ - REQUIRED_FIELD(24, 25), + REQUIRED_FIELD(25, 25), /** * * @@ -375,7 +400,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * RESOURCE_NAME_INCONSISTENT = 26; */ - RESOURCE_NAME_INCONSISTENT(25, 26), + RESOURCE_NAME_INCONSISTENT(26, 26), /** * * @@ -385,7 +410,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * SCAN_ALREADY_RUNNING = 27; */ - SCAN_ALREADY_RUNNING(26, 27), + SCAN_ALREADY_RUNNING(27, 27), /** * * @@ -395,7 +420,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * SCAN_NOT_RUNNING = 28; */ - SCAN_NOT_RUNNING(27, 28), + SCAN_NOT_RUNNING(28, 28), /** * * @@ -405,7 +430,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT = 29; */ - SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(28, 29), + SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(29, 29), /** * * @@ -415,7 +440,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * SEED_URL_MALFORMED = 30; */ - SEED_URL_MALFORMED(29, 30), + SEED_URL_MALFORMED(30, 30), /** * * @@ -425,7 +450,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS = 31; */ - SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(30, 31), + SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(31, 31), /** * * @@ -436,7 +461,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS = 32; */ - SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS(31, 32), + SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS(32, 32), /** * * @@ -446,7 +471,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS = 33; */ - SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS(32, 33), + SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS(33, 33), /** * * @@ -457,7 +482,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * SEED_URL_HAS_UNRESERVED_IP_ADDRESS = 35; */ - SEED_URL_HAS_UNRESERVED_IP_ADDRESS(33, 35), + SEED_URL_HAS_UNRESERVED_IP_ADDRESS(34, 35), /** * * @@ -468,7 +493,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * SERVICE_ACCOUNT_NOT_CONFIGURED = 36; */ - SERVICE_ACCOUNT_NOT_CONFIGURED(34, 36), + SERVICE_ACCOUNT_NOT_CONFIGURED(35, 36), /** * * @@ -478,7 +503,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * TOO_MANY_SCANS = 37; */ - TOO_MANY_SCANS(35, 37), + TOO_MANY_SCANS(36, 37), /** * * @@ -488,7 +513,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * UNABLE_TO_RESOLVE_PROJECT_INFO = 38; */ - UNABLE_TO_RESOLVE_PROJECT_INFO(36, 38), + UNABLE_TO_RESOLVE_PROJECT_INFO(37, 38), /** * * @@ -498,7 +523,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * UNSUPPORTED_BLACKLIST_PATTERN_FORMAT = 39; */ - UNSUPPORTED_BLACKLIST_PATTERN_FORMAT(37, 39), + UNSUPPORTED_BLACKLIST_PATTERN_FORMAT(38, 39), /** * * @@ -508,7 +533,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * UNSUPPORTED_FILTER = 40; */ - UNSUPPORTED_FILTER(38, 40), + UNSUPPORTED_FILTER(39, 40), /** * * @@ -519,7 +544,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * UNSUPPORTED_FINDING_TYPE = 41; */ - UNSUPPORTED_FINDING_TYPE(39, 41), + UNSUPPORTED_FINDING_TYPE(40, 41), /** * * @@ -529,7 +554,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * UNSUPPORTED_URL_SCHEME = 42; */ - UNSUPPORTED_URL_SCHEME(40, 42), + UNSUPPORTED_URL_SCHEME(41, 42), UNRECOGNIZED(-1, -1), ; @@ -762,6 +787,16 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * FORBIDDEN_TO_SCAN_COMPUTE = 21; */ public static final int FORBIDDEN_TO_SCAN_COMPUTE_VALUE = 21; + /** + * + * + *
+     * User tries to update managed scan
+     * 
+ * + * FORBIDDEN_UPDATE_TO_MANAGED_SCAN = 43; + */ + public static final int FORBIDDEN_UPDATE_TO_MANAGED_SCAN_VALUE = 43; /** * * @@ -1026,6 +1061,8 @@ public static Code forNumber(int value) { return FINDING_TYPE_UNSPECIFIED; case 21: return FORBIDDEN_TO_SCAN_COMPUTE; + case 43: + return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; case 22: return MALFORMED_FILTER; case 23: @@ -1118,6 +1155,7 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor FAILED_TO_AUTHENTICATE_TO_TARGET, FINDING_TYPE_UNSPECIFIED, FORBIDDEN_TO_SCAN_COMPUTE, + FORBIDDEN_UPDATE_TO_MANAGED_SCAN, MALFORMED_FILTER, MALFORMED_RESOURCE_NAME, PROJECT_INACTIVE, @@ -1167,7 +1205,6 @@ private Code(int index, int value) { * * *
-   * Output only.
    * Indicates the reason code for a configuration failure.
    * 
* @@ -1180,7 +1217,6 @@ public int getCodeValue() { * * *
-   * Output only.
    * Indicates the reason code for a configuration failure.
    * 
* @@ -1201,7 +1237,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() * * *
-   * 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
@@ -1225,7 +1260,6 @@ public java.lang.String getFieldName() {
    *
    *
    * 
-   * 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
@@ -1592,7 +1626,6 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Output only.
      * Indicates the reason code for a configuration failure.
      * 
* @@ -1605,7 +1638,6 @@ public int getCodeValue() { * * *
-     * Output only.
      * Indicates the reason code for a configuration failure.
      * 
* @@ -1620,7 +1652,6 @@ public Builder setCodeValue(int value) { * * *
-     * Output only.
      * Indicates the reason code for a configuration failure.
      * 
* @@ -1638,7 +1669,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() * * *
-     * Output only.
      * Indicates the reason code for a configuration failure.
      * 
* @@ -1657,7 +1687,6 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanConfigErro * * *
-     * Output only.
      * Indicates the reason code for a configuration failure.
      * 
* @@ -1675,7 +1704,6 @@ public Builder clearCode() { * * *
-     * 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
@@ -1699,7 +1727,6 @@ public java.lang.String getFieldName() {
      *
      *
      * 
-     * 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
@@ -1723,7 +1750,6 @@ public com.google.protobuf.ByteString getFieldNameBytes() {
      *
      *
      * 
-     * 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
@@ -1745,7 +1771,6 @@ public Builder setFieldName(java.lang.String value) {
      *
      *
      * 
-     * 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
@@ -1764,7 +1789,6 @@ public Builder clearFieldName() {
      *
      *
      * 
-     * 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
diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java
index 728a8da6..3b527877 100644
--- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java
+++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java
@@ -1,3 +1,18 @@
+/*
+ * 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
+ *
+ *     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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto
 
@@ -12,7 +27,6 @@ public interface ScanConfigErrorOrBuilder
    *
    *
    * 
-   * Output only.
    * Indicates the reason code for a configuration failure.
    * 
* @@ -23,7 +37,6 @@ public interface ScanConfigErrorOrBuilder * * *
-   * Output only.
    * Indicates the reason code for a configuration failure.
    * 
* @@ -35,7 +48,6 @@ public interface ScanConfigErrorOrBuilder * * *
-   * 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
@@ -49,7 +61,6 @@ public interface ScanConfigErrorOrBuilder
    *
    *
    * 
-   * 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
diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java
index d50c771e..1415e74f 100644
--- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java
+++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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
+ *
+ *     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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto
 
@@ -27,10 +42,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     java.lang.String[] descriptorData = {
       "\n>google/cloud/websecurityscanner/v1beta"
           + "/scan_config_error.proto\022&google.cloud.w"
-          + "ebsecurityscanner.v1beta\"\307\013\n\017ScanConfigE"
+          + "ebsecurityscanner.v1beta\"\355\013\n\017ScanConfigE"
           + "rror\022J\n\004code\030\001 \001(\0162<.google.cloud.websec"
           + "urityscanner.v1beta.ScanConfigError.Code"
-          + "\022\022\n\nfield_name\030\002 \001(\t\"\323\n\n\004Code\022\024\n\020CODE_UN"
+          + "\022\022\n\nfield_name\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UN"
           + "SPECIFIED\020\000\022\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022"
           + "\037\n\033APPENGINE_API_BACKEND_ERROR\020\002\022 \n\034APPE"
           + "NGINE_API_NOT_ACCESSIBLE\020\003\022\"\n\036APPENGINE_"
@@ -48,28 +63,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "\017\022\027\n\023DUPLICATE_SCAN_NAME\020\020\022\027\n\023INVALID_FI"
           + "ELD_VALUE\020\022\022$\n FAILED_TO_AUTHENTICATE_TO"
           + "_TARGET\020\023\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\024\022"
-          + "\035\n\031FORBIDDEN_TO_SCAN_COMPUTE\020\025\022\024\n\020MALFOR"
-          + "MED_FILTER\020\026\022\033\n\027MALFORMED_RESOURCE_NAME\020"
-          + "\027\022\024\n\020PROJECT_INACTIVE\020\030\022\022\n\016REQUIRED_FIEL"
-          + "D\020\031\022\036\n\032RESOURCE_NAME_INCONSISTENT\020\032\022\030\n\024S"
-          + "CAN_ALREADY_RUNNING\020\033\022\024\n\020SCAN_NOT_RUNNIN"
-          + "G\020\034\022/\n+SEED_URL_DOES_NOT_BELONG_TO_CURRE"
-          + "NT_PROJECT\020\035\022\026\n\022SEED_URL_MALFORMED\020\036\022+\n\'"
-          + "SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020"
-          + "\037\022)\n%SEED_URL_MAPPED_TO_UNRESERVED_ADDRE"
-          + "SS\020 \022(\n$SEED_URL_HAS_NON_ROUTABLE_IP_ADD"
-          + "RESS\020!\022&\n\"SEED_URL_HAS_UNRESERVED_IP_ADD"
-          + "RESS\020#\022\"\n\036SERVICE_ACCOUNT_NOT_CONFIGURED"
-          + "\020$\022\022\n\016TOO_MANY_SCANS\020%\022\"\n\036UNABLE_TO_RESO"
-          + "LVE_PROJECT_INFO\020&\022(\n$UNSUPPORTED_BLACKL"
-          + "IST_PATTERN_FORMAT\020\'\022\026\n\022UNSUPPORTED_FILT"
-          + "ER\020(\022\034\n\030UNSUPPORTED_FINDING_TYPE\020)\022\032\n\026UN"
-          + "SUPPORTED_URL_SCHEME\020*\032\002\020\001B\307\001\n*com.googl"
-          + "e.cloud.websecurityscanner.v1betaB\024ScanC"
-          + "onfigErrorProtoP\001ZXgoogle.golang.org/gen"
-          + "proto/googleapis/cloud/websecurityscanne"
-          + "r/v1beta;websecurityscanner\312\002&Google\\Clo"
-          + "ud\\WebSecurityScanner\\V1betab\006proto3"
+          + "\035\n\031FORBIDDEN_TO_SCAN_COMPUTE\020\025\022$\n FORBID"
+          + "DEN_UPDATE_TO_MANAGED_SCAN\020+\022\024\n\020MALFORME"
+          + "D_FILTER\020\026\022\033\n\027MALFORMED_RESOURCE_NAME\020\027\022"
+          + "\024\n\020PROJECT_INACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020"
+          + "\031\022\036\n\032RESOURCE_NAME_INCONSISTENT\020\032\022\030\n\024SCA"
+          + "N_ALREADY_RUNNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020"
+          + "\034\022/\n+SEED_URL_DOES_NOT_BELONG_TO_CURRENT"
+          + "_PROJECT\020\035\022\026\n\022SEED_URL_MALFORMED\020\036\022+\n\'SE"
+          + "ED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\037\022"
+          + ")\n%SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS"
+          + "\020 \022(\n$SEED_URL_HAS_NON_ROUTABLE_IP_ADDRE"
+          + "SS\020!\022&\n\"SEED_URL_HAS_UNRESERVED_IP_ADDRE"
+          + "SS\020#\022\"\n\036SERVICE_ACCOUNT_NOT_CONFIGURED\020$"
+          + "\022\022\n\016TOO_MANY_SCANS\020%\022\"\n\036UNABLE_TO_RESOLV"
+          + "E_PROJECT_INFO\020&\022(\n$UNSUPPORTED_BLACKLIS"
+          + "T_PATTERN_FORMAT\020\'\022\026\n\022UNSUPPORTED_FILTER"
+          + "\020(\022\034\n\030UNSUPPORTED_FINDING_TYPE\020)\022\032\n\026UNSU"
+          + "PPORTED_URL_SCHEME\020*\032\002\020\001B\307\001\n*com.google."
+          + "cloud.websecurityscanner.v1betaB\024ScanCon"
+          + "figErrorProtoP\001ZXgoogle.golang.org/genpr"
+          + "oto/googleapis/cloud/websecurityscanner/"
+          + "v1beta;websecurityscanner\312\002&Google\\Cloud"
+          + "\\WebSecurityScanner\\V1betab\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java
index 4baedc20..55ea488d 100644
--- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java
+++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java
@@ -1,15 +1,17 @@
 /*
- * Copyright 2018 Google LLC
+ * 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
+ * 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
+ *     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.
+ * 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.
  */
 
 package com.google.cloud.websecurityscanner.v1beta;
diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java
index 93c7541c..3d908679 100644
--- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java
+++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java
@@ -1,3 +1,18 @@
+/*
+ * 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
+ *
+ *     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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/websecurityscanner/v1beta/scan_config.proto
 
@@ -37,22 +52,20 @@ public interface ScanConfigOrBuilder
    *
    *
    * 
-   * Required.
-   * The user provided display name of the ScanConfig.
+   * Required. The user provided display name of the ScanConfig.
    * 
* - * string display_name = 2; + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ java.lang.String getDisplayName(); /** * * *
-   * Required.
-   * The user provided display name of the ScanConfig.
+   * Required. The user provided display name of the ScanConfig.
    * 
* - * string display_name = 2; + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.ByteString getDisplayNameBytes(); @@ -74,44 +87,40 @@ public interface ScanConfigOrBuilder * * *
-   * Required.
-   * The starting URLs from which the scanner finds site pages.
+   * Required. The starting URLs from which the scanner finds site pages.
    * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ java.util.List getStartingUrlsList(); /** * * *
-   * Required.
-   * The starting URLs from which the scanner finds site pages.
+   * Required. The starting URLs from which the scanner finds site pages.
    * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ int getStartingUrlsCount(); /** * * *
-   * Required.
-   * The starting URLs from which the scanner finds site pages.
+   * Required. The starting URLs from which the scanner finds site pages.
    * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ java.lang.String getStartingUrls(int index); /** * * *
-   * Required.
-   * The starting URLs from which the scanner finds site pages.
+   * Required. The starting URLs from which the scanner finds site pages.
    * 
* - * repeated string starting_urls = 4; + * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.ByteString getStartingUrlsBytes(int index); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java index c82c710c..fe5d8944 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_config.proto @@ -43,12 +58,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n8google/cloud/websecurityscanner/v1beta" + "/scan_config.proto\022&google.cloud.websecu" - + "rityscanner.v1beta\032\034google/api/annotatio" - + "ns.proto\0325google/cloud/websecurityscanne" - + "r/v1beta/scan_run.proto\032\037google/protobuf" - + "/timestamp.proto\"\227\014\n\nScanConfig\022\014\n\004name\030" - + "\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\017\n\007max_qps\030\003" - + " \001(\005\022\025\n\rstarting_urls\030\004 \003(\t\022Y\n\016authentic" + + "rityscanner.v1beta\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\0325" + + "google/cloud/websecurityscanner/v1beta/s" + + "can_run.proto\032\037google/protobuf/timestamp" + + ".proto\"\246\r\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031\n\014d" + + "isplay_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001(\005\022" + + "\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Y\n\016authentic" + "ation\030\005 \001(\0132A.google.cloud.websecuritysc" + "anner.v1beta.ScanConfig.Authentication\022P" + "\n\nuser_agent\030\006 \001(\0162<.google.cloud.websec" @@ -64,33 +80,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "enter\022C\n\nlatest_run\030\013 \001(\0132/.google.cloud" + ".websecurityscanner.v1beta.ScanRun\022P\n\nri" + "sk_level\030\014 \001(\0162<.google.cloud.websecurit" - + "yscanner.v1beta.ScanConfig.RiskLevel\032\365\002\n" + + "yscanner.v1beta.ScanConfig.RiskLevel\032\224\003\n" + "\016Authentication\022i\n\016google_account\030\001 \001(\0132" + "O.google.cloud.websecurityscanner.v1beta" + ".ScanConfig.Authentication.GoogleAccount" + "H\000\022i\n\016custom_account\030\002 \001(\0132O.google.clou" + "d.websecurityscanner.v1beta.ScanConfig.A" - + "uthentication.CustomAccountH\000\0323\n\rGoogleA" - + "ccount\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001" - + "(\t\032F\n\rCustomAccount\022\020\n\010username\030\001 \001(\t\022\020\n" - + "\010password\030\002 \001(\t\022\021\n\tlogin_url\030\003 \001(\tB\020\n\016au" - + "thentication\032]\n\010Schedule\0221\n\rschedule_tim" - + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022\036\n\026i" - + "nterval_duration_days\030\002 \001(\005\"`\n\tUserAgent" - + "\022\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_L" - + "INUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPH" - + "ONE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFO" - + "RM_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMP" - + "UTE\020\002\"<\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECI" - + "FIED\020\000\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToS" - + "ecurityCommandCenter\0221\n-EXPORT_TO_SECURI" - + "TY_COMMAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABL" - + "ED\020\001\022\014\n\010DISABLED\020\002B\302\001\n*com.google.cloud." - + "websecurityscanner.v1betaB\017ScanConfigPro" - + "toP\001ZXgoogle.golang.org/genproto/googlea" - + "pis/cloud/websecurityscanner/v1beta;webs" - + "ecurityscanner\312\002&Google\\Cloud\\WebSecurit" - + "yScanner\\V1betab\006proto3" + + "uthentication.CustomAccountH\000\032@\n\rGoogleA" + + "ccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010passwor" + + "d\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010user" + + "name\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A\002\340A" + + "\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenticat" + + "ion\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022#\n\026interval_d" + + "uration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022\032\n\026" + + "USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX" + + "\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020" + + "\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFORM_U" + + "NSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPUTE\020" + + "\002\"<\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED" + + "\020\000\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecur" + + "ityCommandCenter\0221\n-EXPORT_TO_SECURITY_C" + + "OMMAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001" + + "\022\014\n\010DISABLED\020\002:_\352A\\\n,websecurityscanner." + + "googleapis.com/ScanConfig\022,projects/{pro" + + "ject}/scanConfigs/{scan_config}B\302\001\n*com." + + "google.cloud.websecurityscanner.v1betaB\017" + + "ScanConfigProtoP\001ZXgoogle.golang.org/gen" + + "proto/googleapis/cloud/websecurityscanne" + + "r/v1beta;websecurityscanner\312\002&Google\\Clo" + + "ud\\WebSecurityScanner\\V1betab\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -103,7 +122,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }, @@ -167,7 +187,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "ScheduleTime", "IntervalDurationDays", }); - com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java index ea154215..6ba81a60 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run.proto @@ -543,7 +558,6 @@ private ResultState(int value) { * * *
-   * 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.
@@ -566,7 +580,6 @@ public java.lang.String getName() {
    *
    *
    * 
-   * 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.
@@ -592,7 +605,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    *
    * 
-   * Output only.
    * The execution state of the ScanRun.
    * 
* @@ -606,7 +618,6 @@ public int getExecutionStateValue() { * * *
-   * Output only.
    * The execution state of the ScanRun.
    * 
* @@ -628,7 +639,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExec * * *
-   * Output only.
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
@@ -642,7 +652,6 @@ public int getResultStateValue() { * * *
-   * Output only.
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
@@ -664,7 +673,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultS * * *
-   * Output only.
    * The time at which the ScanRun started.
    * 
* @@ -677,7 +685,6 @@ public boolean hasStartTime() { * * *
-   * Output only.
    * The time at which the ScanRun started.
    * 
* @@ -690,7 +697,6 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-   * Output only.
    * The time at which the ScanRun started.
    * 
* @@ -706,7 +712,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-   * Output only.
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
@@ -720,7 +725,6 @@ public boolean hasEndTime() { * * *
-   * Output only.
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
@@ -734,7 +738,6 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
-   * Output only.
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
@@ -751,7 +754,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * *
-   * 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.
    * 
@@ -768,7 +770,6 @@ public long getUrlsCrawledCount() { * * *
-   * 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
@@ -787,7 +788,6 @@ public long getUrlsTestedCount() {
    *
    *
    * 
-   * Output only.
    * Whether the scan run has found any vulnerabilities.
    * 
* @@ -803,7 +803,6 @@ public boolean getHasVulnerabilities() { * * *
-   * 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.
@@ -822,7 +821,6 @@ public int getProgressPercent() {
    *
    *
    * 
-   * 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.
    * 
@@ -836,7 +834,6 @@ public boolean hasErrorTrace() { * * *
-   * 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.
    * 
@@ -852,7 +849,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrac * * *
-   * 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.
    * 
@@ -871,7 +867,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrac * * *
-   * Output only.
    * A list of warnings, if such are encountered during this scan run.
    * 
* @@ -886,7 +881,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrac * * *
-   * Output only.
    * A list of warnings, if such are encountered during this scan run.
    * 
* @@ -902,7 +896,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrac * * *
-   * Output only.
    * A list of warnings, if such are encountered during this scan run.
    * 
* @@ -916,7 +909,6 @@ public int getWarningTracesCount() { * * *
-   * Output only.
    * A list of warnings, if such are encountered during this scan run.
    * 
* @@ -931,7 +923,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarning * * *
-   * Output only.
    * A list of warnings, if such are encountered during this scan run.
    * 
* @@ -1511,7 +1502,6 @@ public Builder mergeFrom( * * *
-     * 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.
@@ -1534,7 +1524,6 @@ public java.lang.String getName() {
      *
      *
      * 
-     * 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.
@@ -1557,7 +1546,6 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * 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.
@@ -1578,7 +1566,6 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * 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.
@@ -1596,7 +1583,6 @@ public Builder clearName() {
      *
      *
      * 
-     * 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.
@@ -1620,7 +1606,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Output only.
      * The execution state of the ScanRun.
      * 
* @@ -1634,7 +1619,6 @@ public int getExecutionStateValue() { * * *
-     * Output only.
      * The execution state of the ScanRun.
      * 
* @@ -1650,7 +1634,6 @@ public Builder setExecutionStateValue(int value) { * * *
-     * Output only.
      * The execution state of the ScanRun.
      * 
* @@ -1670,7 +1653,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExec * * *
-     * Output only.
      * The execution state of the ScanRun.
      * 
* @@ -1691,7 +1673,6 @@ public Builder setExecutionState( * * *
-     * Output only.
      * The execution state of the ScanRun.
      * 
* @@ -1710,7 +1691,6 @@ public Builder clearExecutionState() { * * *
-     * Output only.
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
@@ -1724,7 +1704,6 @@ public int getResultStateValue() { * * *
-     * Output only.
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
@@ -1740,7 +1719,6 @@ public Builder setResultStateValue(int value) { * * *
-     * Output only.
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
@@ -1759,7 +1737,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultS * * *
-     * Output only.
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
@@ -1780,7 +1757,6 @@ public Builder setResultState( * * *
-     * Output only.
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
@@ -1804,7 +1780,6 @@ public Builder clearResultState() { * * *
-     * Output only.
      * The time at which the ScanRun started.
      * 
* @@ -1817,7 +1792,6 @@ public boolean hasStartTime() { * * *
-     * Output only.
      * The time at which the ScanRun started.
      * 
* @@ -1834,7 +1808,6 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-     * Output only.
      * The time at which the ScanRun started.
      * 
* @@ -1857,7 +1830,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only.
      * The time at which the ScanRun started.
      * 
* @@ -1877,7 +1849,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu * * *
-     * Output only.
      * The time at which the ScanRun started.
      * 
* @@ -1902,7 +1873,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only.
      * The time at which the ScanRun started.
      * 
* @@ -1923,7 +1893,6 @@ public Builder clearStartTime() { * * *
-     * Output only.
      * The time at which the ScanRun started.
      * 
* @@ -1938,7 +1907,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { * * *
-     * Output only.
      * The time at which the ScanRun started.
      * 
* @@ -1955,7 +1923,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * Output only.
      * The time at which the ScanRun started.
      * 
* @@ -1988,7 +1955,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * Output only.
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
@@ -2002,7 +1968,6 @@ public boolean hasEndTime() { * * *
-     * Output only.
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
@@ -2020,7 +1985,6 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
-     * Output only.
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
@@ -2044,7 +2008,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only.
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
@@ -2065,7 +2028,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) * * *
-     * Output only.
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
@@ -2091,7 +2053,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only.
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
@@ -2113,7 +2074,6 @@ public Builder clearEndTime() { * * *
-     * Output only.
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
@@ -2129,7 +2089,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { * * *
-     * Output only.
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
@@ -2147,7 +2106,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * *
-     * Output only.
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
@@ -2176,7 +2134,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * *
-     * 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.
      * 
@@ -2190,7 +2147,6 @@ public long getUrlsCrawledCount() { * * *
-     * 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.
      * 
@@ -2207,7 +2163,6 @@ public Builder setUrlsCrawledCount(long value) { * * *
-     * 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.
      * 
@@ -2226,7 +2181,6 @@ public Builder clearUrlsCrawledCount() { * * *
-     * 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
@@ -2242,7 +2196,6 @@ public long getUrlsTestedCount() {
      *
      *
      * 
-     * 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
@@ -2261,7 +2214,6 @@ public Builder setUrlsTestedCount(long value) {
      *
      *
      * 
-     * 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
@@ -2282,7 +2234,6 @@ public Builder clearUrlsTestedCount() {
      *
      *
      * 
-     * Output only.
      * Whether the scan run has found any vulnerabilities.
      * 
* @@ -2295,7 +2246,6 @@ public boolean getHasVulnerabilities() { * * *
-     * Output only.
      * Whether the scan run has found any vulnerabilities.
      * 
* @@ -2311,7 +2261,6 @@ public Builder setHasVulnerabilities(boolean value) { * * *
-     * Output only.
      * Whether the scan run has found any vulnerabilities.
      * 
* @@ -2329,7 +2278,6 @@ public Builder clearHasVulnerabilities() { * * *
-     * 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.
@@ -2345,7 +2293,6 @@ public int getProgressPercent() {
      *
      *
      * 
-     * 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.
@@ -2364,7 +2311,6 @@ public Builder setProgressPercent(int value) {
      *
      *
      * 
-     * 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.
@@ -2390,7 +2336,6 @@ public Builder clearProgressPercent() {
      *
      *
      * 
-     * 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.
      * 
@@ -2404,7 +2349,6 @@ public boolean hasErrorTrace() { * * *
-     * 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.
      * 
@@ -2424,7 +2368,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrac * * *
-     * 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.
      * 
@@ -2449,7 +2392,6 @@ public Builder setErrorTrace( * * *
-     * 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.
      * 
@@ -2471,7 +2413,6 @@ public Builder setErrorTrace( * * *
-     * 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.
      * 
@@ -2500,7 +2441,6 @@ public Builder mergeErrorTrace( * * *
-     * 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.
      * 
@@ -2522,7 +2462,6 @@ public Builder clearErrorTrace() { * * *
-     * 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.
      * 
@@ -2539,7 +2478,6 @@ public Builder clearErrorTrace() { * * *
-     * 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.
      * 
@@ -2560,7 +2498,6 @@ public Builder clearErrorTrace() { * * *
-     * 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.
      * 
@@ -2606,7 +2543,6 @@ private void ensureWarningTracesIsMutable() { * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2626,7 +2562,6 @@ private void ensureWarningTracesIsMutable() { * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2645,7 +2580,6 @@ public int getWarningTracesCount() { * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2665,7 +2599,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarning * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2691,7 +2624,6 @@ public Builder setWarningTraces( * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2715,7 +2647,6 @@ public Builder setWarningTraces( * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2741,7 +2672,6 @@ public Builder addWarningTraces( * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2767,7 +2697,6 @@ public Builder addWarningTraces( * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2790,7 +2719,6 @@ public Builder addWarningTraces( * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2814,7 +2742,6 @@ public Builder addWarningTraces( * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2838,7 +2765,6 @@ public Builder addAllWarningTraces( * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2860,7 +2786,6 @@ public Builder clearWarningTraces() { * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2882,7 +2807,6 @@ public Builder removeWarningTraces(int index) { * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2898,7 +2822,6 @@ public Builder removeWarningTraces(int index) { * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2918,7 +2841,6 @@ public Builder removeWarningTraces(int index) { * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2939,7 +2861,6 @@ public Builder removeWarningTraces(int index) { * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2957,7 +2878,6 @@ public Builder removeWarningTraces(int index) { * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* @@ -2976,7 +2896,6 @@ public Builder removeWarningTraces(int index) { * * *
-     * Output only.
      * A list of warnings, if such are encountered during this scan run.
      * 
* diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java index fc2bc47b..04460373 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto @@ -195,7 +210,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
-     * the most common HTTP error code encountered during the scan.
+     * most common HTTP error code encountered during the scan.
      * 
* * TOO_MANY_HTTP_ERRORS = 6; @@ -273,7 +288,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
-     * the most common HTTP error code encountered during the scan.
+     * most common HTTP error code encountered during the scan.
      * 
* * TOO_MANY_HTTP_ERRORS = 6; @@ -367,7 +382,6 @@ private Code(int value) { * * *
-   * Output only.
    * Indicates the error reason code.
    * 
* @@ -380,7 +394,6 @@ public int getCodeValue() { * * *
-   * Output only.
    * Indicates the error reason code.
    * 
* @@ -401,7 +414,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode * * *
-   * 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.
@@ -416,7 +428,6 @@ public boolean hasScanConfigError() {
    *
    *
    * 
-   * 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.
@@ -433,7 +444,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigE
    *
    *
    * 
-   * 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.
@@ -452,7 +462,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigE
    *
    *
    * 
-   * 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.
@@ -837,7 +846,6 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Output only.
      * Indicates the error reason code.
      * 
* @@ -850,7 +858,6 @@ public int getCodeValue() { * * *
-     * Output only.
      * Indicates the error reason code.
      * 
* @@ -865,7 +872,6 @@ public Builder setCodeValue(int value) { * * *
-     * Output only.
      * Indicates the error reason code.
      * 
* @@ -883,7 +889,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode * * *
-     * Output only.
      * Indicates the error reason code.
      * 
* @@ -903,7 +908,6 @@ public Builder setCode( * * *
-     * Output only.
      * Indicates the error reason code.
      * 
* @@ -926,7 +930,6 @@ public Builder clearCode() { * * *
-     * 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.
@@ -941,7 +944,6 @@ public boolean hasScanConfigError() {
      *
      *
      * 
-     * 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.
@@ -962,7 +964,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigE
      *
      *
      * 
-     * 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.
@@ -988,7 +989,6 @@ public Builder setScanConfigError(
      *
      *
      * 
-     * 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.
@@ -1011,7 +1011,6 @@ public Builder setScanConfigError(
      *
      *
      * 
-     * 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.
@@ -1042,7 +1041,6 @@ public Builder mergeScanConfigError(
      *
      *
      * 
-     * 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.
@@ -1065,7 +1063,6 @@ public Builder clearScanConfigError() {
      *
      *
      * 
-     * 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.
@@ -1083,7 +1080,6 @@ public Builder clearScanConfigError() {
      *
      *
      * 
-     * 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.
@@ -1105,7 +1101,6 @@ public Builder clearScanConfigError() {
      *
      *
      * 
-     * 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.
@@ -1135,7 +1130,6 @@ public Builder clearScanConfigError() {
      *
      *
      * 
-     * 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.
@@ -1150,7 +1144,6 @@ public int getMostCommonHttpErrorCode() {
      *
      *
      * 
-     * 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.
@@ -1168,7 +1161,6 @@ public Builder setMostCommonHttpErrorCode(int value) {
      *
      *
      * 
-     * 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.
diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java
index aec57045..a729f8c0 100644
--- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java
+++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java
@@ -1,3 +1,18 @@
+/*
+ * 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
+ *
+ *     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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto
 
@@ -12,7 +27,6 @@ public interface ScanRunErrorTraceOrBuilder
    *
    *
    * 
-   * Output only.
    * Indicates the error reason code.
    * 
* @@ -23,7 +37,6 @@ public interface ScanRunErrorTraceOrBuilder * * *
-   * Output only.
    * Indicates the error reason code.
    * 
* @@ -35,7 +48,6 @@ public interface ScanRunErrorTraceOrBuilder * * *
-   * 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.
@@ -48,7 +60,6 @@ public interface ScanRunErrorTraceOrBuilder
    *
    *
    * 
-   * 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.
@@ -61,7 +72,6 @@ public interface ScanRunErrorTraceOrBuilder
    *
    *
    * 
-   * 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.
@@ -75,7 +85,6 @@ public interface ScanRunErrorTraceOrBuilder
    *
    *
    * 
-   * 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.
diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java
index 8def4211..8a4668ca 100644
--- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java
+++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java
@@ -1,3 +1,18 @@
+/*
+ * 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
+ *
+ *     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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto
 
diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java
index 89d44e7b..c55c1c25 100644
--- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java
+++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java
@@ -1,15 +1,17 @@
 /*
- * Copyright 2018 Google LLC
+ * 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
+ * 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
+ *     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.
+ * 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.
  */
 
 package com.google.cloud.websecurityscanner.v1beta;
diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java
index 96e91f2c..2a67bbad 100644
--- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java
+++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java
@@ -1,3 +1,18 @@
+/*
+ * 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
+ *
+ *     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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/websecurityscanner/v1beta/scan_run.proto
 
@@ -12,7 +27,6 @@ public interface ScanRunOrBuilder
    *
    *
    * 
-   * 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.
@@ -25,7 +39,6 @@ public interface ScanRunOrBuilder
    *
    *
    * 
-   * 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.
@@ -39,7 +52,6 @@ public interface ScanRunOrBuilder
    *
    *
    * 
-   * Output only.
    * The execution state of the ScanRun.
    * 
* @@ -51,7 +63,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * The execution state of the ScanRun.
    * 
* @@ -64,7 +75,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
@@ -76,7 +86,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
@@ -89,7 +98,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * The time at which the ScanRun started.
    * 
* @@ -100,7 +108,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * The time at which the ScanRun started.
    * 
* @@ -111,7 +118,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * The time at which the ScanRun started.
    * 
* @@ -123,7 +129,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
@@ -135,7 +140,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
@@ -147,7 +151,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
@@ -160,7 +163,6 @@ public interface ScanRunOrBuilder * * *
-   * 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.
    * 
@@ -173,7 +175,6 @@ public interface ScanRunOrBuilder * * *
-   * 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
@@ -188,7 +189,6 @@ public interface ScanRunOrBuilder
    *
    *
    * 
-   * Output only.
    * Whether the scan run has found any vulnerabilities.
    * 
* @@ -200,7 +200,6 @@ public interface ScanRunOrBuilder * * *
-   * 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.
@@ -215,7 +214,6 @@ public interface ScanRunOrBuilder
    *
    *
    * 
-   * 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.
    * 
@@ -227,7 +225,6 @@ public interface ScanRunOrBuilder * * *
-   * 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.
    * 
@@ -239,7 +236,6 @@ public interface ScanRunOrBuilder * * *
-   * 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.
    * 
@@ -252,7 +248,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * A list of warnings, if such are encountered during this scan run.
    * 
* @@ -265,7 +260,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * A list of warnings, if such are encountered during this scan run.
    * 
* @@ -277,7 +271,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * A list of warnings, if such are encountered during this scan run.
    * 
* @@ -289,7 +282,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * A list of warnings, if such are encountered during this scan run.
    * 
* @@ -302,7 +294,6 @@ public interface ScanRunOrBuilder * * *
-   * Output only.
    * A list of warnings, if such are encountered during this scan run.
    * 
* diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java index a9a0e5aa..8088924b 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run.proto @@ -27,35 +42,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n5google/cloud/websecurityscanner/v1beta" + "/scan_run.proto\022&google.cloud.websecurit" - + "yscanner.v1beta\032\034google/api/annotations." - + "proto\032Agoogle/cloud/websecurityscanner/v" - + "1beta/scan_run_error_trace.proto\032Cgoogle" - + "/cloud/websecurityscanner/v1beta/scan_ru" - + "n_warning_trace.proto\032\037google/protobuf/t" - + "imestamp.proto\"\340\005\n\007ScanRun\022\014\n\004name\030\001 \001(\t" - + "\022W\n\017execution_state\030\002 \001(\0162>.google.cloud" - + ".websecurityscanner.v1beta.ScanRun.Execu" - + "tionState\022Q\n\014result_state\030\003 \001(\0162;.google" - + ".cloud.websecurityscanner.v1beta.ScanRun" - + ".ResultState\022.\n\nstart_time\030\004 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022,\n\010end_time\030\005 \001(\0132\032" - + ".google.protobuf.Timestamp\022\032\n\022urls_crawl" - + "ed_count\030\006 \001(\003\022\031\n\021urls_tested_count\030\007 \001(" - + "\003\022\033\n\023has_vulnerabilities\030\010 \001(\010\022\030\n\020progre" - + "ss_percent\030\t \001(\005\022N\n\013error_trace\030\n \001(\01329." + + "yscanner.v1beta\032\031google/api/resource.pro" + + "to\032Agoogle/cloud/websecurityscanner/v1be" + + "ta/scan_run_error_trace.proto\032Cgoogle/cl" + + "oud/websecurityscanner/v1beta/scan_run_w" + + "arning_trace.proto\032\037google/protobuf/time" + + "stamp.proto\"\322\006\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022W\n" + + "\017execution_state\030\002 \001(\0162>.google.cloud.we" + + "bsecurityscanner.v1beta.ScanRun.Executio" + + "nState\022Q\n\014result_state\030\003 \001(\0162;.google.cl" + + "oud.websecurityscanner.v1beta.ScanRun.Re" + + "sultState\022.\n\nstart_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022,\n\010end_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022\032\n\022urls_crawled_" + + "count\030\006 \001(\003\022\031\n\021urls_tested_count\030\007 \001(\003\022\033" + + "\n\023has_vulnerabilities\030\010 \001(\010\022\030\n\020progress_" + + "percent\030\t \001(\005\022N\n\013error_trace\030\n \001(\01329.goo" + + "gle.cloud.websecurityscanner.v1beta.Scan" + + "RunErrorTrace\022S\n\016warning_traces\030\013 \003(\0132;." + "google.cloud.websecurityscanner.v1beta.S" - + "canRunErrorTrace\022S\n\016warning_traces\030\013 \003(\013" - + "2;.google.cloud.websecurityscanner.v1bet" - + "a.ScanRunWarningTrace\"Y\n\016ExecutionState\022" - + "\037\n\033EXECUTION_STATE_UNSPECIFIED\020\000\022\n\n\006QUEU" - + "ED\020\001\022\014\n\010SCANNING\020\002\022\014\n\010FINISHED\020\003\"O\n\013Resu" - + "ltState\022\034\n\030RESULT_STATE_UNSPECIFIED\020\000\022\013\n" - + "\007SUCCESS\020\001\022\t\n\005ERROR\020\002\022\n\n\006KILLED\020\003B\277\001\n*co" - + "m.google.cloud.websecurityscanner.v1beta" - + "B\014ScanRunProtoP\001ZXgoogle.golang.org/genp" - + "roto/googleapis/cloud/websecurityscanner" - + "/v1beta;websecurityscanner\312\002&Google\\Clou" - + "d\\WebSecurityScanner\\V1betab\006proto3" + + "canRunWarningTrace\"Y\n\016ExecutionState\022\037\n\033" + + "EXECUTION_STATE_UNSPECIFIED\020\000\022\n\n\006QUEUED\020" + + "\001\022\014\n\010SCANNING\020\002\022\014\n\010FINISHED\020\003\"O\n\013ResultS" + + "tate\022\034\n\030RESULT_STATE_UNSPECIFIED\020\000\022\013\n\007SU" + + "CCESS\020\001\022\t\n\005ERROR\020\002\022\n\n\006KILLED\020\003:p\352Am\n)web" + + "securityscanner.googleapis.com/ScanRun\022@" + + "projects/{project}/scanConfigs/{scan_con" + + "fig}/scanRuns/{scan_run}B\277\001\n*com.google." + + "cloud.websecurityscanner.v1betaB\014ScanRun" + + "ProtoP\001ZXgoogle.golang.org/genproto/goog" + + "leapis/cloud/websecurityscanner/v1beta;w" + + "ebsecurityscanner\312\002&Google\\Cloud\\WebSecu" + + "rityScanner\\V1betab\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -68,7 +86,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(), com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -92,7 +110,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "ErrorTrace", "WarningTraces", }); - com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(); com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java index e8563fb6..0fbea983 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto @@ -99,7 +114,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Output only.
    * Defines a warning message code.
-   * Next id: 5
+   * Next id: 6
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code} @@ -302,7 +317,6 @@ private Code(int value) { * * *
-   * Output only.
    * Indicates the warning code.
    * 
* @@ -315,7 +329,6 @@ public int getCodeValue() { * * *
-   * Output only.
    * Indicates the warning code.
    * 
* @@ -662,7 +675,6 @@ public Builder mergeFrom( * * *
-     * Output only.
      * Indicates the warning code.
      * 
* @@ -675,7 +687,6 @@ public int getCodeValue() { * * *
-     * Output only.
      * Indicates the warning code.
      * 
* @@ -690,7 +701,6 @@ public Builder setCodeValue(int value) { * * *
-     * Output only.
      * Indicates the warning code.
      * 
* @@ -708,7 +718,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCo * * *
-     * Output only.
      * Indicates the warning code.
      * 
* @@ -728,7 +737,6 @@ public Builder setCode( * * *
-     * Output only.
      * Indicates the warning code.
      * 
* diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java index 2bd8f88e..8bc66a6f 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto @@ -12,7 +27,6 @@ public interface ScanRunWarningTraceOrBuilder * * *
-   * Output only.
    * Indicates the warning code.
    * 
* @@ -23,7 +37,6 @@ public interface ScanRunWarningTraceOrBuilder * * *
-   * Output only.
    * Indicates the warning code.
    * 
* diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java index c4663893..1c18c091 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java index 9a7c5f7a..82a073ef 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -97,12 +112,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The resource name of the ScanConfig to be used. The name follows the
+   * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -119,12 +135,13 @@ public java.lang.String getName() { * * *
-   * Required.
-   * The resource name of the ScanConfig to be used. The name follows the
+   * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -465,12 +482,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The resource name of the ScanConfig to be used. The name follows the
+     * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -487,12 +505,13 @@ public java.lang.String getName() { * * *
-     * Required.
-     * The resource name of the ScanConfig to be used. The name follows the
+     * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -509,12 +528,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required.
-     * The resource name of the ScanConfig to be used. The name follows the
+     * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -529,12 +549,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Required.
-     * The resource name of the ScanConfig to be used. The name follows the
+     * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -546,12 +567,13 @@ public Builder clearName() { * * *
-     * Required.
-     * The resource name of the ScanConfig to be used. The name follows the
+     * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java index 366e1201..61c99027 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,24 +27,26 @@ public interface StartScanRunRequestOrBuilder * * *
-   * Required.
-   * The resource name of the ScanConfig to be used. The name follows the
+   * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Required.
-   * The resource name of the ScanConfig to be used. The name follows the
+   * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java index 418e3a68..ab9cd1b8 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -97,13 +112,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The resource name of the ScanRun to be stopped. The name follows the
+   * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -120,13 +136,14 @@ public java.lang.String getName() { * * *
-   * Required.
-   * The resource name of the ScanRun to be stopped. The name follows the
+   * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -467,13 +484,14 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The resource name of the ScanRun to be stopped. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -490,13 +508,14 @@ public java.lang.String getName() { * * *
-     * Required.
-     * The resource name of the ScanRun to be stopped. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -513,13 +532,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required.
-     * The resource name of the ScanRun to be stopped. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -534,13 +554,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Required.
-     * The resource name of the ScanRun to be stopped. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -552,13 +573,14 @@ public Builder clearName() { * * *
-     * Required.
-     * The resource name of the ScanRun to be stopped. The name follows the
+     * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java index fb9eb0f8..73830c58 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,26 +27,28 @@ public interface StopScanRunRequestOrBuilder * * *
-   * Required.
-   * The resource name of the ScanRun to be stopped. The name follows the
+   * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Required.
-   * The resource name of the ScanRun to be stopped. The name follows the
+   * 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java index 257c0956..563113de 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -120,13 +135,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The ScanConfig to be updated. The name field must be set to identify the
+   * 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.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasScanConfig() { return scanConfig_ != null; @@ -135,13 +151,14 @@ public boolean hasScanConfig() { * * *
-   * Required.
-   * The ScanConfig to be updated. The name field must be set to identify the
+   * 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.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { return scanConfig_ == null @@ -152,13 +169,14 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { * * *
-   * Required.
-   * The ScanConfig to be updated. The name field must be set to identify the
+   * 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.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { return getScanConfig(); @@ -170,13 +188,13 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon * * *
-   * Required.
-   * The update mask applies to the resource. For the `FieldMask` definition,
+   * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -185,13 +203,13 @@ public boolean hasUpdateMask() { * * *
-   * Required.
-   * The update mask applies to the resource. For the `FieldMask` definition,
+   * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -200,13 +218,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required.
-   * The update mask applies to the resource. For the `FieldMask` definition,
+   * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); @@ -589,13 +607,14 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The ScanConfig to be updated. The name field must be set to identify the
+     * 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.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; @@ -604,13 +623,14 @@ public boolean hasScanConfig() { * * *
-     * Required.
-     * The ScanConfig to be updated. The name field must be set to identify the
+     * 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.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { @@ -625,13 +645,14 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { * * *
-     * Required.
-     * The ScanConfig to be updated. The name field must be set to identify the
+     * 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.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -650,13 +671,14 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConf * * *
-     * Required.
-     * The ScanConfig to be updated. The name field must be set to identify the
+     * 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.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder builderForValue) { @@ -673,13 +695,14 @@ public Builder setScanConfig( * * *
-     * Required.
-     * The ScanConfig to be updated. The name field must be set to identify the
+     * 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.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -702,13 +725,14 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanCo * * *
-     * Required.
-     * The ScanConfig to be updated. The name field must be set to identify the
+     * 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.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -725,13 +749,14 @@ public Builder clearScanConfig() { * * *
-     * Required.
-     * The ScanConfig to be updated. The name field must be set to identify the
+     * 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.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConfigBuilder() { @@ -742,13 +767,14 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf * * *
-     * Required.
-     * The ScanConfig to be updated. The name field must be set to identify the
+     * 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.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { @@ -763,13 +789,14 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon * * *
-     * Required.
-     * The ScanConfig to be updated. The name field must be set to identify the
+     * 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.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.websecurityscanner.v1beta.ScanConfig, @@ -798,13 +825,13 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon * * *
-     * Required.
-     * The update mask applies to the resource. For the `FieldMask` definition,
+     * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -813,13 +840,13 @@ public boolean hasUpdateMask() { * * *
-     * Required.
-     * The update mask applies to the resource. For the `FieldMask` definition,
+     * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { @@ -834,13 +861,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required.
-     * The update mask applies to the resource. For the `FieldMask` definition,
+     * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -859,13 +886,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required.
-     * The update mask applies to the resource. For the `FieldMask` definition,
+     * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -881,13 +908,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required.
-     * The update mask applies to the resource. For the `FieldMask` definition,
+     * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -908,13 +935,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required.
-     * The update mask applies to the resource. For the `FieldMask` definition,
+     * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -931,13 +958,13 @@ public Builder clearUpdateMask() { * * *
-     * Required.
-     * The update mask applies to the resource. For the `FieldMask` definition,
+     * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -948,13 +975,13 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required.
-     * The update mask applies to the resource. For the `FieldMask` definition,
+     * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -969,13 +996,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required.
-     * The update mask applies to the resource. For the `FieldMask` definition,
+     * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java index 9627e532..9fffd83b 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -12,39 +27,42 @@ public interface UpdateScanConfigRequestOrBuilder * * *
-   * Required.
-   * The ScanConfig to be updated. The name field must be set to identify the
+   * 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.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasScanConfig(); /** * * *
-   * Required.
-   * The ScanConfig to be updated. The name field must be set to identify the
+   * 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.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(); /** * * *
-   * Required.
-   * The ScanConfig to be updated. The name field must be set to identify the
+   * 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.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder(); @@ -52,39 +70,39 @@ public interface UpdateScanConfigRequestOrBuilder * * *
-   * Required.
-   * The update mask applies to the resource. For the `FieldMask` definition,
+   * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasUpdateMask(); /** * * *
-   * Required.
-   * The update mask applies to the resource. For the `FieldMask` definition,
+   * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMask getUpdateMask(); /** * * *
-   * Required.
-   * The update mask applies to the resource. For the `FieldMask` definition,
+   * 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.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java index 23321d61..5eb14240 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java index 7de56e91..b82c7368 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java index c148ed83..761c04b6 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java index e235046c..8d76cb86 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java index da12d885..7bae5c92 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java index 08fbab7a..1df82af2 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java index 48ebbf94..74d511d1 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -96,123 +111,147 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\nAgoogle/cloud/websecurityscanner/v1beta" + "/web_security_scanner.proto\022&google.clou" + "d.websecurityscanner.v1beta\032\034google/api/" - + "annotations.proto\0328google/cloud/websecur" - + "ityscanner/v1beta/crawled_url.proto\0324goo" - + "gle/cloud/websecurityscanner/v1beta/find" - + "ing.proto\032?google/cloud/websecurityscann" - + "er/v1beta/finding_type_stats.proto\0328goog" - + "le/cloud/websecurityscanner/v1beta/scan_" - + "config.proto\0325google/cloud/websecuritysc" - + "anner/v1beta/scan_run.proto\032\033google/prot" - + "obuf/empty.proto\032 google/protobuf/field_" - + "mask.proto\"r\n\027CreateScanConfigRequest\022\016\n" - + "\006parent\030\001 \001(\t\022G\n\013scan_config\030\002 \001(\01322.goo" - + "gle.cloud.websecurityscanner.v1beta.Scan" - + "Config\"\'\n\027DeleteScanConfigRequest\022\014\n\004nam" - + "e\030\001 \001(\t\"$\n\024GetScanConfigRequest\022\014\n\004name\030" - + "\001 \001(\t\"O\n\026ListScanConfigsRequest\022\016\n\006paren" - + "t\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size" - + "\030\003 \001(\005\"\223\001\n\027UpdateScanConfigRequest\022G\n\013sc" - + "an_config\030\002 \001(\01322.google.cloud.websecuri" - + "tyscanner.v1beta.ScanConfig\022/\n\013update_ma" - + "sk\030\003 \001(\0132\032.google.protobuf.FieldMask\"|\n\027" - + "ListScanConfigsResponse\022H\n\014scan_configs\030" - + "\001 \003(\01322.google.cloud.websecurityscanner." - + "v1beta.ScanConfig\022\027\n\017next_page_token\030\002 \001" - + "(\t\"#\n\023StartScanRunRequest\022\014\n\004name\030\001 \001(\t\"" - + "!\n\021GetScanRunRequest\022\014\n\004name\030\001 \001(\t\"L\n\023Li" - + "stScanRunsRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npag" - + "e_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"s\n\024List" - + "ScanRunsResponse\022B\n\tscan_runs\030\001 \003(\0132/.go" - + "ogle.cloud.websecurityscanner.v1beta.Sca" - + "nRun\022\027\n\017next_page_token\030\002 \001(\t\"\"\n\022StopSca" - + "nRunRequest\022\014\n\004name\030\001 \001(\t\"O\n\026ListCrawled" - + "UrlsRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_toke" - + "n\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"|\n\027ListCrawle" - + "dUrlsResponse\022H\n\014crawled_urls\030\001 \003(\01322.go" - + "ogle.cloud.websecurityscanner.v1beta.Cra" - + "wledUrl\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021GetF" - + "indingRequest\022\014\n\004name\030\001 \001(\t\"\\\n\023ListFindi" - + "ngsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001" - + "(\t\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(" - + "\005\"r\n\024ListFindingsResponse\022A\n\010findings\030\001 " - + "\003(\0132/.google.cloud.websecurityscanner.v1" - + "beta.Finding\022\027\n\017next_page_token\030\002 \001(\t\"-\n" - + "\033ListFindingTypeStatsRequest\022\016\n\006parent\030\001" - + " \001(\t\"t\n\034ListFindingTypeStatsResponse\022T\n\022" - + "finding_type_stats\030\001 \003(\01328.google.cloud." - + "websecurityscanner.v1beta.FindingTypeSta" - + "ts2\252\024\n\022WebSecurityScanner\022\305\001\n\020CreateScan" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\0328google/cloud/web" + + "securityscanner/v1beta/crawled_url.proto" + + "\0324google/cloud/websecurityscanner/v1beta" + + "/finding.proto\032?google/cloud/websecurity" + + "scanner/v1beta/finding_type_stats.proto\032" + + "8google/cloud/websecurityscanner/v1beta/" + + "scan_config.proto\0325google/cloud/websecur" + + "ityscanner/v1beta/scan_run.proto\032\033google" + + "/protobuf/empty.proto\032 google/protobuf/f" + + "ield_mask.proto\"\254\001\n\027CreateScanConfigRequ" + + "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" + + "cemanager.googleapis.com/Project\022L\n\013scan" + + "_config\030\002 \001(\01322.google.cloud.websecurity" + + "scanner.v1beta.ScanConfigB\003\340A\002\"]\n\027Delete" + + "ScanConfigRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n" + + ",websecurityscanner.googleapis.com/ScanC" + + "onfig\"Z\n\024GetScanConfigRequest\022B\n\004name\030\001 " + + "\001(\tB4\340A\002\372A.\n,websecurityscanner.googleap" + + "is.com/ScanConfig\"\204\001\n\026ListScanConfigsReq" + + "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" + + "rcemanager.googleapis.com/Project\022\022\n\npag" + + "e_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\235\001\n\027Upd" + + "ateScanConfigRequest\022L\n\013scan_config\030\002 \001(" + + "\01322.google.cloud.websecurityscanner.v1be" + + "ta.ScanConfigB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\027List" + + "ScanConfigsResponse\022H\n\014scan_configs\030\001 \003(" + + "\01322.google.cloud.websecurityscanner.v1be" + + "ta.ScanConfig\022\027\n\017next_page_token\030\002 \001(\t\"Y" + + "\n\023StartScanRunRequest\022B\n\004name\030\001 \001(\tB4\340A\002" + + "\372A.\n,websecurityscanner.googleapis.com/S" + + "canConfig\"T\n\021GetScanRunRequest\022?\n\004name\030\001" + + " \001(\tB1\340A\002\372A+\n)websecurityscanner.googlea" + + "pis.com/ScanRun\"\202\001\n\023ListScanRunsRequest\022" + + "D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,websecurityscan" + + "ner.googleapis.com/ScanConfig\022\022\n\npage_to" + + "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"s\n\024ListScan" + + "RunsResponse\022B\n\tscan_runs\030\001 \003(\0132/.google" + + ".cloud.websecurityscanner.v1beta.ScanRun" + + "\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022StopScanRun" + + "Request\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuri" + + "tyscanner.googleapis.com/ScanRun\"\202\001\n\026Lis" + + "tCrawledUrlsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002" + + "\372A+\n)websecurityscanner.googleapis.com/S" + + "canRun\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030" + + "\003 \001(\005\"|\n\027ListCrawledUrlsResponse\022H\n\014craw" + + "led_urls\030\001 \003(\01322.google.cloud.websecurit" + + "yscanner.v1beta.CrawledUrl\022\027\n\017next_page_" + + "token\030\002 \001(\t\"T\n\021GetFindingRequest\022?\n\004name" + + "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" + + "eapis.com/Finding\"\224\001\n\023ListFindingsReques" + + "t\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websecuritysc" + + "anner.googleapis.com/ScanRun\022\023\n\006filter\030\002" + + " \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage_si" + + "ze\030\004 \001(\005\"r\n\024ListFindingsResponse\022A\n\010find" + + "ings\030\001 \003(\0132/.google.cloud.websecuritysca" + + "nner.v1beta.Finding\022\027\n\017next_page_token\030\002" + + " \001(\t\"`\n\033ListFindingTypeStatsRequest\022A\n\006p" + + "arent\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner." + + "googleapis.com/ScanRun\"t\n\034ListFindingTyp" + + "eStatsResponse\022T\n\022finding_type_stats\030\001 \003" + + "(\01328.google.cloud.websecurityscanner.v1b" + + "eta.FindingTypeStats2\216\026\n\022WebSecurityScan" + + "ner\022\332\001\n\020CreateScanConfig\022?.google.cloud." + + "websecurityscanner.v1beta.CreateScanConf" + + "igRequest\0322.google.cloud.websecurityscan" + + "ner.v1beta.ScanConfig\"Q\202\323\344\223\0026\"\'/v1beta/{" + + "parent=projects/*}/scanConfigs:\013scan_con" + + "fig\332A\022parent,scan_config\022\243\001\n\020DeleteScanC" + + "onfig\022?.google.cloud.websecurityscanner." + + "v1beta.DeleteScanConfigRequest\032\026.google." + + "protobuf.Empty\"6\202\323\344\223\002)*\'/v1beta/{name=pr" + + "ojects/*/scanConfigs/*}\332A\004name\022\271\001\n\rGetSc" + + "anConfig\022<.google.cloud.websecurityscann" + + "er.v1beta.GetScanConfigRequest\0322.google." + + "cloud.websecurityscanner.v1beta.ScanConf" + + "ig\"6\202\323\344\223\002)\022\'/v1beta/{name=projects/*/sca" + + "nConfigs/*}\332A\004name\022\314\001\n\017ListScanConfigs\022>" + + ".google.cloud.websecurityscanner.v1beta." + + "ListScanConfigsRequest\032?.google.cloud.we" + + "bsecurityscanner.v1beta.ListScanConfigsR" + + "esponse\"8\202\323\344\223\002)\022\'/v1beta/{parent=project" + + "s/*}/scanConfigs\332A\006parent\022\353\001\n\020UpdateScan" + "Config\022?.google.cloud.websecurityscanner" - + ".v1beta.CreateScanConfigRequest\0322.google" + + ".v1beta.UpdateScanConfigRequest\0322.google" + ".cloud.websecurityscanner.v1beta.ScanCon" - + "fig\"<\202\323\344\223\0026\"\'/v1beta/{parent=projects/*}" - + "/scanConfigs:\013scan_config\022\234\001\n\020DeleteScan" - + "Config\022?.google.cloud.websecurityscanner" - + ".v1beta.DeleteScanConfigRequest\032\026.google" - + ".protobuf.Empty\"/\202\323\344\223\002)*\'/v1beta/{name=p" - + "rojects/*/scanConfigs/*}\022\262\001\n\rGetScanConf" - + "ig\022<.google.cloud.websecurityscanner.v1b" - + "eta.GetScanConfigRequest\0322.google.cloud." - + "websecurityscanner.v1beta.ScanConfig\"/\202\323" - + "\344\223\002)\022\'/v1beta/{name=projects/*/scanConfi" - + "gs/*}\022\303\001\n\017ListScanConfigs\022>.google.cloud" - + ".websecurityscanner.v1beta.ListScanConfi" - + "gsRequest\032?.google.cloud.websecurityscan" - + "ner.v1beta.ListScanConfigsResponse\"/\202\323\344\223" - + "\002)\022\'/v1beta/{parent=projects/*}/scanConf" - + "igs\022\321\001\n\020UpdateScanConfig\022?.google.cloud." - + "websecurityscanner.v1beta.UpdateScanConf" - + "igRequest\0322.google.cloud.websecurityscan" - + "ner.v1beta.ScanConfig\"H\202\323\344\223\002B23/v1beta/{" - + "scan_config.name=projects/*/scanConfigs/" - + "*}:\013scan_config\022\266\001\n\014StartScanRun\022;.googl" - + "e.cloud.websecurityscanner.v1beta.StartS" - + "canRunRequest\032/.google.cloud.websecurity" - + "scanner.v1beta.ScanRun\"8\202\323\344\223\0022\"-/v1beta/" - + "{name=projects/*/scanConfigs/*}:start:\001*" - + "\022\264\001\n\nGetScanRun\0229.google.cloud.websecuri" - + "tyscanner.v1beta.GetScanRunRequest\032/.goo" - + "gle.cloud.websecurityscanner.v1beta.Scan" - + "Run\":\202\323\344\223\0024\0222/v1beta/{name=projects/*/sc" - + "anConfigs/*/scanRuns/*}\022\305\001\n\014ListScanRuns" + + "fig\"b\202\323\344\223\002B23/v1beta/{scan_config.name=p" + + "rojects/*/scanConfigs/*}:\013scan_config\332A\027" + + "scan_config,update_mask\022\275\001\n\014StartScanRun" + "\022;.google.cloud.websecurityscanner.v1bet" - + "a.ListScanRunsRequest\032<.google.cloud.web" - + "securityscanner.v1beta.ListScanRunsRespo" - + "nse\":\202\323\344\223\0024\0222/v1beta/{parent=projects/*/" - + "scanConfigs/*}/scanRuns\022\276\001\n\013StopScanRun\022" - + ":.google.cloud.websecurityscanner.v1beta" - + ".StopScanRunRequest\032/.google.cloud.webse" - + "curityscanner.v1beta.ScanRun\"B\202\323\344\223\002<\"7/v" - + "1beta/{name=projects/*/scanConfigs/*/sca" - + "nRuns/*}:stop:\001*\022\334\001\n\017ListCrawledUrls\022>.g" - + "oogle.cloud.websecurityscanner.v1beta.Li" - + "stCrawledUrlsRequest\032?.google.cloud.webs" - + "ecurityscanner.v1beta.ListCrawledUrlsRes" - + "ponse\"H\202\323\344\223\002B\022@/v1beta/{parent=projects/" - + "*/scanConfigs/*/scanRuns/*}/crawledUrls\022" - + "\277\001\n\nGetFinding\0229.google.cloud.websecurit" - + "yscanner.v1beta.GetFindingRequest\032/.goog" - + "le.cloud.websecurityscanner.v1beta.Findi" - + "ng\"E\202\323\344\223\002?\022=/v1beta/{name=projects/*/sca" - + "nConfigs/*/scanRuns/*/findings/*}\022\320\001\n\014Li" - + "stFindings\022;.google.cloud.websecuritysca" - + "nner.v1beta.ListFindingsRequest\032<.google" - + ".cloud.websecurityscanner.v1beta.ListFin" - + "dingsResponse\"E\202\323\344\223\002?\022=/v1beta/{parent=p" - + "rojects/*/scanConfigs/*/scanRuns/*}/find" - + "ings\022\360\001\n\024ListFindingTypeStats\022C.google.c" - + "loud.websecurityscanner.v1beta.ListFindi" - + "ngTypeStatsRequest\032D.google.cloud.websec" - + "urityscanner.v1beta.ListFindingTypeStats" - + "Response\"M\202\323\344\223\002G\022E/v1beta/{parent=projec" - + "ts/*/scanConfigs/*/scanRuns/*}/findingTy" - + "peStatsB\312\001\n*com.google.cloud.websecurity" - + "scanner.v1betaB\027WebSecurityScannerProtoP" - + "\001ZXgoogle.golang.org/genproto/googleapis" - + "/cloud/websecurityscanner/v1beta;websecu" - + "rityscanner\312\002&Google\\Cloud\\WebSecuritySc" - + "anner\\V1betab\006proto3" + + "a.StartScanRunRequest\032/.google.cloud.web" + + "securityscanner.v1beta.ScanRun\"?\202\323\344\223\0022\"-" + + "/v1beta/{name=projects/*/scanConfigs/*}:" + + "start:\001*\332A\004name\022\273\001\n\nGetScanRun\0229.google." + + "cloud.websecurityscanner.v1beta.GetScanR" + + "unRequest\032/.google.cloud.websecurityscan" + + "ner.v1beta.ScanRun\"A\202\323\344\223\0024\0222/v1beta/{nam" + + "e=projects/*/scanConfigs/*/scanRuns/*}\332A" + + "\004name\022\316\001\n\014ListScanRuns\022;.google.cloud.we" + + "bsecurityscanner.v1beta.ListScanRunsRequ" + + "est\032<.google.cloud.websecurityscanner.v1" + + "beta.ListScanRunsResponse\"C\202\323\344\223\0024\0222/v1be" + + "ta/{parent=projects/*/scanConfigs/*}/sca" + + "nRuns\332A\006parent\022\305\001\n\013StopScanRun\022:.google." + + "cloud.websecurityscanner.v1beta.StopScan" + + "RunRequest\032/.google.cloud.websecuritysca" + + "nner.v1beta.ScanRun\"I\202\323\344\223\002<\"7/v1beta/{na" + + "me=projects/*/scanConfigs/*/scanRuns/*}:" + + "stop:\001*\332A\004name\022\345\001\n\017ListCrawledUrls\022>.goo" + + "gle.cloud.websecurityscanner.v1beta.List" + + "CrawledUrlsRequest\032?.google.cloud.websec" + + "urityscanner.v1beta.ListCrawledUrlsRespo" + + "nse\"Q\202\323\344\223\002B\022@/v1beta/{parent=projects/*/" + + "scanConfigs/*/scanRuns/*}/crawledUrls\332A\006" + + "parent\022\306\001\n\nGetFinding\0229.google.cloud.web" + + "securityscanner.v1beta.GetFindingRequest" + + "\032/.google.cloud.websecurityscanner.v1bet" + + "a.Finding\"L\202\323\344\223\002?\022=/v1beta/{name=project" + + "s/*/scanConfigs/*/scanRuns/*/findings/*}" + + "\332A\004name\022\340\001\n\014ListFindings\022;.google.cloud." + + "websecurityscanner.v1beta.ListFindingsRe" + + "quest\032<.google.cloud.websecurityscanner." + + "v1beta.ListFindingsResponse\"U\202\323\344\223\002?\022=/v1" + + "beta/{parent=projects/*/scanConfigs/*/sc" + + "anRuns/*}/findings\332A\rparent,filter\022\371\001\n\024L" + + "istFindingTypeStats\022C.google.cloud.webse" + + "curityscanner.v1beta.ListFindingTypeStat" + + "sRequest\032D.google.cloud.websecurityscann" + + "er.v1beta.ListFindingTypeStatsResponse\"V" + + "\202\323\344\223\002G\022E/v1beta/{parent=projects/*/scanC" + + "onfigs/*/scanRuns/*}/findingTypeStats\332A\006" + + "parent\032U\312A!websecurityscanner.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\312\001\n*com.google.cloud.webse" + + "curityscanner.v1betaB\027WebSecurityScanner" + + "ProtoP\001ZXgoogle.golang.org/genproto/goog" + + "leapis/cloud/websecurityscanner/v1beta;w" + + "ebsecurityscanner\312\002&Google\\Cloud\\WebSecu" + + "rityScanner\\V1betab\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -226,6 +265,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(), com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(), com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(), @@ -381,10 +423,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(); com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(); com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java index d5094a46..c8090a28 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java index 60314a88..e3c93c71 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java @@ -1,3 +1,18 @@ +/* + * 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 + * + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto index 92a0dc66..9316f8b2 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto @@ -17,8 +17,6 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; -import "google/api/annotations.proto"; - option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "CrawledUrlProto"; @@ -29,16 +27,13 @@ option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; // 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/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto index 5e25abb5..5f86c9c7 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; -import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/cloud/websecurityscanner/v1beta/finding_addon.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; @@ -29,79 +29,68 @@ option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; // A Finding resource represents a vulnerability instance identified during a // ScanRun. message Finding { - // Output only. + 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; - // Output only. // 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; - // 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; } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto index d2759b83..ea5989a1 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto @@ -17,8 +17,6 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; -import "google/api/annotations.proto"; - option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "FindingAddonProto"; diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto index cbace23d..97f4882d 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto @@ -17,8 +17,6 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; -import "google/api/annotations.proto"; - option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "FindingTypeStatsProto"; @@ -28,11 +26,9 @@ option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; // 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/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto index d698bb4f..c2b7dcb3 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto @@ -17,7 +17,8 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; -import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/websecurityscanner/v1beta/scan_run.proto"; import "google/protobuf/timestamp.proto"; @@ -29,36 +30,40 @@ option php_namespace = "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; + // Required. The user name of the Google account. + string username = 1 [(google.api.field_behavior) = REQUIRED]; - // Input only. - // Required. - // The password of the Google account. The credential is stored encrypted + // 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; + 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; + // Required. The user name of the custom account. + string username = 1 [(google.api.field_behavior) = REQUIRED]; - // Input only. - // Required. - // The password of the custom account. The credential is stored encrypted + // 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; + 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; + // Required. The login form URL of the website. + string login_url = 3 [(google.api.field_behavior) = REQUIRED]; } // Required. @@ -80,9 +85,8 @@ message ScanConfig { // immediately. google.protobuf.Timestamp schedule_time = 1; - // Required. - // The duration of time between executions in days. - int32 interval_duration_days = 2; + // 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. @@ -145,9 +149,8 @@ message ScanConfig { // generated by the system. string name = 1; - // Required. - // The user provided display name of the ScanConfig. - string display_name = 2; + // 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 @@ -155,9 +158,8 @@ message ScanConfig { // INVALID_ARGUMENT error. int32 max_qps = 3; - // Required. - // The starting URLs from which the scanner finds site pages. - repeated string starting_urls = 4; + // 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. diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto index c55c744c..a50bdcaf 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto @@ -30,7 +30,7 @@ option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; message ScanConfigError { // Output only. // Defines an error reason code. - // Next id: 43 + // Next id: 44 enum Code { option allow_alias = true; @@ -106,6 +106,9 @@ message ScanConfigError { // 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. @@ -174,11 +177,9 @@ message ScanConfigError { 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 diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto index 497edc39..84564c6e 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; -import "google/api/annotations.proto"; +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"; @@ -31,6 +31,11 @@ option php_namespace = "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 @@ -63,59 +68,48 @@ message ScanRun { 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/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto index 3d1a391d..248967d2 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto @@ -55,21 +55,18 @@ message ScanRunErrorTrace { // Indicates that a scan encountered numerous errors from the web site // pages. When available, most_common_http_error_code field indicates the - // the most common HTTP error code encountered during the scan. + // 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. diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto index e461ad0b..8207a029 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto @@ -29,7 +29,7 @@ option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; message ScanRunWarningTrace { // Output only. // Defines a warning message code. - // Next id: 5 + // Next id: 6 enum Code { // Default value is never used. CODE_UNSPECIFIED = 0; @@ -52,7 +52,6 @@ message ScanRunWarningTrace { BLOCKED_BY_IAP = 4; } - // Output only. // Indicates the warning code. Code code = 1; } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto index d328a286..9ea6207c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -18,6 +18,9 @@ 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"; @@ -36,12 +39,16 @@ option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; // 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. @@ -49,6 +56,7 @@ service WebSecurityScanner { option (google.api.http) = { delete: "/v1beta/{name=projects/*/scanConfigs/*}" }; + option (google.api.method_signature) = "name"; } // Gets a ScanConfig. @@ -56,6 +64,7 @@ service WebSecurityScanner { option (google.api.http) = { get: "/v1beta/{name=projects/*/scanConfigs/*}" }; + option (google.api.method_signature) = "name"; } // Lists ScanConfigs under a given project. @@ -63,6 +72,7 @@ service WebSecurityScanner { 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. @@ -71,6 +81,7 @@ service WebSecurityScanner { 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. @@ -79,6 +90,7 @@ service WebSecurityScanner { post: "/v1beta/{name=projects/*/scanConfigs/*}:start" body: "*" }; + option (google.api.method_signature) = "name"; } // Gets a ScanRun. @@ -86,6 +98,7 @@ service WebSecurityScanner { 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 @@ -94,6 +107,7 @@ service WebSecurityScanner { option (google.api.http) = { get: "/v1beta/{parent=projects/*/scanConfigs/*}/scanRuns" }; + option (google.api.method_signature) = "parent"; } // Stops a ScanRun. The stopped ScanRun is returned. @@ -102,6 +116,7 @@ service WebSecurityScanner { post: "/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*}:stop" body: "*" }; + option (google.api.method_signature) = "name"; } // List CrawledUrls under a given ScanRun. @@ -109,6 +124,7 @@ service WebSecurityScanner { option (google.api.http) = { get: "/v1beta/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls" }; + option (google.api.method_signature) = "parent"; } // Gets a Finding. @@ -116,6 +132,7 @@ service WebSecurityScanner { option (google.api.http) = { get: "/v1beta/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}" }; + option (google.api.method_signature) = "name"; } // List Findings under a given ScanRun. @@ -123,6 +140,7 @@ service WebSecurityScanner { 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. @@ -130,43 +148,59 @@ service WebSecurityScanner { 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 + // 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; + 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 + // Required. The resource name of the ScanConfig to be deleted. The name follows the // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. - string name = 1; + 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 + // Required. The resource name of the ScanConfig to be returned. The name follows the // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. - string name = 1; + 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 + // Required. The parent resource name, which should be a project resource name in the // format 'projects/{projectId}'. - string parent = 1; + 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. @@ -181,17 +215,15 @@ message ListScanConfigsRequest { // Request for the `UpdateScanConfigRequest` method. message UpdateScanConfigRequest { - // Required. - // The ScanConfig to be updated. The name field must be set to identify the + // 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; + ScanConfig scan_config = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. - // The update mask applies to the resource. For the `FieldMask` definition, + // 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.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; } // Response for the `ListScanConfigs` method. @@ -206,27 +238,39 @@ message ListScanConfigsResponse { // Request for the `StartScanRun` method. message StartScanRunRequest { - // Required. - // The resource name of the ScanConfig to be used. The name follows the + // Required. The resource name of the ScanConfig to be used. The name follows the // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. - string name = 1; + 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 + // 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; + 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 + // Required. The parent resource name, which should be a scan resource name in the // format 'projects/{projectId}/scanConfigs/{scanConfigId}'. - string parent = 1; + 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. @@ -251,20 +295,28 @@ message ListScanRunsResponse { // Request for the `StopScanRun` method. message StopScanRunRequest { - // Required. - // The resource name of the ScanRun to be stopped. The name follows the + // 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; + 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 + // 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; + 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. @@ -289,26 +341,34 @@ message ListCrawledUrlsResponse { // Request for the `GetFinding` method. message GetFindingRequest { - // Required. - // The resource name of the Finding to be returned. The name follows the + // 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; + 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 + // 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: + 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; + 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. @@ -333,11 +393,15 @@ message ListFindingsResponse { // Request for the `ListFindingTypeStats` method. message ListFindingTypeStatsRequest { - // Required. - // The parent resource name, which should be a scan run resource name in the + // 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; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "websecurityscanner.googleapis.com/ScanRun" + } + ]; } // Response for the `ListFindingTypeStats` method. diff --git a/renovate.json b/renovate.json new file mode 100644 index 00000000..99810470 --- /dev/null +++ b/renovate.json @@ -0,0 +1,27 @@ +{ + "extends": [ + "config:base" + ], + "ignoreDeps": [], + "packageRules": [ + { + "managers": ["maven"], + "packageNames": ["com.google.guava:guava*"], + "versionScheme": "docker" + }, + { + "packagePatterns": ["^io.grpc:grpc-"], + "groupName": "gRPC packages" + }, + { + "packagePatterns": ["^com.google.protobuf:protobuf-"], + "groupName": "Protobuf packages" + }, + { + "packagePatterns": ["^io.opencensus:opencensus-"], + "groupName": "OpenCensus packages" + } + ], + "semanticCommits": true, + "semanticCommitType": "deps" +} diff --git a/google-cloud-websecurityscanner/synth.metadata b/synth.metadata similarity index 66% rename from google-cloud-websecurityscanner/synth.metadata rename to synth.metadata index 56d598ce..40311bf4 100644 --- a/google-cloud-websecurityscanner/synth.metadata +++ b/synth.metadata @@ -1,19 +1,26 @@ { - "updateTime": "2019-10-01T07:56:27.923813Z", + "updateTime": "2019-10-19T07:59:16.274252Z", "sources": [ { "generator": { "name": "artman", - "version": "0.37.1", - "dockerImage": "googleapis/artman@sha256:6068f67900a3f0bdece596b97bda8fc70406ca0e137a941f4c81d3217c994a80" + "version": "0.40.1", + "dockerImage": "googleapis/artman@sha256:168646efbffe41e8f8fa86a60fa0d5724fab67fa37f35082cf6cfc85cedce3c7" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "ce3c574d1266026cebea3a893247790bd68191c2", - "internalRef": "272147209" + "sha": "0e9a6d15fcb944ed40921ba0aad2082ee1bc7edd", + "internalRef": "275543900" + } + }, + { + "template": { + "name": "java_library", + "origin": "synthtool.gcp", + "version": "2019.10.17" } } ], diff --git a/google-cloud-websecurityscanner/synth.py b/synth.py similarity index 57% rename from google-cloud-websecurityscanner/synth.py rename to synth.py index 6b6c37b7..2c5be866 100644 --- a/google-cloud-websecurityscanner/synth.py +++ b/synth.py @@ -25,16 +25,15 @@ config_pattern = '/google/cloud/websecurityscanner/artman_websecurityscanner_{version}.yaml' for version in versions: - library = gapic.java_library( - service=service, - version=version, - config_path=config_pattern.format(version=version), - artman_output_name='') + java.gapic_library( + service=service, + version=version, + config_pattern=config_pattern, + gapic=gapic, + ) - s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src') - s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') - s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') - - java.format_code('./src') - java.format_code(f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') - java.format_code(f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') +common_templates = gcp.CommonTemplates() +templates = common_templates.java_library() +s.copy(templates, excludes=[ + 'README.md', +]) diff --git a/versions.txt b/versions.txt new file mode 100644 index 00000000..3e951ee8 --- /dev/null +++ b/versions.txt @@ -0,0 +1,8 @@ +# Format: +# module:released-version:current-version + +proto-google-cloud-websecurityscanner-v1beta:0.81.0:0.81.0 +proto-google-cloud-websecurityscanner-v1alpha:0.81.0:0.81.0 +grpc-google-cloud-websecurityscanner-v1alpha:0.81.0:0.81.0 +grpc-google-cloud-websecurityscanner-v1beta:0.81.0:0.81.0 +google-cloud-websecurityscanner:0.116.0:0.116.0 \ No newline at end of file