diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 000000000..6137bef2a --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,8 @@ +# Code owners file. +# This file controls who is tagged for review for any given pull request. + +# For syntax help see: +# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax + +# The java-samples-reviewers team is the default owner for samples changes +samples/**/*.java @googleapis/java-samples-reviewers diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 000000000..445b4bf82 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,76 @@ +on: + push: + branches: + - master + pull_request: +name: ci +jobs: + units: + runs-on: ubuntu-latest + strategy: + matrix: + java: [7, 8, 11] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: ${{matrix.java}} + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: test + - name: coverage + uses: codecov/codecov-action@v1 + with: + name: actions ${{matrix.java}} + windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/build.bat + env: + JOB_TYPE: test + dependencies: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/dependencies.sh + linkage-monitor: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/linkage-monitor.sh + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: lint + clirr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: clirr \ No newline at end of file diff --git a/.kokoro/build.bat b/.kokoro/build.bat index 7b6b9f5ec..05826ad93 100644 --- a/.kokoro/build.bat +++ b/.kokoro/build.bat @@ -1,3 +1,3 @@ :: See documentation in type-shell-output.bat -"C:\Program Files\Git\bin\bash.exe" github/java-securitycenter/.kokoro/build.sh +"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 3ea176c69..756508737 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -51,9 +51,7 @@ test) RETURN_CODE=$? ;; lint) - mvn \ - -Penable-samples \ - com.coveo:fmt-maven-plugin:check + mvn com.coveo:fmt-maven-plugin:check RETURN_CODE=$? ;; javadoc) diff --git a/.kokoro/common.sh b/.kokoro/common.sh index 8f09de5d3..a8d0ea04d 100644 --- a/.kokoro/common.sh +++ b/.kokoro/common.sh @@ -52,3 +52,8 @@ function retry_with_backoff { return $exit_code } + +## Helper functionss +function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } +function msg() { println "$*" >&2; } +function println() { printf '%s\n' "$(now) $*"; } \ No newline at end of file diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 0aade871c..cf3bb4347 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -36,3 +36,51 @@ retry_with_backoff 3 10 \ -Dclirr.skip=true mvn -B dependency:analyze -DfailOnWarning=true + +echo "****************** DEPENDENCY LIST COMPLETENESS CHECK *******************" +## Run dependency list completeness check +function completenessCheck() { + # Output dep list with compile scope generated using the original pom + msg "Generating dependency list using original pom..." + mvn dependency:list -f pom.xml -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | grep -v ':test$' >.org-list.txt + + # Output dep list generated using the flattened pom (test scope deps are ommitted) + msg "Generating dependency list using flattened pom..." + mvn dependency:list -f .flattened-pom.xml -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt + + # Compare two dependency lists + msg "Comparing dependency lists..." + diff .org-list.txt .new-list.txt >.diff.txt + if [[ $? == 0 ]] + then + msg "Success. No diff!" + else + msg "Diff found. See below: " + msg "You can also check .diff.txt file located in $1." + cat .diff.txt + return 1 + fi +} + +# Allow failures to continue running the script +set +e + +error_count=0 +for path in $(find -name ".flattened-pom.xml") +do + # Check flattened pom in each dir that contains it for completeness + dir=$(dirname "$path") + pushd "$dir" + completenessCheck "$dir" + error_count=$(($error_count + $?)) + popd +done + +if [[ $error_count == 0 ]] +then + msg "All checks passed." + exit 0 +else + msg "Errors found. See log statements above." + exit 1 +fi diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index ca0274800..40c4abb7b 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -10,20 +10,25 @@ env_vars: { key: "JOB_TYPE" value: "integration" } - +# TODO: remove this after we've migrated all tests and scripts env_vars: { key: "GCLOUD_PROJECT" value: "gcloud-devel" } +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + env_vars: { key: "ENABLE_BUILD_COP" value: "true" } env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "keystore/73713_java_it_service_account" + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" } before_action { diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg index b4b051cd0..20aabd55d 100644 --- a/.kokoro/nightly/samples.cfg +++ b/.kokoro/nightly/samples.cfg @@ -11,9 +11,15 @@ env_vars: { value: "samples" } +# TODO: remove this after we've migrated all tests and scripts env_vars: { key: "GCLOUD_PROJECT" - value: "gcloud-devel" + value: "java-docs-samples-testing" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "java-docs-samples-testing" } env_vars: { diff --git a/.kokoro/presubmit/integration.cfg b/.kokoro/presubmit/integration.cfg index 141f90c13..522e5b101 100644 --- a/.kokoro/presubmit/integration.cfg +++ b/.kokoro/presubmit/integration.cfg @@ -11,14 +11,20 @@ env_vars: { value: "integration" } +# TODO: remove this after we've migrated all tests and scripts env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" + key: "GCLOUD_PROJECT" + value: "gcloud-devel" } env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "keystore/73713_java_it_service_account" + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" } before_action { diff --git a/.kokoro/presubmit/samples.cfg b/.kokoro/presubmit/samples.cfg index fa7b493d0..1171aead0 100644 --- a/.kokoro/presubmit/samples.cfg +++ b/.kokoro/presubmit/samples.cfg @@ -11,14 +11,20 @@ env_vars: { value: "samples" } +# TODO: remove this after we've migrated all tests and scripts env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" + key: "GCLOUD_PROJECT" + value: "java-docs-samples-testing" } env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "keystore/73713_java_it_service_account" + key: "GOOGLE_CLOUD_PROJECT" + value: "java-docs-samples-testing" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" } before_action { diff --git a/CHANGELOG.md b/CHANGELOG.md index 5576e8542..369081d41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,31 @@ # Changelog +## [0.122.0](https://www.github.com/googleapis/java-securitycenter/compare/v0.121.0...v0.122.0) (2020-06-11) + + +### ⚠ BREAKING CHANGES + +* **v1p1beta1:** Removed 'having' as a field in the List and Group Finding and Asset requests. +* remove legacy resource name (#125) + +### Features + +* remove legacy resource name ([#125](https://www.github.com/googleapis/java-securitycenter/issues/125)) ([d5f88f6](https://www.github.com/googleapis/java-securitycenter/commit/d5f88f6c8c0b182170c405ccaa8f6159fecb4a86)) +* **v1p1beta1:** add `resource` to NotificationMessage, remove `having` from list requests ([#161](https://www.github.com/googleapis/java-securitycenter/issues/161)) ([e9c6709](https://www.github.com/googleapis/java-securitycenter/commit/e9c670944e25e6cf24394bdd8dbee7a94ae40846)) + + +### Dependencies + +* update dependency com.google.api:api-common to v1.9.1 ([#146](https://www.github.com/googleapis/java-securitycenter/issues/146)) ([ffba078](https://www.github.com/googleapis/java-securitycenter/commit/ffba078dd1da6ad9f78e5c4425f212892eac081f)) +* update dependency com.google.api:api-common to v1.9.2 ([#153](https://www.github.com/googleapis/java-securitycenter/issues/153)) ([cfb9e30](https://www.github.com/googleapis/java-securitycenter/commit/cfb9e30815ae07d472e327f30f8a069961a2a813)) +* update dependency com.google.api.grpc:proto-google-common-protos to v1.18.0 ([#135](https://www.github.com/googleapis/java-securitycenter/issues/135)) ([760ebf4](https://www.github.com/googleapis/java-securitycenter/commit/760ebf4cf4bd26b10451113bd7141f8303cf238f)) +* update dependency com.google.guava:guava-bom to v29 ([#109](https://www.github.com/googleapis/java-securitycenter/issues/109)) ([00a1471](https://www.github.com/googleapis/java-securitycenter/commit/00a1471f0b32e08b9a0bd6fd9c3ff86a510c8d97)) +* update dependency com.google.protobuf:protobuf-java to v3.12.0 ([#139](https://www.github.com/googleapis/java-securitycenter/issues/139)) ([213bb0e](https://www.github.com/googleapis/java-securitycenter/commit/213bb0e685eaf36b7ad730425a89e37098dc3f63)) +* update dependency com.google.protobuf:protobuf-java to v3.12.2 ([#144](https://www.github.com/googleapis/java-securitycenter/issues/144)) ([455344f](https://www.github.com/googleapis/java-securitycenter/commit/455344f8ac059d845cf481e59007d43e8b06bfa3)) +* update dependency io.grpc:grpc-bom to v1.29.0 ([#124](https://www.github.com/googleapis/java-securitycenter/issues/124)) ([24fee0e](https://www.github.com/googleapis/java-securitycenter/commit/24fee0eef8d80ba3eb6999a315a18cbb458bdf53)) +* update dependency io.grpc:grpc-bom to v1.30.0 ([#157](https://www.github.com/googleapis/java-securitycenter/issues/157)) ([b97deb9](https://www.github.com/googleapis/java-securitycenter/commit/b97deb90aad2cf0e71480aa91dbe760cd1c5cf70)) +* update dependency org.threeten:threetenbp to v1.4.4 ([#129](https://www.github.com/googleapis/java-securitycenter/issues/129)) ([5d62223](https://www.github.com/googleapis/java-securitycenter/commit/5d62223fc6c56a04aee99a8239914c650b4e3c9a)) + ## [0.121.0](https://www.github.com/googleapis/java-securitycenter/compare/v0.120.0...v0.121.0) (2020-04-09) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 085021dde..f2dbdee06 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -99,7 +99,16 @@ mvn -Penable-samples clean verify ``` 2. [Activate](#profile-activation) the profile. -3. Define your samples in a normal Maven project in the `samples/` directory +3. Define your samples in a normal Maven project in the `samples/` directory. + +### Code Formatting + +Code in this repo is formatted with +[google-java-format](https://github.com/google/google-java-format). +To run formatting on your project, you can run: +``` +mvn com.coveo:fmt-maven-plugin:format +``` ### Profile Activation diff --git a/README.md b/README.md index f67fb6c7e..70415170e 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 4.4.1 + 5.5.0 pom import @@ -41,7 +41,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter - 0.120.0 + 0.121.0 ``` @@ -50,11 +50,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-securitycenter:0.121.0' +compile 'com.google.cloud:google-cloud-securitycenter:0.122.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "0.121.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "0.122.0" ``` [//]: # ({x-version-update-end}) @@ -104,13 +104,13 @@ Java 7 or above is required for using this client. ## Versioning + This library follows [Semantic Versioning](http://semver.org/). It is currently in major version zero (``0.y.z``), which means that anything may change at any time and the public API should not be considered stable. - ## Contributing diff --git a/google-cloud-securitycenter-bom/pom.xml b/google-cloud-securitycenter-bom/pom.xml index a851863a8..7fd059af9 100644 --- a/google-cloud-securitycenter-bom/pom.xml +++ b/google-cloud-securitycenter-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-bom - 0.121.0 + 0.122.0 pom com.google.cloud google-cloud-shared-config - 0.5.0 + 0.8.0 Google Cloud Security Command Center BOM @@ -64,37 +64,37 @@ com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.86.0 + 0.87.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.86.0 + 0.87.0 com.google.cloud google-cloud-securitycenter - 0.121.0 + 0.122.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.86.0 + 0.87.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.86.0 + 0.87.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.86.0 + 0.87.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.86.0 + 0.87.0 diff --git a/google-cloud-securitycenter/pom.xml b/google-cloud-securitycenter/pom.xml index a13a52088..400c0ba31 100644 --- a/google-cloud-securitycenter/pom.xml +++ b/google-cloud-securitycenter/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-securitycenter - 0.121.0 + 0.122.0 jar Google Cloud Security Command Center https://github.com/googleapis/java-securitycenter @@ -11,7 +11,7 @@ com.google.cloud google-cloud-securitycenter-parent - 0.121.0 + 0.122.0 google-cloud-securitycenter diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java index 9f504764d..69280bbb3 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java @@ -15,7 +15,7 @@ */ /** - * A client to Cloud Security Command Center API. + * A client to Security Command Center API. * *

The interfaces provided are listed below, along with usage samples. * diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java index 25c88df24..685e191b5 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java @@ -36,7 +36,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC callable factory implementation for Cloud Security Command Center API. + * gRPC callable factory implementation for Security Command Center API. * *

This class is for advanced usage. */ diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java index cb330e17e..7fd0975f1 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java @@ -81,7 +81,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC stub implementation for Cloud Security Command Center API. + * gRPC stub implementation for Security Command Center API. * *

This class is for advanced usage and reflects the underlying API directly. */ diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java index 883e33a49..c623e2107 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java @@ -70,7 +70,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * Base stub class for Cloud Security Command Center API. + * Base stub class for Security Command Center API. * *

This class is for advanced usage and reflects the underlying API directly. */ diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java index 2168e0a47..2fc551563 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java @@ -15,7 +15,7 @@ */ /** - * A client to Cloud Security Command Center API. + * A client to Security Command Center API. * *

The interfaces provided are listed below, along with usage samples. * diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java index 99203d37a..ea47ce732 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java @@ -36,7 +36,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC callable factory implementation for Cloud Security Command Center API. + * gRPC callable factory implementation for Security Command Center API. * *

This class is for advanced usage. */ diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java index 53bf003d8..4bdfa37e0 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java @@ -81,7 +81,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC stub implementation for Cloud Security Command Center API. + * gRPC stub implementation for Security Command Center API. * *

This class is for advanced usage and reflects the underlying API directly. */ diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java index bd2517c43..b89846e30 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java @@ -70,7 +70,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * Base stub class for Cloud Security Command Center API. + * Base stub class for Security Command Center API. * *

This class is for advanced usage and reflects the underlying API directly. */ diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java index 9a4e263cc..121b481ac 100644 --- a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java +++ b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java @@ -1285,7 +1285,8 @@ public void updateSourceExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void updateSecurityMarksTest() { - SecurityMarksName name = SecurityMarksName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]"); + SecurityMarksName name = + SecurityMarksName.ofOrganizationAssetSecurityMarksName("[ORGANIZATION]", "[ASSET]"); SecurityMarks expectedResponse = SecurityMarks.newBuilder().setName(name.toString()).build(); mockSecurityCenter.addResponse(expectedResponse); diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java index 0824cc91b..c752f1cca 100644 --- a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java +++ b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java @@ -1374,7 +1374,8 @@ public void updateSourceExceptionTest2() throws Exception { @Test @SuppressWarnings("all") public void updateSecurityMarksTest() { - SecurityMarksName name = SecurityMarksName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]"); + SecurityMarksName name = + SecurityMarksName.ofOrganizationAssetSecurityMarksName("[ORGANIZATION]", "[ASSET]"); SecurityMarks expectedResponse = SecurityMarks.newBuilder().setName(name.toString()).build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1413,7 +1414,8 @@ public void updateSecurityMarksExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void updateSecurityMarksTest2() { - SecurityMarksName name = SecurityMarksName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]"); + SecurityMarksName name = + SecurityMarksName.ofOrganizationAssetSecurityMarksName("[ORGANIZATION]", "[ASSET]"); SecurityMarks expectedResponse = SecurityMarks.newBuilder().setName(name.toString()).build(); mockSecurityCenter.addResponse(expectedResponse); diff --git a/grpc-google-cloud-securitycenter-v1/pom.xml b/grpc-google-cloud-securitycenter-v1/pom.xml index 28665dd2e..4310fe48d 100644 --- a/grpc-google-cloud-securitycenter-v1/pom.xml +++ b/grpc-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.86.0 + 0.87.0 grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 0.121.0 + 0.122.0 diff --git a/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/grpc-google-cloud-securitycenter-v1beta1/pom.xml index 3708f7605..b1335e6a7 100644 --- a/grpc-google-cloud-securitycenter-v1beta1/pom.xml +++ b/grpc-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.86.0 + 0.87.0 grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 0.121.0 + 0.122.0 diff --git a/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml b/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml index 239ca0c26..359b9283a 100644 --- a/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml +++ b/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.86.0 + 0.87.0 grpc-google-cloud-securitycenter-v1p1beta1 GRPC library for grpc-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 0.121.0 + 0.122.0 diff --git a/pom.xml b/pom.xml index 7dcefd3aa..a701fbaf3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-parent pom - 0.121.0 + 0.122.0 Google Cloud Security Command Center Parent https://github.com/googleapis/java-securitycenter @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.5.0 + 0.8.0 @@ -64,14 +64,14 @@ github google-cloud-securitycenter-parent 1.91.1 - 1.9.0 - 1.17.0 + 1.9.2 + 1.18.0 1.56.0 - 1.28.1 - 3.11.4 + 1.30.0 + 3.12.2 4.13 - 28.2-android - 1.4.3 + 29.0-android + 1.4.4 1.3.2 1.18 0.13.0 @@ -82,37 +82,37 @@ com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.86.0 + 0.87.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.86.0 + 0.87.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.86.0 + 0.87.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 0.86.0 + 0.87.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.86.0 + 0.87.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.86.0 + 0.87.0 com.google.cloud google-cloud-securitycenter - 0.121.0 + 0.122.0 @@ -220,7 +220,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.0.0 + 3.1.0 diff --git a/proto-google-cloud-securitycenter-v1/clirr-ignored-differences.xml b/proto-google-cloud-securitycenter-v1/clirr-ignored-differences.xml index d1cd44c13..4bf2ff5e8 100644 --- a/proto-google-cloud-securitycenter-v1/clirr-ignored-differences.xml +++ b/proto-google-cloud-securitycenter-v1/clirr-ignored-differences.xml @@ -17,15 +17,55 @@ boolean has*(*) - + 7002 com/google/cloud/securitycenter/v1/SecurityMarksName - java.util.List parse(java.util.List) + java.lang.String formatOrganizationAssetName(java.lang.String, java.lang.String) 7002 com/google/cloud/securitycenter/v1/SecurityMarksName - java.util.List toStrings(java.util.List) + java.lang.String formatOrganizationSourceFindingName(java.lang.String, java.lang.String, java.lang.String) + + + 7002 + com/google/cloud/securitycenter/v1/SecurityMarksName + com.google.cloud.securitycenter.v1.SecurityMarksName$Builder newOrganizationAssetBuilder() + + + 7002 + com/google/cloud/securitycenter/v1/SecurityMarksName + com.google.cloud.securitycenter.v1.SecurityMarksName$OrganizationSourceFindingBuilder newOrganizationSourceFindingBuilder() + + + 7002 + com/google/cloud/securitycenter/v1/SecurityMarksName + com.google.cloud.securitycenter.v1.SecurityMarksName ofOrganizationAssetName(java.lang.String, java.lang.String) + + + 7002 + com/google/cloud/securitycenter/v1/SecurityMarksName + com.google.cloud.securitycenter.v1.SecurityMarksName ofOrganizationSourceFindingName(java.lang.String, java.lang.String, java.lang.String) + + + 8001 + com/google/cloud/securitycenter/v1/SecurityMarksName$OrganizationSourceFindingBuilder + + + 8001 + com/google/cloud/securitycenter/v1/AssetSecurityMarksName* + + + 8001 + com/google/cloud/securitycenter/v1/FindingSecurityMarksName* + + + 8001 + com/google/cloud/securitycenter/v1/SecurityMarksNames + + + 8001 + com/google/cloud/securitycenter/v1/UntypedSecurityMarksName diff --git a/proto-google-cloud-securitycenter-v1/pom.xml b/proto-google-cloud-securitycenter-v1/pom.xml index b33e1fcf4..84fe4b73a 100644 --- a/proto-google-cloud-securitycenter-v1/pom.xml +++ b/proto-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 0.86.0 + 0.87.0 proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 0.121.0 + 0.122.0 diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java index 57bcce36a..9a93d50f0 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java @@ -22,11 +22,12 @@ * * *

- * Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
- * Platform (GCP) resource.
- * The Asset is a Cloud SCC resource that captures information about a single
- * GCP resource. All modifications to an Asset are only within the context of
- * Cloud SCC and don't affect the referenced GCP resource.
+ * Security Command Center representation of a Google Cloud
+ * resource.
+ * The Asset is a Security Command Center resource that captures information
+ * about a single Google Cloud resource. All modifications to an Asset are only
+ * within the context of Security Command Center and don't affect the referenced
+ * Google Cloud resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Asset} @@ -235,7 +236,7 @@ public interface SecurityCenterPropertiesOrBuilder * * *
-     * The full resource name of the GCP resource this asset
+     * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
@@ -249,7 +250,7 @@ public interface SecurityCenterPropertiesOrBuilder * * *
-     * The full resource name of the GCP resource this asset
+     * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
@@ -264,10 +265,10 @@ public interface SecurityCenterPropertiesOrBuilder * * *
-     * The type of the GCP resource. Examples include: APPLICATION,
+     * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-     * Cloud SCC and/or the producer of the resource and is immutable
-     * after create time.
+     * Security Command Center and/or the producer of the resource and is
+     * immutable after create time.
      * 
* * string resource_type = 2; @@ -279,10 +280,10 @@ public interface SecurityCenterPropertiesOrBuilder * * *
-     * The type of the GCP resource. Examples include: APPLICATION,
+     * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-     * Cloud SCC and/or the producer of the resource and is immutable
-     * after create time.
+     * Security Command Center and/or the producer of the resource and is
+     * immutable after create time.
      * 
* * string resource_type = 2; @@ -475,8 +476,8 @@ public interface SecurityCenterPropertiesOrBuilder * * *
-   * Cloud SCC managed properties. These properties are managed by Cloud SCC and
-   * cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Asset.SecurityCenterProperties} @@ -634,7 +635,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The full resource name of the GCP resource this asset
+     * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
@@ -643,6 +644,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The resourceName. */ + @java.lang.Override public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { @@ -658,7 +660,7 @@ public java.lang.String getResourceName() { * * *
-     * The full resource name of the GCP resource this asset
+     * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
@@ -667,6 +669,7 @@ public java.lang.String getResourceName() { * * @return The bytes for resourceName. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { @@ -685,16 +688,17 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * *
-     * The type of the GCP resource. Examples include: APPLICATION,
+     * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-     * Cloud SCC and/or the producer of the resource and is immutable
-     * after create time.
+     * Security Command Center and/or the producer of the resource and is
+     * immutable after create time.
      * 
* * string resource_type = 2; * * @return The resourceType. */ + @java.lang.Override public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { @@ -710,16 +714,17 @@ public java.lang.String getResourceType() { * * *
-     * The type of the GCP resource. Examples include: APPLICATION,
+     * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-     * Cloud SCC and/or the producer of the resource and is immutable
-     * after create time.
+     * Security Command Center and/or the producer of the resource and is
+     * immutable after create time.
      * 
* * string resource_type = 2; * * @return The bytes for resourceType. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { @@ -746,6 +751,7 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { * * @return The resourceParent. */ + @java.lang.Override public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; if (ref instanceof java.lang.String) { @@ -769,6 +775,7 @@ public java.lang.String getResourceParent() { * * @return The bytes for resourceParent. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof java.lang.String) { @@ -795,6 +802,7 @@ public com.google.protobuf.ByteString getResourceParentBytes() { * * @return The resourceProject. */ + @java.lang.Override public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; if (ref instanceof java.lang.String) { @@ -818,6 +826,7 @@ public java.lang.String getResourceProject() { * * @return The bytes for resourceProject. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof java.lang.String) { @@ -904,6 +913,7 @@ public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { * * @return The resourceDisplayName. */ + @java.lang.Override public java.lang.String getResourceDisplayName() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof java.lang.String) { @@ -926,6 +936,7 @@ public java.lang.String getResourceDisplayName() { * * @return The bytes for resourceDisplayName. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceDisplayNameBytes() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof java.lang.String) { @@ -951,6 +962,7 @@ public com.google.protobuf.ByteString getResourceDisplayNameBytes() { * * @return The resourceParentDisplayName. */ + @java.lang.Override public java.lang.String getResourceParentDisplayName() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof java.lang.String) { @@ -973,6 +985,7 @@ public java.lang.String getResourceParentDisplayName() { * * @return The bytes for resourceParentDisplayName. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof java.lang.String) { @@ -998,6 +1011,7 @@ public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { * * @return The resourceProjectDisplayName. */ + @java.lang.Override public java.lang.String getResourceProjectDisplayName() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof java.lang.String) { @@ -1020,6 +1034,7 @@ public java.lang.String getResourceProjectDisplayName() { * * @return The bytes for resourceProjectDisplayName. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof java.lang.String) { @@ -1273,8 +1288,8 @@ protected Builder newBuilderForType( * * *
-     * Cloud SCC managed properties. These properties are managed by Cloud SCC and
-     * cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Asset.SecurityCenterProperties} @@ -1506,7 +1521,7 @@ public Builder mergeFrom( * * *
-       * The full resource name of the GCP resource this asset
+       * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
@@ -1530,7 +1545,7 @@ public java.lang.String getResourceName() { * * *
-       * The full resource name of the GCP resource this asset
+       * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
@@ -1554,7 +1569,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * *
-       * The full resource name of the GCP resource this asset
+       * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
@@ -1577,7 +1592,7 @@ public Builder setResourceName(java.lang.String value) { * * *
-       * The full resource name of the GCP resource this asset
+       * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
@@ -1596,7 +1611,7 @@ public Builder clearResourceName() { * * *
-       * The full resource name of the GCP resource this asset
+       * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
@@ -1622,10 +1637,10 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { * * *
-       * The type of the GCP resource. Examples include: APPLICATION,
+       * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-       * Cloud SCC and/or the producer of the resource and is immutable
-       * after create time.
+       * Security Command Center and/or the producer of the resource and is
+       * immutable after create time.
        * 
* * string resource_type = 2; @@ -1647,10 +1662,10 @@ public java.lang.String getResourceType() { * * *
-       * The type of the GCP resource. Examples include: APPLICATION,
+       * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-       * Cloud SCC and/or the producer of the resource and is immutable
-       * after create time.
+       * Security Command Center and/or the producer of the resource and is
+       * immutable after create time.
        * 
* * string resource_type = 2; @@ -1672,10 +1687,10 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { * * *
-       * The type of the GCP resource. Examples include: APPLICATION,
+       * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-       * Cloud SCC and/or the producer of the resource and is immutable
-       * after create time.
+       * Security Command Center and/or the producer of the resource and is
+       * immutable after create time.
        * 
* * string resource_type = 2; @@ -1696,10 +1711,10 @@ public Builder setResourceType(java.lang.String value) { * * *
-       * The type of the GCP resource. Examples include: APPLICATION,
+       * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-       * Cloud SCC and/or the producer of the resource and is immutable
-       * after create time.
+       * Security Command Center and/or the producer of the resource and is
+       * immutable after create time.
        * 
* * string resource_type = 2; @@ -1716,10 +1731,10 @@ public Builder clearResourceType() { * * *
-       * The type of the GCP resource. Examples include: APPLICATION,
+       * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-       * Cloud SCC and/or the producer of the resource and is immutable
-       * after create time.
+       * Security Command Center and/or the producer of the resource and is
+       * immutable after create time.
        * 
* * string resource_type = 2; @@ -2539,9 +2554,10 @@ public interface IamPolicyOrBuilder * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Asset.IamPolicy} @@ -2645,6 +2661,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The policyBlob. */ + @java.lang.Override public java.lang.String getPolicyBlob() { java.lang.Object ref = policyBlob_; if (ref instanceof java.lang.String) { @@ -2669,6 +2686,7 @@ public java.lang.String getPolicyBlob() { * * @return The bytes for policyBlob. */ + @java.lang.Override public com.google.protobuf.ByteString getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; if (ref instanceof java.lang.String) { @@ -2845,9 +2863,10 @@ protected Builder newBuilderForType( * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Asset.IamPolicy} @@ -3189,6 +3208,7 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInstanceForT * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -3214,6 +3234,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -3233,8 +3254,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Cloud SCC managed properties. These properties are managed by
-   * Cloud SCC and cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * @@ -3243,6 +3264,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return Whether the securityCenterProperties field is set. */ + @java.lang.Override public boolean hasSecurityCenterProperties() { return securityCenterProperties_ != null; } @@ -3250,8 +3272,8 @@ public boolean hasSecurityCenterProperties() { * * *
-   * Cloud SCC managed properties. These properties are managed by
-   * Cloud SCC and cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * @@ -3260,6 +3282,7 @@ public boolean hasSecurityCenterProperties() { * * @return The securityCenterProperties. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getSecurityCenterProperties() { return securityCenterProperties_ == null @@ -3270,14 +3293,15 @@ public boolean hasSecurityCenterProperties() { * * *
-   * Cloud SCC managed properties. These properties are managed by
-   * Cloud SCC and cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { return getSecurityCenterProperties(); @@ -3318,11 +3342,12 @@ public int getResourcePropertiesCount() { * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public boolean containsResourceProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -3330,6 +3355,7 @@ public boolean containsResourceProperties(java.lang.String key) { return internalGetResourceProperties().getMap().containsKey(key); } /** Use {@link #getResourcePropertiesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getResourceProperties() { return getResourcePropertiesMap(); @@ -3339,11 +3365,12 @@ public java.util.Map getResourcePro * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public java.util.Map getResourcePropertiesMap() { return internalGetResourceProperties().getMap(); } @@ -3352,11 +3379,12 @@ public java.util.Map getResourcePro * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getResourcePropertiesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { @@ -3371,11 +3399,12 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault( * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -3402,6 +3431,7 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k * * @return Whether the securityMarks field is set. */ + @java.lang.Override public boolean hasSecurityMarks() { return securityMarks_ != null; } @@ -3417,6 +3447,7 @@ public boolean hasSecurityMarks() { * * @return The securityMarks. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() @@ -3432,6 +3463,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { * * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; */ + @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { return getSecurityMarks(); } @@ -3442,13 +3474,14 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * * *
-   * The time at which the asset was created in Cloud SCC.
+   * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; * * @return Whether the createTime field is set. */ + @java.lang.Override public boolean hasCreateTime() { return createTime_ != null; } @@ -3456,13 +3489,14 @@ public boolean hasCreateTime() { * * *
-   * The time at which the asset was created in Cloud SCC.
+   * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; * * @return The createTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } @@ -3470,11 +3504,12 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * The time at which the asset was created in Cloud SCC.
+   * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); } @@ -3485,14 +3520,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-   * The time at which the asset was last updated, added, or deleted in Cloud
-   * SCC.
+   * The time at which the asset was last updated, added, or deleted in Security
+   * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; * * @return Whether the updateTime field is set. */ + @java.lang.Override public boolean hasUpdateTime() { return updateTime_ != null; } @@ -3500,14 +3536,15 @@ public boolean hasUpdateTime() { * * *
-   * The time at which the asset was last updated, added, or deleted in Cloud
-   * SCC.
+   * The time at which the asset was last updated, added, or deleted in Security
+   * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; * * @return The updateTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } @@ -3515,12 +3552,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
-   * The time at which the asset was last updated, added, or deleted in Cloud
-   * SCC.
+   * The time at which the asset was last updated, added, or deleted in Security
+   * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); } @@ -3531,15 +3569,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; * * @return Whether the iamPolicy field is set. */ + @java.lang.Override public boolean hasIamPolicy() { return iamPolicy_ != null; } @@ -3547,15 +3587,17 @@ public boolean hasIamPolicy() { * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; * * @return The iamPolicy. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() { return iamPolicy_ == null ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() @@ -3565,13 +3607,15 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() { * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder() { return getIamPolicy(); } @@ -3832,11 +3876,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
-   * Platform (GCP) resource.
-   * The Asset is a Cloud SCC resource that captures information about a single
-   * GCP resource. All modifications to an Asset are only within the context of
-   * Cloud SCC and don't affect the referenced GCP resource.
+   * Security Command Center representation of a Google Cloud
+   * resource.
+   * The Asset is a Security Command Center resource that captures information
+   * about a single Google Cloud resource. All modifications to an Asset are only
+   * within the context of Security Command Center and don't affect the referenced
+   * Google Cloud resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Asset} @@ -4218,8 +4263,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4235,8 +4280,8 @@ public boolean hasSecurityCenterProperties() { * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4259,8 +4304,8 @@ public boolean hasSecurityCenterProperties() { * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4285,8 +4330,8 @@ public Builder setSecurityCenterProperties( * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4308,8 +4353,8 @@ public Builder setSecurityCenterProperties( * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4339,8 +4384,8 @@ public Builder mergeSecurityCenterProperties( * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4362,8 +4407,8 @@ public Builder clearSecurityCenterProperties() { * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4380,8 +4425,8 @@ public Builder clearSecurityCenterProperties() { * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4402,8 +4447,8 @@ public Builder clearSecurityCenterProperties() { * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4462,11 +4507,12 @@ public int getResourcePropertiesCount() { * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public boolean containsResourceProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -4474,6 +4520,7 @@ public boolean containsResourceProperties(java.lang.String key) { return internalGetResourceProperties().getMap().containsKey(key); } /** Use {@link #getResourcePropertiesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getResourceProperties() { return getResourcePropertiesMap(); @@ -4483,11 +4530,12 @@ public java.util.Map getResourcePro * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public java.util.Map getResourcePropertiesMap() { return internalGetResourceProperties().getMap(); } @@ -4496,11 +4544,12 @@ public java.util.Map getResourcePro * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getResourcePropertiesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { @@ -4515,11 +4564,12 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault( * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -4541,7 +4591,7 @@ public Builder clearResourceProperties() { * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -4564,7 +4614,7 @@ public Builder removeResourceProperties(java.lang.String key) { * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -4584,7 +4634,7 @@ public Builder putResourceProperties(java.lang.String key, com.google.protobuf.V * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -4800,7 +4850,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4814,7 +4864,7 @@ public boolean hasCreateTime() { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4834,7 +4884,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4856,7 +4906,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4875,7 +4925,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4899,7 +4949,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4919,7 +4969,7 @@ public Builder clearCreateTime() { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4933,7 +4983,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4951,7 +5001,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4983,8 +5033,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * The time at which the asset was last updated, added, or deleted in Cloud
-     * SCC.
+     * The time at which the asset was last updated, added, or deleted in Security
+     * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; @@ -4998,8 +5048,8 @@ public boolean hasUpdateTime() { * * *
-     * The time at which the asset was last updated, added, or deleted in Cloud
-     * SCC.
+     * The time at which the asset was last updated, added, or deleted in Security
+     * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; @@ -5019,8 +5069,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
-     * The time at which the asset was last updated, added, or deleted in Cloud
-     * SCC.
+     * The time at which the asset was last updated, added, or deleted in Security
+     * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; @@ -5042,8 +5092,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the asset was last updated, added, or deleted in Cloud
-     * SCC.
+     * The time at which the asset was last updated, added, or deleted in Security
+     * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; @@ -5062,8 +5112,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * The time at which the asset was last updated, added, or deleted in Cloud
-     * SCC.
+     * The time at which the asset was last updated, added, or deleted in Security
+     * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; @@ -5087,8 +5137,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the asset was last updated, added, or deleted in Cloud
-     * SCC.
+     * The time at which the asset was last updated, added, or deleted in Security
+     * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; @@ -5108,8 +5158,8 @@ public Builder clearUpdateTime() { * * *
-     * The time at which the asset was last updated, added, or deleted in Cloud
-     * SCC.
+     * The time at which the asset was last updated, added, or deleted in Security
+     * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; @@ -5123,8 +5173,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * * *
-     * The time at which the asset was last updated, added, or deleted in Cloud
-     * SCC.
+     * The time at which the asset was last updated, added, or deleted in Security
+     * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; @@ -5142,8 +5192,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * The time at which the asset was last updated, added, or deleted in Cloud
-     * SCC.
+     * The time at which the asset was last updated, added, or deleted in Security
+     * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; @@ -5175,9 +5225,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; @@ -5191,9 +5242,10 @@ public boolean hasIamPolicy() { * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; @@ -5213,9 +5265,10 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() { * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; @@ -5237,9 +5290,10 @@ public Builder setIamPolicy(com.google.cloud.securitycenter.v1.Asset.IamPolicy v * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; @@ -5259,9 +5313,10 @@ public Builder setIamPolicy( * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; @@ -5287,9 +5342,10 @@ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1.Asset.IamPolicy * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; @@ -5309,9 +5365,10 @@ public Builder clearIamPolicy() { * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; @@ -5325,9 +5382,10 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder getIamPolicyBu * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; @@ -5345,9 +5403,10 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java index ae568fb5c..a185f4226 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java @@ -58,8 +58,8 @@ public interface AssetOrBuilder * * *
-   * Cloud SCC managed properties. These properties are managed by
-   * Cloud SCC and cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * @@ -73,8 +73,8 @@ public interface AssetOrBuilder * * *
-   * Cloud SCC managed properties. These properties are managed by
-   * Cloud SCC and cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * @@ -88,8 +88,8 @@ public interface AssetOrBuilder * * *
-   * Cloud SCC managed properties. These properties are managed by
-   * Cloud SCC and cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * @@ -104,7 +104,7 @@ public interface AssetOrBuilder * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -115,7 +115,7 @@ public interface AssetOrBuilder * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -129,7 +129,7 @@ public interface AssetOrBuilder * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -140,7 +140,7 @@ public interface AssetOrBuilder * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -152,7 +152,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -201,7 +201,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * The time at which the asset was created in Cloud SCC.
+   * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; @@ -213,7 +213,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * The time at which the asset was created in Cloud SCC.
+   * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; @@ -225,7 +225,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * The time at which the asset was created in Cloud SCC.
+   * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; @@ -236,8 +236,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * The time at which the asset was last updated, added, or deleted in Cloud
-   * SCC.
+   * The time at which the asset was last updated, added, or deleted in Security
+   * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; @@ -249,8 +249,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * The time at which the asset was last updated, added, or deleted in Cloud
-   * SCC.
+   * The time at which the asset was last updated, added, or deleted in Security
+   * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; @@ -262,8 +262,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * The time at which the asset was last updated, added, or deleted in Cloud
-   * SCC.
+   * The time at which the asset was last updated, added, or deleted in Security
+   * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; @@ -274,9 +274,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; @@ -288,9 +289,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; @@ -302,9 +304,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java deleted file mode 100644 index e09f9a2ca..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.securitycenter.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -/** - * AUTO-GENERATED DOCUMENTATION AND CLASS - * - * @deprecated This resource name class will be removed in the next major version. - */ -@javax.annotation.Generated("by GAPIC protoc plugin") -@Deprecated -public class AssetSecurityMarksName extends SecurityMarksName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "organizations/{organization}/assets/{asset}/securityMarks"); - - private volatile Map fieldValuesMap; - - private final String organization; - private final String asset; - - public String getOrganization() { - return organization; - } - - public String getAsset() { - return asset; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private AssetSecurityMarksName(Builder builder) { - organization = Preconditions.checkNotNull(builder.getOrganization()); - asset = Preconditions.checkNotNull(builder.getAsset()); - } - - public static AssetSecurityMarksName of(String organization, String asset) { - return newBuilder().setOrganization(organization).setAsset(asset).build(); - } - - public static String format(String organization, String asset) { - return newBuilder().setOrganization(organization).setAsset(asset).build().toString(); - } - - public static AssetSecurityMarksName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "AssetSecurityMarksName.parse: formattedString not in valid format"); - return of(matchMap.get("organization"), matchMap.get("asset")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (AssetSecurityMarksName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("organization", organization); - fieldMapBuilder.put("asset", asset); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate("organization", organization, "asset", asset); - } - - /** Builder for AssetSecurityMarksName. */ - public static class Builder extends SecurityMarksName.Builder { - - private String organization; - private String asset; - - public String getOrganization() { - return organization; - } - - public String getAsset() { - return asset; - } - - public Builder setOrganization(String organization) { - this.organization = organization; - return this; - } - - public Builder setAsset(String asset) { - this.asset = asset; - return this; - } - - private Builder() {} - - private Builder(AssetSecurityMarksName assetSecurityMarksName) { - organization = assetSecurityMarksName.organization; - asset = assetSecurityMarksName.asset; - } - - public AssetSecurityMarksName build() { - return new AssetSecurityMarksName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof AssetSecurityMarksName) { - AssetSecurityMarksName that = (AssetSecurityMarksName) o; - return (this.organization.equals(that.organization)) && (this.asset.equals(that.asset)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= organization.hashCode(); - h *= 1000003; - h ^= asset.hashCode(); - return h; - } -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java index 10cb6571a..7e5fba953 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java @@ -151,6 +151,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -176,6 +177,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -203,6 +205,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * @return The findingId. */ + @java.lang.Override public java.lang.String getFindingId() { java.lang.Object ref = findingId_; if (ref instanceof java.lang.String) { @@ -227,6 +230,7 @@ public java.lang.String getFindingId() { * * @return The bytes for findingId. */ + @java.lang.Override public com.google.protobuf.ByteString getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof java.lang.String) { @@ -255,6 +259,7 @@ public com.google.protobuf.ByteString getFindingIdBytes() { * * @return Whether the finding field is set. */ + @java.lang.Override public boolean hasFinding() { return finding_ != null; } @@ -272,6 +277,7 @@ public boolean hasFinding() { * * @return The finding. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() @@ -289,6 +295,7 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() { * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; *
*/ + @java.lang.Override public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { return getFinding(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java index cdd6ee4d2..d36455613 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java @@ -153,6 +153,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -178,6 +179,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -206,6 +208,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * @return The configId. */ + @java.lang.Override public java.lang.String getConfigId() { java.lang.Object ref = configId_; if (ref instanceof java.lang.String) { @@ -231,6 +234,7 @@ public java.lang.String getConfigId() { * * @return The bytes for configId. */ + @java.lang.Override public com.google.protobuf.ByteString getConfigIdBytes() { java.lang.Object ref = configId_; if (ref instanceof java.lang.String) { @@ -260,6 +264,7 @@ public com.google.protobuf.ByteString getConfigIdBytes() { * * @return Whether the notificationConfig field is set. */ + @java.lang.Override public boolean hasNotificationConfig() { return notificationConfig_ != null; } @@ -278,6 +283,7 @@ public boolean hasNotificationConfig() { * * @return The notificationConfig. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig() { return notificationConfig_ == null ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() @@ -296,6 +302,7 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; *
*/ + @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { return getNotificationConfig(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java index 4c963ab42..2683ef39c 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java @@ -143,6 +143,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -168,6 +169,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -196,6 +198,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * @return Whether the source field is set. */ + @java.lang.Override public boolean hasSource() { return source_ != null; } @@ -213,6 +216,7 @@ public boolean hasSource() { * * @return The source. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Source getSource() { return source_ == null ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() @@ -230,6 +234,7 @@ public com.google.cloud.securitycenter.v1.Source getSource() { * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; *
*/ + @java.lang.Override public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { return getSource(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java index 3b233f7cc..2b209ecc0 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java @@ -128,6 +128,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -153,6 +154,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java index 2e978cd23..fd9f9003a 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java @@ -22,10 +22,10 @@ * * *
- * Cloud Security Command Center (Cloud SCC) finding.
+ * Security Command Center finding.
  * A finding is a record of assessment data like security, risk, health, or
- * privacy, that is ingested into Cloud SCC for presentation, notification,
- * analysis, policy testing, and enforcement. For example, a
+ * privacy, that is ingested into Security Command Center for presentation,
+ * notification, analysis, policy testing, and enforcement. For example, a
  * cross-site scripting (XSS) vulnerability in an App Engine application is a
  * finding.
  * 
@@ -355,6 +355,10 @@ public State findValueByNumber(int number) { }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } return getDescriptor().getValues().get(ordinal()); } @@ -403,6 +407,7 @@ private State(int value) { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -428,6 +433,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -457,6 +463,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -483,6 +490,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -501,18 +509,19 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * For findings on Google Cloud Platform (GCP) resources, the full resource
-   * name of the GCP resource this finding is for. See:
+   * For findings on Google Cloud resources, the full resource
+   * name of the Google Cloud resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
-   * When the finding is for a non-GCP resource, the resourceName can be a
-   * customer or partner defined string.
-   * This field is immutable after creation time.
+   * When the finding is for a non-Google Cloud resource, the resourceName can
+   * be a customer or partner defined string. This field is immutable after
+   * creation time.
    * 
* * string resource_name = 3; * * @return The resourceName. */ + @java.lang.Override public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { @@ -528,18 +537,19 @@ public java.lang.String getResourceName() { * * *
-   * For findings on Google Cloud Platform (GCP) resources, the full resource
-   * name of the GCP resource this finding is for. See:
+   * For findings on Google Cloud resources, the full resource
+   * name of the Google Cloud resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
-   * When the finding is for a non-GCP resource, the resourceName can be a
-   * customer or partner defined string.
-   * This field is immutable after creation time.
+   * When the finding is for a non-Google Cloud resource, the resourceName can
+   * be a customer or partner defined string. This field is immutable after
+   * creation time.
    * 
* * string resource_name = 3; * * @return The bytes for resourceName. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { @@ -565,6 +575,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * @return The enum numeric value on the wire for state. */ + @java.lang.Override public int getStateValue() { return state_; } @@ -579,6 +590,7 @@ public int getStateValue() { * * @return The state. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1.Finding.State result = @@ -601,6 +613,7 @@ public com.google.cloud.securitycenter.v1.Finding.State getState() { * * @return The category. */ + @java.lang.Override public java.lang.String getCategory() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { @@ -625,6 +638,7 @@ public java.lang.String getCategory() { * * @return The bytes for category. */ + @java.lang.Override public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { @@ -643,15 +657,16 @@ public com.google.protobuf.ByteString getCategoryBytes() { * * *
-   * The URI that, if available, points to a web page outside of Cloud SCC
-   * where additional information about the finding can be found. This field is
-   * guaranteed to be either empty or a well formed URL.
+   * The URI that, if available, points to a web page outside of Security
+   * Command Center where additional information about the finding can be found.
+   * This field is guaranteed to be either empty or a well formed URL.
    * 
* * string external_uri = 6; * * @return The externalUri. */ + @java.lang.Override public java.lang.String getExternalUri() { java.lang.Object ref = externalUri_; if (ref instanceof java.lang.String) { @@ -667,15 +682,16 @@ public java.lang.String getExternalUri() { * * *
-   * The URI that, if available, points to a web page outside of Cloud SCC
-   * where additional information about the finding can be found. This field is
-   * guaranteed to be either empty or a well formed URL.
+   * The URI that, if available, points to a web page outside of Security
+   * Command Center where additional information about the finding can be found.
+   * This field is guaranteed to be either empty or a well formed URL.
    * 
* * string external_uri = 6; * * @return The bytes for externalUri. */ + @java.lang.Override public com.google.protobuf.ByteString getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof java.lang.String) { @@ -730,6 +746,7 @@ public int getSourcePropertiesCount() { * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public boolean containsSourceProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -737,6 +754,7 @@ public boolean containsSourceProperties(java.lang.String key) { return internalGetSourceProperties().getMap().containsKey(key); } /** Use {@link #getSourcePropertiesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getSourceProperties() { return getSourcePropertiesMap(); @@ -753,6 +771,7 @@ public java.util.Map getSourcePrope * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public java.util.Map getSourcePropertiesMap() { return internalGetSourceProperties().getMap(); } @@ -768,6 +787,7 @@ public java.util.Map getSourcePrope * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getSourcePropertiesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { @@ -789,6 +809,7 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault( * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -818,6 +839,7 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key * * @return Whether the securityMarks field is set. */ + @java.lang.Override public boolean hasSecurityMarks() { return securityMarks_ != null; } @@ -836,6 +858,7 @@ public boolean hasSecurityMarks() { * * @return The securityMarks. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() @@ -854,6 +877,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { return getSecurityMarks(); } @@ -873,6 +897,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * * @return Whether the eventTime field is set. */ + @java.lang.Override public boolean hasEventTime() { return eventTime_ != null; } @@ -889,6 +914,7 @@ public boolean hasEventTime() { * * @return The eventTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } @@ -903,6 +929,7 @@ public com.google.protobuf.Timestamp getEventTime() { * * .google.protobuf.Timestamp event_time = 9; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { return getEventTime(); } @@ -913,13 +940,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * * *
-   * The time at which the finding was created in Cloud SCC.
+   * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; * * @return Whether the createTime field is set. */ + @java.lang.Override public boolean hasCreateTime() { return createTime_ != null; } @@ -927,13 +955,14 @@ public boolean hasCreateTime() { * * *
-   * The time at which the finding was created in Cloud SCC.
+   * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; * * @return The createTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } @@ -941,11 +970,12 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * The time at which the finding was created in Cloud SCC.
+   * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); } @@ -1217,10 +1247,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Cloud Security Command Center (Cloud SCC) finding.
+   * Security Command Center finding.
    * A finding is a record of assessment data like security, risk, health, or
-   * privacy, that is ingested into Cloud SCC for presentation, notification,
-   * analysis, policy testing, and enforcement. For example, a
+   * privacy, that is ingested into Security Command Center for presentation,
+   * notification, analysis, policy testing, and enforcement. For example, a
    * cross-site scripting (XSS) vulnerability in an App Engine application is a
    * finding.
    * 
@@ -1730,12 +1760,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * For findings on Google Cloud Platform (GCP) resources, the full resource
-     * name of the GCP resource this finding is for. See:
+     * For findings on Google Cloud resources, the full resource
+     * name of the Google Cloud resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
-     * When the finding is for a non-GCP resource, the resourceName can be a
-     * customer or partner defined string.
-     * This field is immutable after creation time.
+     * When the finding is for a non-Google Cloud resource, the resourceName can
+     * be a customer or partner defined string. This field is immutable after
+     * creation time.
      * 
* * string resource_name = 3; @@ -1757,12 +1787,12 @@ public java.lang.String getResourceName() { * * *
-     * For findings on Google Cloud Platform (GCP) resources, the full resource
-     * name of the GCP resource this finding is for. See:
+     * For findings on Google Cloud resources, the full resource
+     * name of the Google Cloud resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
-     * When the finding is for a non-GCP resource, the resourceName can be a
-     * customer or partner defined string.
-     * This field is immutable after creation time.
+     * When the finding is for a non-Google Cloud resource, the resourceName can
+     * be a customer or partner defined string. This field is immutable after
+     * creation time.
      * 
* * string resource_name = 3; @@ -1784,12 +1814,12 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * *
-     * For findings on Google Cloud Platform (GCP) resources, the full resource
-     * name of the GCP resource this finding is for. See:
+     * For findings on Google Cloud resources, the full resource
+     * name of the Google Cloud resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
-     * When the finding is for a non-GCP resource, the resourceName can be a
-     * customer or partner defined string.
-     * This field is immutable after creation time.
+     * When the finding is for a non-Google Cloud resource, the resourceName can
+     * be a customer or partner defined string. This field is immutable after
+     * creation time.
      * 
* * string resource_name = 3; @@ -1810,12 +1840,12 @@ public Builder setResourceName(java.lang.String value) { * * *
-     * For findings on Google Cloud Platform (GCP) resources, the full resource
-     * name of the GCP resource this finding is for. See:
+     * For findings on Google Cloud resources, the full resource
+     * name of the Google Cloud resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
-     * When the finding is for a non-GCP resource, the resourceName can be a
-     * customer or partner defined string.
-     * This field is immutable after creation time.
+     * When the finding is for a non-Google Cloud resource, the resourceName can
+     * be a customer or partner defined string. This field is immutable after
+     * creation time.
      * 
* * string resource_name = 3; @@ -1832,12 +1862,12 @@ public Builder clearResourceName() { * * *
-     * For findings on Google Cloud Platform (GCP) resources, the full resource
-     * name of the GCP resource this finding is for. See:
+     * For findings on Google Cloud resources, the full resource
+     * name of the Google Cloud resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
-     * When the finding is for a non-GCP resource, the resourceName can be a
-     * customer or partner defined string.
-     * This field is immutable after creation time.
+     * When the finding is for a non-Google Cloud resource, the resourceName can
+     * be a customer or partner defined string. This field is immutable after
+     * creation time.
      * 
* * string resource_name = 3; @@ -1868,6 +1898,7 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { * * @return The enum numeric value on the wire for state. */ + @java.lang.Override public int getStateValue() { return state_; } @@ -1884,6 +1915,7 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { + state_ = value; onChanged(); return this; @@ -1899,6 +1931,7 @@ public Builder setStateValue(int value) { * * @return The state. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1.Finding.State result = @@ -2067,9 +2100,9 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) { * * *
-     * The URI that, if available, points to a web page outside of Cloud SCC
-     * where additional information about the finding can be found. This field is
-     * guaranteed to be either empty or a well formed URL.
+     * The URI that, if available, points to a web page outside of Security
+     * Command Center where additional information about the finding can be found.
+     * This field is guaranteed to be either empty or a well formed URL.
      * 
* * string external_uri = 6; @@ -2091,9 +2124,9 @@ public java.lang.String getExternalUri() { * * *
-     * The URI that, if available, points to a web page outside of Cloud SCC
-     * where additional information about the finding can be found. This field is
-     * guaranteed to be either empty or a well formed URL.
+     * The URI that, if available, points to a web page outside of Security
+     * Command Center where additional information about the finding can be found.
+     * This field is guaranteed to be either empty or a well formed URL.
      * 
* * string external_uri = 6; @@ -2115,9 +2148,9 @@ public com.google.protobuf.ByteString getExternalUriBytes() { * * *
-     * The URI that, if available, points to a web page outside of Cloud SCC
-     * where additional information about the finding can be found. This field is
-     * guaranteed to be either empty or a well formed URL.
+     * The URI that, if available, points to a web page outside of Security
+     * Command Center where additional information about the finding can be found.
+     * This field is guaranteed to be either empty or a well formed URL.
      * 
* * string external_uri = 6; @@ -2138,9 +2171,9 @@ public Builder setExternalUri(java.lang.String value) { * * *
-     * The URI that, if available, points to a web page outside of Cloud SCC
-     * where additional information about the finding can be found. This field is
-     * guaranteed to be either empty or a well formed URL.
+     * The URI that, if available, points to a web page outside of Security
+     * Command Center where additional information about the finding can be found.
+     * This field is guaranteed to be either empty or a well formed URL.
      * 
* * string external_uri = 6; @@ -2157,9 +2190,9 @@ public Builder clearExternalUri() { * * *
-     * The URI that, if available, points to a web page outside of Cloud SCC
-     * where additional information about the finding can be found. This field is
-     * guaranteed to be either empty or a well formed URL.
+     * The URI that, if available, points to a web page outside of Security
+     * Command Center where additional information about the finding can be found.
+     * This field is guaranteed to be either empty or a well formed URL.
      * 
* * string external_uri = 6; @@ -2220,6 +2253,7 @@ public int getSourcePropertiesCount() { * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public boolean containsSourceProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -2227,6 +2261,7 @@ public boolean containsSourceProperties(java.lang.String key) { return internalGetSourceProperties().getMap().containsKey(key); } /** Use {@link #getSourcePropertiesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getSourceProperties() { return getSourcePropertiesMap(); @@ -2243,6 +2278,7 @@ public java.util.Map getSourcePrope * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public java.util.Map getSourcePropertiesMap() { return internalGetSourceProperties().getMap(); } @@ -2258,6 +2294,7 @@ public java.util.Map getSourcePrope * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getSourcePropertiesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { @@ -2279,6 +2316,7 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault( * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -2788,7 +2826,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2802,7 +2840,7 @@ public boolean hasCreateTime() { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2822,7 +2860,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2844,7 +2882,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2863,7 +2901,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2887,7 +2925,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2907,7 +2945,7 @@ public Builder clearCreateTime() { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2921,7 +2959,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2939,7 +2977,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java index 3b410b6aa..26138f711 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java @@ -91,12 +91,12 @@ public interface FindingOrBuilder * * *
-   * For findings on Google Cloud Platform (GCP) resources, the full resource
-   * name of the GCP resource this finding is for. See:
+   * For findings on Google Cloud resources, the full resource
+   * name of the Google Cloud resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
-   * When the finding is for a non-GCP resource, the resourceName can be a
-   * customer or partner defined string.
-   * This field is immutable after creation time.
+   * When the finding is for a non-Google Cloud resource, the resourceName can
+   * be a customer or partner defined string. This field is immutable after
+   * creation time.
    * 
* * string resource_name = 3; @@ -108,12 +108,12 @@ public interface FindingOrBuilder * * *
-   * For findings on Google Cloud Platform (GCP) resources, the full resource
-   * name of the GCP resource this finding is for. See:
+   * For findings on Google Cloud resources, the full resource
+   * name of the Google Cloud resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
-   * When the finding is for a non-GCP resource, the resourceName can be a
-   * customer or partner defined string.
-   * This field is immutable after creation time.
+   * When the finding is for a non-Google Cloud resource, the resourceName can
+   * be a customer or partner defined string. This field is immutable after
+   * creation time.
    * 
* * string resource_name = 3; @@ -180,9 +180,9 @@ public interface FindingOrBuilder * * *
-   * The URI that, if available, points to a web page outside of Cloud SCC
-   * where additional information about the finding can be found. This field is
-   * guaranteed to be either empty or a well formed URL.
+   * The URI that, if available, points to a web page outside of Security
+   * Command Center where additional information about the finding can be found.
+   * This field is guaranteed to be either empty or a well formed URL.
    * 
* * string external_uri = 6; @@ -194,9 +194,9 @@ public interface FindingOrBuilder * * *
-   * The URI that, if available, points to a web page outside of Cloud SCC
-   * where additional information about the finding can be found. This field is
-   * guaranteed to be either empty or a well formed URL.
+   * The URI that, if available, points to a web page outside of Security
+   * Command Center where additional information about the finding can be found.
+   * This field is guaranteed to be either empty or a well formed URL.
    * 
* * string external_uri = 6; @@ -367,7 +367,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * The time at which the finding was created in Cloud SCC.
+   * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; @@ -379,7 +379,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * The time at which the finding was created in Cloud SCC.
+   * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; @@ -391,7 +391,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * The time at which the finding was created in Cloud SCC.
+   * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java deleted file mode 100644 index 7bda84131..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.securitycenter.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -/** - * AUTO-GENERATED DOCUMENTATION AND CLASS - * - * @deprecated This resource name class will be removed in the next major version. - */ -@javax.annotation.Generated("by GAPIC protoc plugin") -@Deprecated -public class FindingSecurityMarksName extends SecurityMarksName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "organizations/{organization}/sources/{source}/findings/{finding}/securityMarks"); - - private volatile Map fieldValuesMap; - - private final String organization; - private final String source; - private final String finding; - - public String getOrganization() { - return organization; - } - - public String getSource() { - return source; - } - - public String getFinding() { - return finding; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private FindingSecurityMarksName(Builder builder) { - organization = Preconditions.checkNotNull(builder.getOrganization()); - source = Preconditions.checkNotNull(builder.getSource()); - finding = Preconditions.checkNotNull(builder.getFinding()); - } - - public static FindingSecurityMarksName of(String organization, String source, String finding) { - return newBuilder().setOrganization(organization).setSource(source).setFinding(finding).build(); - } - - public static String format(String organization, String source, String finding) { - return newBuilder() - .setOrganization(organization) - .setSource(source) - .setFinding(finding) - .build() - .toString(); - } - - public static FindingSecurityMarksName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "FindingSecurityMarksName.parse: formattedString not in valid format"); - return of(matchMap.get("organization"), matchMap.get("source"), matchMap.get("finding")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (FindingSecurityMarksName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("organization", organization); - fieldMapBuilder.put("source", source); - fieldMapBuilder.put("finding", finding); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate( - "organization", organization, "source", source, "finding", finding); - } - - /** Builder for FindingSecurityMarksName. */ - public static class Builder extends SecurityMarksName.Builder { - - private String organization; - private String source; - private String finding; - - public String getOrganization() { - return organization; - } - - public String getSource() { - return source; - } - - public String getFinding() { - return finding; - } - - public Builder setOrganization(String organization) { - this.organization = organization; - return this; - } - - public Builder setSource(String source) { - this.source = source; - return this; - } - - public Builder setFinding(String finding) { - this.finding = finding; - return this; - } - - private Builder() {} - - private Builder(FindingSecurityMarksName findingSecurityMarksName) { - organization = findingSecurityMarksName.organization; - source = findingSecurityMarksName.source; - finding = findingSecurityMarksName.finding; - } - - public FindingSecurityMarksName build() { - return new FindingSecurityMarksName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof FindingSecurityMarksName) { - FindingSecurityMarksName that = (FindingSecurityMarksName) o; - return (this.organization.equals(that.organization)) - && (this.source.equals(that.source)) - && (this.finding.equals(that.finding)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= organization.hashCode(); - h *= 1000003; - h ^= source.hashCode(); - h *= 1000003; - h ^= finding.hashCode(); - return h; - } -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java index 1875a17c5..6a00f74f0 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -152,6 +153,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java index 29adc09fc..039e2ad8a 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java @@ -128,6 +128,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -153,6 +154,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java index c167336eb..71b1096f2 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -152,6 +153,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java index 9997b7a9a..1867e0021 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java @@ -186,6 +186,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -211,6 +212,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -253,13 +255,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -272,12 +274,17 @@ public com.google.protobuf.ByteString getParentBytes() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing:`resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; * * @return The filter. */ + @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -317,13 +324,13 @@ public java.lang.String getFilter() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -336,12 +343,17 @@ public java.lang.String getFilter() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing:`resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; * * @return The bytes for filter. */ + @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -380,6 +392,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * @return The groupBy. */ + @java.lang.Override public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { @@ -415,6 +428,7 @@ public java.lang.String getGroupBy() { * * @return The bytes for groupBy. */ + @java.lang.Override public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { @@ -461,6 +475,7 @@ public com.google.protobuf.ByteString getGroupByBytes() { * * @return Whether the compareDuration field is set. */ + @java.lang.Override public boolean hasCompareDuration() { return compareDuration_ != null; } @@ -496,6 +511,7 @@ public boolean hasCompareDuration() { * * @return The compareDuration. */ + @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() @@ -531,6 +547,7 @@ public com.google.protobuf.Duration getCompareDuration() { * * .google.protobuf.Duration compare_duration = 4; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return getCompareDuration(); } @@ -551,6 +568,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -568,6 +586,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -583,6 +602,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 5; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -602,6 +622,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return The pageToken. */ + @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -626,6 +647,7 @@ public java.lang.String getPageToken() { * * @return The bytes for pageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -652,6 +674,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } @@ -1244,13 +1267,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1263,6 +1286,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing:`resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1308,13 +1335,13 @@ public java.lang.String getFilter() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1327,6 +1354,10 @@ public java.lang.String getFilter() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing:`resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1372,13 +1403,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1391,6 +1422,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing:`resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1435,13 +1470,13 @@ public Builder setFilter(java.lang.String value) { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1454,6 +1489,10 @@ public Builder setFilter(java.lang.String value) { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing:`resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1494,13 +1533,13 @@ public Builder clearFilter() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1513,6 +1552,10 @@ public Builder clearFilter() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing:`resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -2411,6 +2454,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java index f2c357389..3207dce69 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java @@ -82,13 +82,13 @@ public interface GroupAssetsRequestOrBuilder * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -101,6 +101,10 @@ public interface GroupAssetsRequestOrBuilder * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing:`resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -136,13 +140,13 @@ public interface GroupAssetsRequestOrBuilder * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -155,6 +159,10 @@ public interface GroupAssetsRequestOrBuilder * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing:`resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java index 8114a0710..75cbbfd90 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java @@ -161,6 +161,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; */ + @java.lang.Override public java.util.List getGroupByResultsList() { return groupByResults_; } @@ -175,6 +176,7 @@ public java.util.List getGroupBy * * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; */ + @java.lang.Override public java.util.List getGroupByResultsOrBuilderList() { return groupByResults_; @@ -190,6 +192,7 @@ public java.util.List getGroupBy * * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; */ + @java.lang.Override public int getGroupByResultsCount() { return groupByResults_.size(); } @@ -204,6 +207,7 @@ public int getGroupByResultsCount() { * * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index) { return groupByResults_.get(index); } @@ -218,6 +222,7 @@ public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int inde * * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder( int index) { return groupByResults_.get(index); @@ -236,6 +241,7 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -250,6 +256,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -262,6 +269,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 2; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -280,6 +288,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return The nextPageToken. */ + @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -303,6 +312,7 @@ public java.lang.String getNextPageToken() { * * @return The bytes for nextPageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -328,6 +338,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } @@ -1450,6 +1461,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java index f126f35e4..01834d538 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java @@ -188,6 +188,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -215,6 +216,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -260,17 +262,22 @@ public com.google.protobuf.ByteString getParentBytes() { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; * * @return The filter. */ + @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -313,17 +320,22 @@ public java.lang.String getFilter() { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; * * @return The bytes for filter. */ + @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -358,6 +370,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * @return The groupBy. */ + @java.lang.Override public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { @@ -389,6 +402,7 @@ public java.lang.String getGroupBy() { * * @return The bytes for groupBy. */ + @java.lang.Override public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { @@ -417,6 +431,7 @@ public com.google.protobuf.ByteString getGroupByBytes() { * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -434,6 +449,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -449,6 +465,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 4; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -492,6 +509,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return Whether the compareDuration field is set. */ + @java.lang.Override public boolean hasCompareDuration() { return compareDuration_ != null; } @@ -532,6 +550,7 @@ public boolean hasCompareDuration() { * * @return The compareDuration. */ + @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() @@ -572,6 +591,7 @@ public com.google.protobuf.Duration getCompareDuration() { * * .google.protobuf.Duration compare_duration = 5; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return getCompareDuration(); } @@ -591,6 +611,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * @return The pageToken. */ + @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -615,6 +636,7 @@ public java.lang.String getPageToken() { * * @return The bytes for pageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -641,6 +663,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } @@ -1246,11 +1269,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1299,11 +1326,15 @@ public java.lang.String getFilter() { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1352,11 +1383,15 @@ public com.google.protobuf.ByteString getFilterBytes() { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1404,11 +1439,15 @@ public Builder setFilter(java.lang.String value) { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1452,11 +1491,15 @@ public Builder clearFilter() { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -2380,6 +2423,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java index 14186d523..e33f8f505 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java @@ -89,11 +89,15 @@ public interface GroupFindingsRequestOrBuilder * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -132,11 +136,15 @@ public interface GroupFindingsRequestOrBuilder * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java index e94e8b3b0..1df2dc53b 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java @@ -161,6 +161,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; */ + @java.lang.Override public java.util.List getGroupByResultsList() { return groupByResults_; } @@ -175,6 +176,7 @@ public java.util.List getGroupBy * * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; */ + @java.lang.Override public java.util.List getGroupByResultsOrBuilderList() { return groupByResults_; @@ -190,6 +192,7 @@ public java.util.List getGroupBy * * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; */ + @java.lang.Override public int getGroupByResultsCount() { return groupByResults_.size(); } @@ -204,6 +207,7 @@ public int getGroupByResultsCount() { * * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index) { return groupByResults_.get(index); } @@ -218,6 +222,7 @@ public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int inde * * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder( int index) { return groupByResults_.get(index); @@ -236,6 +241,7 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -250,6 +256,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -262,6 +269,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 2; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -280,6 +288,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return The nextPageToken. */ + @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -303,6 +312,7 @@ public java.lang.String getNextPageToken() { * * @return The bytes for nextPageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -328,6 +338,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } @@ -1450,6 +1461,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java index f6c43f8d9..a16b452a0 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java @@ -172,6 +172,7 @@ public int getPropertiesCount() { * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public boolean containsProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -179,6 +180,7 @@ public boolean containsProperties(java.lang.String key) { return internalGetProperties().getMap().containsKey(key); } /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); @@ -192,6 +194,7 @@ public java.util.Map getProperties( * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } @@ -204,6 +207,7 @@ public java.util.Map getPropertiesM * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public com.google.protobuf.Value getPropertiesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { @@ -222,6 +226,7 @@ public com.google.protobuf.Value getPropertiesOrDefault( * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -247,6 +252,7 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { * * @return The count. */ + @java.lang.Override public long getCount() { return count_; } @@ -647,6 +653,7 @@ public int getPropertiesCount() { * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public boolean containsProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -654,6 +661,7 @@ public boolean containsProperties(java.lang.String key) { return internalGetProperties().getMap().containsKey(key); } /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); @@ -667,6 +675,7 @@ public java.util.Map getProperties( * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } @@ -679,6 +688,7 @@ public java.util.Map getPropertiesM * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public com.google.protobuf.Value getPropertiesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { @@ -697,6 +707,7 @@ public com.google.protobuf.Value getPropertiesOrDefault( * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -780,6 +791,7 @@ public Builder putAllProperties( * * @return The count. */ + @java.lang.Override public long getCount() { return count_; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java index ea22332ea..5f9697aed 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java @@ -201,6 +201,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -226,6 +227,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -268,13 +270,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -287,12 +289,17 @@ public com.google.protobuf.ByteString getParentBytes() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; * * @return The filter. */ + @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -332,13 +339,13 @@ public java.lang.String getFilter() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -351,12 +358,17 @@ public java.lang.String getFilter() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; * * @return The bytes for filter. */ + @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -401,6 +413,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * @return The orderBy. */ + @java.lang.Override public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { @@ -442,6 +455,7 @@ public java.lang.String getOrderBy() { * * @return The bytes for orderBy. */ + @java.lang.Override public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { @@ -470,6 +484,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -487,6 +502,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -502,6 +518,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 4; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -538,6 +555,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return Whether the compareDuration field is set. */ + @java.lang.Override public boolean hasCompareDuration() { return compareDuration_ != null; } @@ -571,6 +589,7 @@ public boolean hasCompareDuration() { * * @return The compareDuration. */ + @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() @@ -604,6 +623,7 @@ public com.google.protobuf.Duration getCompareDuration() { * * .google.protobuf.Duration compare_duration = 5; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return getCompareDuration(); } @@ -623,6 +643,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * @return Whether the fieldMask field is set. */ + @java.lang.Override public boolean hasFieldMask() { return fieldMask_ != null; } @@ -639,6 +660,7 @@ public boolean hasFieldMask() { * * @return The fieldMask. */ + @java.lang.Override public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } @@ -653,6 +675,7 @@ public com.google.protobuf.FieldMask getFieldMask() { * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { return getFieldMask(); } @@ -672,6 +695,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * @return The pageToken. */ + @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -696,6 +720,7 @@ public java.lang.String getPageToken() { * * @return The bytes for pageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -722,6 +747,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } @@ -1341,13 +1367,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1360,6 +1386,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1405,13 +1435,13 @@ public java.lang.String getFilter() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1424,6 +1454,10 @@ public java.lang.String getFilter() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1469,13 +1503,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1488,6 +1522,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1532,13 +1570,13 @@ public Builder setFilter(java.lang.String value) { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1551,6 +1589,10 @@ public Builder setFilter(java.lang.String value) { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1591,13 +1633,13 @@ public Builder clearFilter() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1610,6 +1652,10 @@ public Builder clearFilter() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -2717,6 +2763,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java index d51a62bfc..4cb06ab9e 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java @@ -82,13 +82,13 @@ public interface ListAssetsRequestOrBuilder * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -101,6 +101,10 @@ public interface ListAssetsRequestOrBuilder * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -136,13 +140,13 @@ public interface ListAssetsRequestOrBuilder * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -155,6 +159,10 @@ public interface ListAssetsRequestOrBuilder * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java index 9b8211bdd..31c2b632b 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java @@ -478,6 +478,10 @@ public StateChange findValueByNumber(int number) { }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } return getDescriptor().getValues().get(ordinal()); } @@ -526,6 +530,7 @@ private StateChange(int value) { * * @return Whether the asset field is set. */ + @java.lang.Override public boolean hasAsset() { return asset_ != null; } @@ -540,6 +545,7 @@ public boolean hasAsset() { * * @return The asset. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Asset getAsset() { return asset_ == null ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() @@ -554,6 +560,7 @@ public com.google.cloud.securitycenter.v1.Asset getAsset() { * * .google.cloud.securitycenter.v1.Asset asset = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { return getAsset(); } @@ -573,6 +580,7 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { * * @return The enum numeric value on the wire for stateChange. */ + @java.lang.Override public int getStateChangeValue() { return stateChange_; } @@ -589,6 +597,7 @@ public int getStateChangeValue() { * * @return The stateChange. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") @@ -1168,6 +1177,7 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { * * @return The enum numeric value on the wire for stateChange. */ + @java.lang.Override public int getStateChangeValue() { return stateChange_; } @@ -1186,6 +1196,7 @@ public int getStateChangeValue() { * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { + stateChange_ = value; onChanged(); return this; @@ -1203,6 +1214,7 @@ public Builder setStateChangeValue(int value) { * * @return The stateChange. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") @@ -1329,6 +1341,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; * */ + @java.lang.Override public java.util.List getListAssetsResultsList() { return listAssetsResults_; @@ -1344,6 +1357,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; * */ + @java.lang.Override public java.util.List< ? extends com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> getListAssetsResultsOrBuilderList() { @@ -1360,6 +1374,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; * */ + @java.lang.Override public int getListAssetsResultsCount() { return listAssetsResults_.size(); } @@ -1374,6 +1389,7 @@ public int getListAssetsResultsCount() { * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { return listAssetsResults_.get(index); @@ -1389,6 +1405,7 @@ public int getListAssetsResultsCount() { * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder(int index) { return listAssetsResults_.get(index); @@ -1407,6 +1424,7 @@ public int getListAssetsResultsCount() { * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -1421,6 +1439,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -1433,6 +1452,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 2; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -1451,6 +1471,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return The nextPageToken. */ + @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -1474,6 +1495,7 @@ public java.lang.String getNextPageToken() { * * @return The bytes for nextPageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -1499,6 +1521,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } @@ -2642,6 +2665,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java index 216601d3c..fa00d7905 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java @@ -203,6 +203,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -230,6 +231,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -275,17 +277,22 @@ public com.google.protobuf.ByteString getParentBytes() { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; * * @return The filter. */ + @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -328,17 +335,22 @@ public java.lang.String getFilter() { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; * * @return The bytes for filter. */ + @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -380,6 +392,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * @return The orderBy. */ + @java.lang.Override public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { @@ -418,6 +431,7 @@ public java.lang.String getOrderBy() { * * @return The bytes for orderBy. */ + @java.lang.Override public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { @@ -446,6 +460,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -463,6 +478,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -478,6 +494,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 4; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -520,6 +537,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return Whether the compareDuration field is set. */ + @java.lang.Override public boolean hasCompareDuration() { return compareDuration_ != null; } @@ -559,6 +577,7 @@ public boolean hasCompareDuration() { * * @return The compareDuration. */ + @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() @@ -598,6 +617,7 @@ public com.google.protobuf.Duration getCompareDuration() { * * .google.protobuf.Duration compare_duration = 5; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return getCompareDuration(); } @@ -617,6 +637,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * @return Whether the fieldMask field is set. */ + @java.lang.Override public boolean hasFieldMask() { return fieldMask_ != null; } @@ -633,6 +654,7 @@ public boolean hasFieldMask() { * * @return The fieldMask. */ + @java.lang.Override public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } @@ -647,6 +669,7 @@ public com.google.protobuf.FieldMask getFieldMask() { * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { return getFieldMask(); } @@ -666,6 +689,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * @return The pageToken. */ + @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -690,6 +714,7 @@ public java.lang.String getPageToken() { * * @return The bytes for pageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -716,6 +741,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } @@ -1349,11 +1375,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1402,11 +1432,15 @@ public java.lang.String getFilter() { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1455,11 +1489,15 @@ public com.google.protobuf.ByteString getFilterBytes() { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1507,11 +1545,15 @@ public Builder setFilter(java.lang.String value) { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1555,11 +1597,15 @@ public Builder clearFilter() { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -2706,6 +2752,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java index 4d95869f4..5ae5d5dc6 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java @@ -89,11 +89,15 @@ public interface ListFindingsRequestOrBuilder * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -132,11 +136,15 @@ public interface ListFindingsRequestOrBuilder * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java index 24ac8e7b4..7aaf82e7a 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java @@ -573,6 +573,10 @@ public StateChange findValueByNumber(int number) { }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } return getDescriptor().getValues().get(ordinal()); } @@ -744,7 +748,7 @@ public interface ResourceOrBuilder * * *
-     * Information related to the Google Cloud Platform (GCP) resource that is
+     * Information related to the Google Cloud resource that is
      * associated with this finding.
      * 
* @@ -884,6 +888,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -907,6 +912,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -932,6 +938,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The projectName. */ + @java.lang.Override public java.lang.String getProjectName() { java.lang.Object ref = projectName_; if (ref instanceof java.lang.String) { @@ -954,6 +961,7 @@ public java.lang.String getProjectName() { * * @return The bytes for projectName. */ + @java.lang.Override public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof java.lang.String) { @@ -979,6 +987,7 @@ public com.google.protobuf.ByteString getProjectNameBytes() { * * @return The projectDisplayName. */ + @java.lang.Override public java.lang.String getProjectDisplayName() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { @@ -1001,6 +1010,7 @@ public java.lang.String getProjectDisplayName() { * * @return The bytes for projectDisplayName. */ + @java.lang.Override public com.google.protobuf.ByteString getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { @@ -1026,6 +1036,7 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { * * @return The parentName. */ + @java.lang.Override public java.lang.String getParentName() { java.lang.Object ref = parentName_; if (ref instanceof java.lang.String) { @@ -1048,6 +1059,7 @@ public java.lang.String getParentName() { * * @return The bytes for parentName. */ + @java.lang.Override public com.google.protobuf.ByteString getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof java.lang.String) { @@ -1073,6 +1085,7 @@ public com.google.protobuf.ByteString getParentNameBytes() { * * @return The parentDisplayName. */ + @java.lang.Override public java.lang.String getParentDisplayName() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { @@ -1095,6 +1108,7 @@ public java.lang.String getParentDisplayName() { * * @return The bytes for parentDisplayName. */ + @java.lang.Override public com.google.protobuf.ByteString getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { @@ -1332,7 +1346,7 @@ protected Builder newBuilderForType( * * *
-       * Information related to the Google Cloud Platform (GCP) resource that is
+       * Information related to the Google Cloud resource that is
        * associated with this finding.
        * 
* @@ -2149,6 +2163,7 @@ public com.google.protobuf.Parser getParserForType() { * * @return Whether the finding field is set. */ + @java.lang.Override public boolean hasFinding() { return finding_ != null; } @@ -2163,6 +2178,7 @@ public boolean hasFinding() { * * @return The finding. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() @@ -2177,6 +2193,7 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() { * * .google.cloud.securitycenter.v1.Finding finding = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { return getFinding(); } @@ -2196,6 +2213,7 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() * * @return The enum numeric value on the wire for stateChange. */ + @java.lang.Override public int getStateChangeValue() { return stateChange_; } @@ -2212,6 +2230,7 @@ public int getStateChangeValue() { * * @return The stateChange. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") @@ -2241,6 +2260,7 @@ public int getStateChangeValue() { * * @return Whether the resource field is set. */ + @java.lang.Override public boolean hasResource() { return resource_ != null; } @@ -2257,6 +2277,7 @@ public boolean hasResource() { * * @return The resource. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getResource() { return resource_ == null @@ -2275,6 +2296,7 @@ public boolean hasResource() { * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .ResourceOrBuilder getResourceOrBuilder() { @@ -2884,6 +2906,7 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() * * @return The enum numeric value on the wire for stateChange. */ + @java.lang.Override public int getStateChangeValue() { return stateChange_; } @@ -2902,6 +2925,7 @@ public int getStateChangeValue() { * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { + stateChange_ = value; onChanged(); return this; @@ -2919,6 +2943,7 @@ public Builder setStateChangeValue(int value) { * * @return The stateChange. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") @@ -3271,6 +3296,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ + @java.lang.Override public java.util.List getListFindingsResultsList() { return listFindingsResults_; @@ -3286,6 +3312,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ + @java.lang.Override public java.util.List< ? extends com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> @@ -3303,6 +3330,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ + @java.lang.Override public int getListFindingsResultsCount() { return listFindingsResults_.size(); } @@ -3317,6 +3345,7 @@ public int getListFindingsResultsCount() { * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index) { return listFindingsResults_.get(index); @@ -3332,6 +3361,7 @@ public int getListFindingsResultsCount() { * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder(int index) { return listFindingsResults_.get(index); @@ -3350,6 +3380,7 @@ public int getListFindingsResultsCount() { * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -3364,6 +3395,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -3376,6 +3408,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 2; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -3394,6 +3427,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return The nextPageToken. */ + @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -3417,6 +3451,7 @@ public java.lang.String getNextPageToken() { * * @return The bytes for nextPageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -3442,6 +3477,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } @@ -4591,6 +4627,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java index ff4292af3..af42d4a1a 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java @@ -141,6 +141,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -166,6 +167,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -193,6 +195,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * @return The pageToken. */ + @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -217,6 +220,7 @@ public java.lang.String getPageToken() { * * @return The bytes for pageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -243,6 +247,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } @@ -853,6 +858,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java index 6d96f2c49..7fcea2326 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java @@ -144,6 +144,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; * */ + @java.lang.Override public java.util.List getNotificationConfigsList() { return notificationConfigs_; @@ -158,6 +159,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; * */ + @java.lang.Override public java.util.List getNotificationConfigsOrBuilderList() { return notificationConfigs_; @@ -172,6 +174,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; * */ + @java.lang.Override public int getNotificationConfigsCount() { return notificationConfigs_.size(); } @@ -185,6 +188,7 @@ public int getNotificationConfigsCount() { * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfigs(int index) { return notificationConfigs_.get(index); } @@ -198,6 +202,7 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder(int index) { return notificationConfigs_.get(index); @@ -217,6 +222,7 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf * * @return The nextPageToken. */ + @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -240,6 +246,7 @@ public java.lang.String getNextPageToken() { * * @return The bytes for nextPageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java index 196eeb7d8..9dce1adb3 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java @@ -140,6 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -165,6 +166,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -192,6 +194,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * @return The pageToken. */ + @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -216,6 +219,7 @@ public java.lang.String getPageToken() { * * @return The bytes for pageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -242,6 +246,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } @@ -846,6 +851,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java index 6e35a931d..9677176ee 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java @@ -138,6 +138,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ + @java.lang.Override public java.util.List getSourcesList() { return sources_; } @@ -150,6 +151,7 @@ public java.util.List getSourcesList( * * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ + @java.lang.Override public java.util.List getSourcesOrBuilderList() { return sources_; @@ -163,6 +165,7 @@ public java.util.List getSourcesList( * * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ + @java.lang.Override public int getSourcesCount() { return sources_.size(); } @@ -175,6 +178,7 @@ public int getSourcesCount() { * * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Source getSources(int index) { return sources_.get(index); } @@ -187,6 +191,7 @@ public com.google.cloud.securitycenter.v1.Source getSources(int index) { * * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(int index) { return sources_.get(index); } @@ -205,6 +210,7 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(in * * @return The nextPageToken. */ + @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -228,6 +234,7 @@ public java.lang.String getNextPageToken() { * * @return The bytes for nextPageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java index 7e55e5bf2..9fc49bfa3 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java @@ -343,6 +343,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The filter. */ + @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -380,6 +381,7 @@ public java.lang.String getFilter() { * * @return The bytes for filter. */ + @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -1024,6 +1026,7 @@ public NotifyConfigCase getNotifyConfigCase() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -1049,6 +1052,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -1074,6 +1078,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { @@ -1096,6 +1101,7 @@ public java.lang.String getDescription() { * * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { @@ -1122,6 +1128,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * @return The pubsubTopic. */ + @java.lang.Override public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { @@ -1145,6 +1152,7 @@ public java.lang.String getPubsubTopic() { * * @return The bytes for pubsubTopic. */ + @java.lang.Override public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { @@ -1171,6 +1179,7 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { * * @return The serviceAccount. */ + @java.lang.Override public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { @@ -1194,6 +1203,7 @@ public java.lang.String getServiceAccount() { * * @return The bytes for serviceAccount. */ + @java.lang.Override public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { @@ -1219,6 +1229,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * @return Whether the streamingConfig field is set. */ + @java.lang.Override public boolean hasStreamingConfig() { return notifyConfigCase_ == 5; } @@ -1234,6 +1245,7 @@ public boolean hasStreamingConfig() { * * @return The streamingConfig. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getStreamingConfig() { if (notifyConfigCase_ == 5) { @@ -1252,6 +1264,7 @@ public boolean hasStreamingConfig() { * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder() { if (notifyConfigCase_ == 5) { @@ -2159,6 +2172,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { * * @return Whether the streamingConfig field is set. */ + @java.lang.Override public boolean hasStreamingConfig() { return notifyConfigCase_ == 5; } @@ -2175,6 +2189,7 @@ public boolean hasStreamingConfig() { * * @return The streamingConfig. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getStreamingConfig() { if (streamingConfigBuilder_ == null) { @@ -2330,6 +2345,7 @@ public Builder clearStreamingConfig() { * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder() { if ((notifyConfigCase_ == 5) && (streamingConfigBuilder_ != null)) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java index 5a7653421..e6ad8d88c 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java @@ -91,6 +91,22 @@ private NotificationMessage( event_ = subBuilder.buildPartial(); } eventCase_ = 2; + break; + } + case 26: + { + com.google.cloud.securitycenter.v1.Resource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Resource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } + break; } default: @@ -184,6 +200,7 @@ public EventCase getEventCase() { * * @return The notificationConfigName. */ + @java.lang.Override public java.lang.String getNotificationConfigName() { java.lang.Object ref = notificationConfigName_; if (ref instanceof java.lang.String) { @@ -206,6 +223,7 @@ public java.lang.String getNotificationConfigName() { * * @return The bytes for notificationConfigName. */ + @java.lang.Override public com.google.protobuf.ByteString getNotificationConfigNameBytes() { java.lang.Object ref = notificationConfigName_; if (ref instanceof java.lang.String) { @@ -231,6 +249,7 @@ public com.google.protobuf.ByteString getNotificationConfigNameBytes() { * * @return Whether the finding field is set. */ + @java.lang.Override public boolean hasFinding() { return eventCase_ == 2; } @@ -246,6 +265,7 @@ public boolean hasFinding() { * * @return The finding. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { if (eventCase_ == 2) { return (com.google.cloud.securitycenter.v1.Finding) event_; @@ -262,6 +282,7 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() { * * .google.cloud.securitycenter.v1.Finding finding = 2; */ + @java.lang.Override public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { if (eventCase_ == 2) { return (com.google.cloud.securitycenter.v1.Finding) event_; @@ -269,6 +290,54 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() return com.google.cloud.securitycenter.v1.Finding.getDefaultInstance(); } + public static final int RESOURCE_FIELD_NUMBER = 3; + private com.google.cloud.securitycenter.v1.Resource resource_; + /** + * + * + *
+   * The Cloud resource tied to this notification's Finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + * + * @return Whether the resource field is set. + */ + @java.lang.Override + public boolean hasResource() { + return resource_ != null; + } + /** + * + * + *
+   * The Cloud resource tied to this notification's Finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + * + * @return The resource. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.Resource getResource() { + return resource_ == null + ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() + : resource_; + } + /** + * + * + *
+   * The Cloud resource tied to this notification's Finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder() { + return getResource(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -289,6 +358,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (eventCase_ == 2) { output.writeMessage(2, (com.google.cloud.securitycenter.v1.Finding) event_); } + if (resource_ != null) { + output.writeMessage(3, getResource()); + } unknownFields.writeTo(output); } @@ -306,6 +378,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.securitycenter.v1.Finding) event_); } + if (resource_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -323,6 +398,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.securitycenter.v1.NotificationMessage) obj; if (!getNotificationConfigName().equals(other.getNotificationConfigName())) return false; + if (hasResource() != other.hasResource()) return false; + if (hasResource()) { + if (!getResource().equals(other.getResource())) return false; + } if (!getEventCase().equals(other.getEventCase())) return false; switch (eventCase_) { case 2: @@ -344,6 +423,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NOTIFICATION_CONFIG_NAME_FIELD_NUMBER; hash = (53 * hash) + getNotificationConfigName().hashCode(); + if (hasResource()) { + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + } switch (eventCase_) { case 2: hash = (37 * hash) + FINDING_FIELD_NUMBER; @@ -500,6 +583,12 @@ public Builder clear() { super.clear(); notificationConfigName_ = ""; + if (resourceBuilder_ == null) { + resource_ = null; + } else { + resource_ = null; + resourceBuilder_ = null; + } eventCase_ = 0; event_ = null; return this; @@ -537,6 +626,11 @@ public com.google.cloud.securitycenter.v1.NotificationMessage buildPartial() { result.event_ = findingBuilder_.build(); } } + if (resourceBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = resourceBuilder_.build(); + } result.eventCase_ = eventCase_; onBuilt(); return result; @@ -592,6 +686,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationMessage notificationConfigName_ = other.notificationConfigName_; onChanged(); } + if (other.hasResource()) { + mergeResource(other.getResource()); + } switch (other.getEventCase()) { case FINDING: { @@ -770,6 +867,7 @@ public Builder setNotificationConfigNameBytes(com.google.protobuf.ByteString val * * @return Whether the finding field is set. */ + @java.lang.Override public boolean hasFinding() { return eventCase_ == 2; } @@ -785,6 +883,7 @@ public boolean hasFinding() { * * @return The finding. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { if (findingBuilder_ == null) { if (eventCase_ == 2) { @@ -922,6 +1021,7 @@ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { * * .google.cloud.securitycenter.v1.Finding finding = 2; */ + @java.lang.Override public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { if ((eventCase_ == 2) && (findingBuilder_ != null)) { return findingBuilder_.getMessageOrBuilder(); @@ -967,6 +1067,192 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() return findingBuilder_; } + private com.google.cloud.securitycenter.v1.Resource resource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Resource, + com.google.cloud.securitycenter.v1.Resource.Builder, + com.google.cloud.securitycenter.v1.ResourceOrBuilder> + resourceBuilder_; + /** + * + * + *
+     * The Cloud resource tied to this notification's Finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + * + * @return Whether the resource field is set. + */ + public boolean hasResource() { + return resourceBuilder_ != null || resource_ != null; + } + /** + * + * + *
+     * The Cloud resource tied to this notification's Finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + * + * @return The resource. + */ + public com.google.cloud.securitycenter.v1.Resource getResource() { + if (resourceBuilder_ == null) { + return resource_ == null + ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() + : resource_; + } else { + return resourceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The Cloud resource tied to this notification's Finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + */ + public Builder setResource(com.google.cloud.securitycenter.v1.Resource value) { + if (resourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + resourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The Cloud resource tied to this notification's Finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + */ + public Builder setResource( + com.google.cloud.securitycenter.v1.Resource.Builder builderForValue) { + if (resourceBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + resourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The Cloud resource tied to this notification's Finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + */ + public Builder mergeResource(com.google.cloud.securitycenter.v1.Resource value) { + if (resourceBuilder_ == null) { + if (resource_ != null) { + resource_ = + com.google.cloud.securitycenter.v1.Resource.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + resourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The Cloud resource tied to this notification's Finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + */ + public Builder clearResource() { + if (resourceBuilder_ == null) { + resource_ = null; + onChanged(); + } else { + resource_ = null; + resourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The Cloud resource tied to this notification's Finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + */ + public com.google.cloud.securitycenter.v1.Resource.Builder getResourceBuilder() { + + onChanged(); + return getResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Cloud resource tied to this notification's Finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + */ + public com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder() { + if (resourceBuilder_ != null) { + return resourceBuilder_.getMessageOrBuilder(); + } else { + return resource_ == null + ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() + : resource_; + } + } + /** + * + * + *
+     * The Cloud resource tied to this notification's Finding.
+     * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Resource, + com.google.cloud.securitycenter.v1.Resource.Builder, + com.google.cloud.securitycenter.v1.ResourceOrBuilder> + getResourceFieldBuilder() { + if (resourceBuilder_ == null) { + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Resource, + com.google.cloud.securitycenter.v1.Resource.Builder, + com.google.cloud.securitycenter.v1.ResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); + resource_ = null; + } + return resourceBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java index fa2902134..b0eb24c94 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java @@ -86,5 +86,40 @@ public interface NotificationMessageOrBuilder */ com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); + /** + * + * + *
+   * The Cloud resource tied to this notification's Finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + * + * @return Whether the resource field is set. + */ + boolean hasResource(); + /** + * + * + *
+   * The Cloud resource tied to this notification's Finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + * + * @return The resource. + */ + com.google.cloud.securitycenter.v1.Resource getResource(); + /** + * + * + *
+   * The Cloud resource tied to this notification's Finding.
+   * 
+ * + * .google.cloud.securitycenter.v1.Resource resource = 3; + */ + com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder(); + public com.google.cloud.securitycenter.v1.NotificationMessage.EventCase getEventCase(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java index 3e5c59d89..e211edb71 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java @@ -44,16 +44,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ation_message.proto\022\036google.cloud.securi" + "tycenter.v1\032\034google/api/annotations.prot" + "o\032,google/cloud/securitycenter/v1/findin" - + "g.proto\"|\n\023NotificationMessage\022 \n\030notifi" - + "cation_config_name\030\001 \001(\t\022:\n\007finding\030\002 \001(" - + "\0132\'.google.cloud.securitycenter.v1.Findi" - + "ngH\000B\007\n\005eventB\364\001\n\"com.google.cloud.secur" - + "itycenter.v1B\030NotificationMessageProtoP\001" - + "ZLgoogle.golang.org/genproto/googleapis/" - + "cloud/securitycenter/v1;securitycenter\252\002" - + "\036Google.Cloud.SecurityCenter.V1\312\002\036Google" - + "\\Cloud\\SecurityCenter\\V1\352\002!Google::Cloud" - + "::SecurityCenter::V1b\006proto3" + + "g.proto\032-google/cloud/securitycenter/v1/" + + "resource.proto\"\270\001\n\023NotificationMessage\022 " + + "\n\030notification_config_name\030\001 \001(\t\022:\n\007find" + + "ing\030\002 \001(\0132\'.google.cloud.securitycenter." + + "v1.FindingH\000\022:\n\010resource\030\003 \001(\0132(.google." + + "cloud.securitycenter.v1.ResourceB\007\n\005even" + + "tB\364\001\n\"com.google.cloud.securitycenter.v1" + + "B\030NotificationMessageProtoP\001ZLgoogle.gol" + + "ang.org/genproto/googleapis/cloud/securi" + + "tycenter/v1;securitycenter\252\002\036Google.Clou" + + "d.SecurityCenter.V1\312\002\036Google\\Cloud\\Secur" + + "ityCenter\\V1\352\002!Google::Cloud::SecurityCe" + + "nter::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -61,6 +64,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.ResourceProto.getDescriptor(), }); internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor = getDescriptor().getMessageTypes().get(0); @@ -68,10 +72,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor, new java.lang.String[] { - "NotificationConfigName", "Finding", "Event", + "NotificationConfigName", "Finding", "Resource", "Event", }); com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.ResourceProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java index 1559515c2..f764d00d1 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java @@ -22,8 +22,8 @@ * * *
- * User specified settings that are attached to the Cloud Security Command
- * Center (Cloud SCC) organization.
+ * User specified settings that are attached to the Security Command
+ * Center organization.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings} @@ -467,6 +467,10 @@ public InclusionMode findValueByNumber(int number) { }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } return getDescriptor().getValues().get(ordinal()); } @@ -579,6 +583,7 @@ public com.google.protobuf.ByteString getProjectIdsBytes(int index) { * * @return The enum numeric value on the wire for inclusionMode. */ + @java.lang.Override public int getInclusionModeValue() { return inclusionMode_; } @@ -595,6 +600,7 @@ public int getInclusionModeValue() { * * @return The inclusionMode. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig .InclusionMode getInclusionMode() { @@ -1177,6 +1183,7 @@ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { * * @return The enum numeric value on the wire for inclusionMode. */ + @java.lang.Override public int getInclusionModeValue() { return inclusionMode_; } @@ -1195,6 +1202,7 @@ public int getInclusionModeValue() { * @return This builder for chaining. */ public Builder setInclusionModeValue(int value) { + inclusionMode_ = value; onChanged(); return this; @@ -1212,6 +1220,7 @@ public Builder setInclusionModeValue(int value) { * * @return The inclusionMode. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig .InclusionMode getInclusionMode() { @@ -1343,6 +1352,7 @@ public com.google.protobuf.Parser getParserForType() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -1368,6 +1378,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -1396,6 +1407,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The enableAssetDiscovery. */ + @java.lang.Override public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; } @@ -1416,6 +1428,7 @@ public boolean getEnableAssetDiscovery() { * * @return Whether the assetDiscoveryConfig field is set. */ + @java.lang.Override public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfig_ != null; } @@ -1432,6 +1445,7 @@ public boolean hasAssetDiscoveryConfig() { * * @return The assetDiscoveryConfig. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { return assetDiscoveryConfig_ == null @@ -1450,6 +1464,7 @@ public boolean hasAssetDiscoveryConfig() { * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { return getAssetDiscoveryConfig(); @@ -1643,8 +1658,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * User specified settings that are attached to the Cloud Security Command
-   * Center (Cloud SCC) organization.
+   * User specified settings that are attached to the Security Command
+   * Center organization.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings} @@ -1955,6 +1970,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * @return The enableAssetDiscovery. */ + @java.lang.Override public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java new file mode 100644 index 000000000..47eb179fe --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java @@ -0,0 +1,1357 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/resource.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Information related to the Google Cloud resource.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Resource} + */ +public final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Resource) + ResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Resource.newBuilder() to construct. + private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Resource() { + name_ = ""; + project_ = ""; + projectDisplayName_ = ""; + parent_ = ""; + parentDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Resource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Resource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectDisplayName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + parentDisplayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ResourceProto + .internal_static_google_cloud_securitycenter_v1_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.ResourceProto + .internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Resource.class, + com.google.cloud.securitycenter.v1.Resource.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The full resource name of the resource. See:
+   * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The full resource name of the resource. See:
+   * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 2; + private volatile java.lang.Object project_; + /** + * + * + *
+   * The full resource name of project that the resource belongs to.
+   * 
+ * + * string project = 2; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + * + * + *
+   * The full resource name of project that the resource belongs to.
+   * 
+ * + * string project = 2; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object projectDisplayName_; + /** + * + * + *
+   * The human readable name of project that the resource belongs to.
+   * 
+ * + * string project_display_name = 3; + * + * @return The projectDisplayName. + */ + @java.lang.Override + public java.lang.String getProjectDisplayName() { + java.lang.Object ref = projectDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * The human readable name of project that the resource belongs to.
+   * 
+ * + * string project_display_name = 3; + * + * @return The bytes for projectDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + java.lang.Object ref = projectDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The full resource name of resource's parent.
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The full resource name of resource's parent.
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object parentDisplayName_; + /** + * + * + *
+   * The human readable name of resource's parent.
+   * 
+ * + * string parent_display_name = 5; + * + * @return The parentDisplayName. + */ + @java.lang.Override + public java.lang.String getParentDisplayName() { + java.lang.Object ref = parentDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * The human readable name of resource's parent.
+   * 
+ * + * string parent_display_name = 5; + * + * @return The bytes for parentDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentDisplayNameBytes() { + java.lang.Object ref = parentDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (!getProjectDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projectDisplayName_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + if (!getParentDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parentDisplayName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (!getProjectDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, projectDisplayName_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + if (!getParentDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parentDisplayName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.Resource)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.Resource other = + (com.google.cloud.securitycenter.v1.Resource) obj; + + if (!getName().equals(other.getName())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getParentDisplayName().equals(other.getParentDisplayName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + PROJECT_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getProjectDisplayName().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PARENT_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParentDisplayName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.Resource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Resource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Resource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Resource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Resource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Resource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Resource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Resource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Resource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Resource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.Resource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Resource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Resource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Information related to the Google Cloud resource.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Resource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Resource) + com.google.cloud.securitycenter.v1.ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ResourceProto + .internal_static_google_cloud_securitycenter_v1_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.ResourceProto + .internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Resource.class, + com.google.cloud.securitycenter.v1.Resource.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.Resource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + project_ = ""; + + projectDisplayName_ = ""; + + parent_ = ""; + + parentDisplayName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ResourceProto + .internal_static_google_cloud_securitycenter_v1_Resource_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Resource getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.Resource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Resource build() { + com.google.cloud.securitycenter.v1.Resource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Resource buildPartial() { + com.google.cloud.securitycenter.v1.Resource result = + new com.google.cloud.securitycenter.v1.Resource(this); + result.name_ = name_; + result.project_ = project_; + result.projectDisplayName_ = projectDisplayName_; + result.parent_ = parent_; + result.parentDisplayName_ = parentDisplayName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.Resource) { + return mergeFrom((com.google.cloud.securitycenter.v1.Resource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.Resource other) { + if (other == com.google.cloud.securitycenter.v1.Resource.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getProjectDisplayName().isEmpty()) { + projectDisplayName_ = other.projectDisplayName_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getParentDisplayName().isEmpty()) { + parentDisplayName_ = other.parentDisplayName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1.Resource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.securitycenter.v1.Resource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The full resource name of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The full resource name of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The full resource name of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
+     * The full resource name of project that the resource belongs to.
+     * 
+ * + * string project = 2; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The full resource name of project that the resource belongs to.
+     * 
+ * + * string project = 2; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The full resource name of project that the resource belongs to.
+     * 
+ * + * string project = 2; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of project that the resource belongs to.
+     * 
+ * + * string project = 2; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of project that the resource belongs to.
+     * 
+ * + * string project = 2; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object projectDisplayName_ = ""; + /** + * + * + *
+     * The human readable name of project that the resource belongs to.
+     * 
+ * + * string project_display_name = 3; + * + * @return The projectDisplayName. + */ + public java.lang.String getProjectDisplayName() { + java.lang.Object ref = projectDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The human readable name of project that the resource belongs to.
+     * 
+ * + * string project_display_name = 3; + * + * @return The bytes for projectDisplayName. + */ + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + java.lang.Object ref = projectDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The human readable name of project that the resource belongs to.
+     * 
+ * + * string project_display_name = 3; + * + * @param value The projectDisplayName to set. + * @return This builder for chaining. + */ + public Builder setProjectDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The human readable name of project that the resource belongs to.
+     * 
+ * + * string project_display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearProjectDisplayName() { + + projectDisplayName_ = getDefaultInstance().getProjectDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The human readable name of project that the resource belongs to.
+     * 
+ * + * string project_display_name = 3; + * + * @param value The bytes for projectDisplayName to set. + * @return This builder for chaining. + */ + public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectDisplayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The full resource name of resource's parent.
+     * 
+ * + * string parent = 4; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The full resource name of resource's parent.
+     * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The full resource name of resource's parent.
+     * 
+ * + * string parent = 4; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of resource's parent.
+     * 
+ * + * string parent = 4; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of resource's parent.
+     * 
+ * + * string parent = 4; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object parentDisplayName_ = ""; + /** + * + * + *
+     * The human readable name of resource's parent.
+     * 
+ * + * string parent_display_name = 5; + * + * @return The parentDisplayName. + */ + public java.lang.String getParentDisplayName() { + java.lang.Object ref = parentDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The human readable name of resource's parent.
+     * 
+ * + * string parent_display_name = 5; + * + * @return The bytes for parentDisplayName. + */ + public com.google.protobuf.ByteString getParentDisplayNameBytes() { + java.lang.Object ref = parentDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The human readable name of resource's parent.
+     * 
+ * + * string parent_display_name = 5; + * + * @param value The parentDisplayName to set. + * @return This builder for chaining. + */ + public Builder setParentDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parentDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The human readable name of resource's parent.
+     * 
+ * + * string parent_display_name = 5; + * + * @return This builder for chaining. + */ + public Builder clearParentDisplayName() { + + parentDisplayName_ = getDefaultInstance().getParentDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The human readable name of resource's parent.
+     * 
+ * + * string parent_display_name = 5; + * + * @param value The bytes for parentDisplayName to set. + * @return This builder for chaining. + */ + public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parentDisplayName_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Resource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Resource) + private static final com.google.cloud.securitycenter.v1.Resource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Resource(); + } + + public static com.google.cloud.securitycenter.v1.Resource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resource(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Resource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java new file mode 100644 index 000000000..838f45648 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/resource.proto + +package com.google.cloud.securitycenter.v1; + +public interface ResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Resource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The full resource name of the resource. See:
+   * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The full resource name of the resource. See:
+   * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The full resource name of project that the resource belongs to.
+   * 
+ * + * string project = 2; + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
+   * The full resource name of project that the resource belongs to.
+   * 
+ * + * string project = 2; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The human readable name of project that the resource belongs to.
+   * 
+ * + * string project_display_name = 3; + * + * @return The projectDisplayName. + */ + java.lang.String getProjectDisplayName(); + /** + * + * + *
+   * The human readable name of project that the resource belongs to.
+   * 
+ * + * string project_display_name = 3; + * + * @return The bytes for projectDisplayName. + */ + com.google.protobuf.ByteString getProjectDisplayNameBytes(); + + /** + * + * + *
+   * The full resource name of resource's parent.
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * The full resource name of resource's parent.
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The human readable name of resource's parent.
+   * 
+ * + * string parent_display_name = 5; + * + * @return The parentDisplayName. + */ + java.lang.String getParentDisplayName(); + /** + * + * + *
+   * The human readable name of resource's parent.
+   * 
+ * + * string parent_display_name = 5; + * + * @return The bytes for parentDisplayName. + */ + com.google.protobuf.ByteString getParentDisplayNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java new file mode 100644 index 000000000..ab79a7d37 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java @@ -0,0 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/resource.proto + +package com.google.cloud.securitycenter.v1; + +public final class ResourceProto { + private ResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/securitycenter/v1/resourc" + + "e.proto\022\036google.cloud.securitycenter.v1\032" + + "\034google/api/annotations.proto\"t\n\010Resourc" + + "e\022\014\n\004name\030\001 \001(\t\022\017\n\007project\030\002 \001(\t\022\034\n\024proj" + + "ect_display_name\030\003 \001(\t\022\016\n\006parent\030\004 \001(\t\022\033" + + "\n\023parent_display_name\030\005 \001(\tB\351\001\n\"com.goog" + + "le.cloud.securitycenter.v1B\rResourceProt" + + "oP\001ZLgoogle.golang.org/genproto/googleap" + + "is/cloud/securitycenter/v1;securitycente" + + "r\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Goo" + + "gle\\Cloud\\SecurityCenter\\V1\352\002!Google::Cl" + + "oud::SecurityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_Resource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Resource_descriptor, + new java.lang.String[] { + "Name", "Project", "ProjectDisplayName", "Parent", "ParentDisplayName", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java index 6a1fcc4be..32045910f 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -152,6 +153,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java index a48945368..cc039a87d 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java @@ -271,6 +271,10 @@ public State findValueByNumber(int number) { }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } return getDescriptor().getValues().get(ordinal()); } @@ -318,6 +322,7 @@ private State(int value) { * * @return The enum numeric value on the wire for state. */ + @java.lang.Override public int getStateValue() { return state_; } @@ -332,6 +337,7 @@ public int getStateValue() { * * @return The state. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result = @@ -354,6 +360,7 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getSta * * @return Whether the duration field is set. */ + @java.lang.Override public boolean hasDuration() { return duration_ != null; } @@ -368,6 +375,7 @@ public boolean hasDuration() { * * @return The duration. */ + @java.lang.Override public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } @@ -380,6 +388,7 @@ public com.google.protobuf.Duration getDuration() { * * .google.protobuf.Duration duration = 2; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { return getDuration(); } @@ -748,6 +757,7 @@ public Builder mergeFrom( * * @return The enum numeric value on the wire for state. */ + @java.lang.Override public int getStateValue() { return state_; } @@ -764,6 +774,7 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { + state_ = value; onChanged(); return this; @@ -779,6 +790,7 @@ public Builder setStateValue(int value) { * * @return The state. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result = diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java index 2dd96d3a7..6e6aa1238 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java @@ -22,9 +22,9 @@ * * *
- * User specified security marks that are attached to the parent Cloud Security
- * Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
- * SCC organization -- they can be modified and viewed by all users who have
+ * User specified security marks that are attached to the parent Security
+ * Command Center resource. Security marks are scoped within a Security Command
+ * Center organization -- they can be modified and viewed by all users who have
  * proper permissions on the organization.
  * 
* @@ -156,6 +156,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -182,6 +183,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -234,6 +236,7 @@ public int getMarksCount() { * * map<string, string> marks = 2; */ + @java.lang.Override public boolean containsMarks(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -241,6 +244,7 @@ public boolean containsMarks(java.lang.String key) { return internalGetMarks().getMap().containsKey(key); } /** Use {@link #getMarksMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getMarks() { return getMarksMap(); @@ -260,6 +264,7 @@ public java.util.Map getMarks() { * * map<string, string> marks = 2; */ + @java.lang.Override public java.util.Map getMarksMap() { return internalGetMarks().getMap(); } @@ -278,6 +283,7 @@ public java.util.Map getMarksMap() { * * map<string, string> marks = 2; */ + @java.lang.Override public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); @@ -300,6 +306,7 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String * * map<string, string> marks = 2; */ + @java.lang.Override public java.lang.String getMarksOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -491,9 +498,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * User specified security marks that are attached to the parent Cloud Security
-   * Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
-   * SCC organization -- they can be modified and viewed by all users who have
+   * User specified security marks that are attached to the parent Security
+   * Command Center resource. Security marks are scoped within a Security Command
+   * Center organization -- they can be modified and viewed by all users who have
    * proper permissions on the organization.
    * 
* @@ -841,6 +848,7 @@ public int getMarksCount() { * * map<string, string> marks = 2; */ + @java.lang.Override public boolean containsMarks(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -848,6 +856,7 @@ public boolean containsMarks(java.lang.String key) { return internalGetMarks().getMap().containsKey(key); } /** Use {@link #getMarksMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getMarks() { return getMarksMap(); @@ -867,6 +876,7 @@ public java.util.Map getMarks() { * * map<string, string> marks = 2; */ + @java.lang.Override public java.util.Map getMarksMap() { return internalGetMarks().getMap(); } @@ -885,6 +895,7 @@ public java.util.Map getMarksMap() { * * map<string, string> marks = 2; */ + @java.lang.Override public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); @@ -907,6 +918,7 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String * * map<string, string> marks = 2; */ + @java.lang.Override public java.lang.String getMarksOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksName.java index 8ba67f567..0a39cf715 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksName.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksName.java @@ -32,10 +32,10 @@ public class SecurityMarksName implements ResourceName { @Deprecated protected SecurityMarksName() {} - private static final PathTemplate ORGANIZATION_ASSET_PATH_TEMPLATE = + private static final PathTemplate ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE = PathTemplate.createWithoutUrlEncoding( "organizations/{organization}/assets/{asset}/securityMarks"); - private static final PathTemplate ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE = + private static final PathTemplate ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE = PathTemplate.createWithoutUrlEncoding( "organizations/{organization}/sources/{source}/findings/{finding}/securityMarks"); @@ -67,14 +67,14 @@ public String getFinding() { private SecurityMarksName(Builder builder) { organization = Preconditions.checkNotNull(builder.getOrganization()); asset = Preconditions.checkNotNull(builder.getAsset()); - pathTemplate = ORGANIZATION_ASSET_PATH_TEMPLATE; + pathTemplate = ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE; } - private SecurityMarksName(OrganizationSourceFindingBuilder builder) { + private SecurityMarksName(OrganizationSourceFindingSecurityMarksBuilder builder) { organization = Preconditions.checkNotNull(builder.getOrganization()); source = Preconditions.checkNotNull(builder.getSource()); finding = Preconditions.checkNotNull(builder.getFinding()); - pathTemplate = ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE; + pathTemplate = ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE; } public static Builder newBuilder() { @@ -82,13 +82,14 @@ public static Builder newBuilder() { } @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static Builder newOrganizationAssetBuilder() { + public static Builder newOrganizationAssetSecurityMarksBuilder() { return new Builder(); } @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static OrganizationSourceFindingBuilder newOrganizationSourceFindingBuilder() { - return new OrganizationSourceFindingBuilder(); + public static OrganizationSourceFindingSecurityMarksBuilder + newOrganizationSourceFindingSecurityMarksBuilder() { + return new OrganizationSourceFindingSecurityMarksBuilder(); } public Builder toBuilder() { @@ -96,18 +97,25 @@ public Builder toBuilder() { } public static SecurityMarksName of(String organization, String asset) { - return newOrganizationAssetBuilder().setOrganization(organization).setAsset(asset).build(); + return newOrganizationAssetSecurityMarksBuilder() + .setOrganization(organization) + .setAsset(asset) + .build(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static SecurityMarksName ofOrganizationAssetName(String organization, String asset) { - return newOrganizationAssetBuilder().setOrganization(organization).setAsset(asset).build(); + public static SecurityMarksName ofOrganizationAssetSecurityMarksName( + String organization, String asset) { + return newOrganizationAssetSecurityMarksBuilder() + .setOrganization(organization) + .setAsset(asset) + .build(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static SecurityMarksName ofOrganizationSourceFindingName( + public static SecurityMarksName ofOrganizationSourceFindingSecurityMarksName( String organization, String source, String finding) { - return newOrganizationSourceFindingBuilder() + return newOrganizationSourceFindingSecurityMarksBuilder() .setOrganization(organization) .setSource(source) .setFinding(finding) @@ -119,14 +127,14 @@ public static String format(String organization, String asset) { } @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatOrganizationAssetName(String organization, String asset) { + public static String formatOrganizationAssetSecurityMarksName(String organization, String asset) { return newBuilder().setOrganization(organization).setAsset(asset).build().toString(); } @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatOrganizationSourceFindingName( + public static String formatOrganizationSourceFindingSecurityMarksName( String organization, String source, String finding) { - return newOrganizationSourceFindingBuilder() + return newOrganizationSourceFindingSecurityMarksBuilder() .setOrganization(organization) .setSource(source) .setFinding(finding) @@ -138,21 +146,23 @@ public static SecurityMarksName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - if (ORGANIZATION_ASSET_PATH_TEMPLATE.matches(formattedString)) { - Map matchMap = ORGANIZATION_ASSET_PATH_TEMPLATE.match(formattedString); - return ofOrganizationAssetName(matchMap.get("organization"), matchMap.get("asset")); - } else if (ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE.matches(formattedString)) { + if (ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE.matches(formattedString)) { + Map matchMap = + ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE.match(formattedString); + return ofOrganizationAssetSecurityMarksName( + matchMap.get("organization"), matchMap.get("asset")); + } else if (ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE.matches(formattedString)) { Map matchMap = - ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE.match(formattedString); - return ofOrganizationSourceFindingName( + ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE.match(formattedString); + return ofOrganizationSourceFindingSecurityMarksName( matchMap.get("organization"), matchMap.get("source"), matchMap.get("finding")); } throw new ValidationException("JobName.parse: formattedString not in valid format"); } public static boolean isParsableFrom(String formattedString) { - return ORGANIZATION_ASSET_PATH_TEMPLATE.matches(formattedString) - || ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE.matches(formattedString); + return ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE.matches(formattedString) + || ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE.matches(formattedString); } @Override @@ -217,7 +227,7 @@ public Builder setAsset(String asset) { private Builder(SecurityMarksName securityMarksName) { Preconditions.checkArgument( - securityMarksName.pathTemplate == ORGANIZATION_ASSET_PATH_TEMPLATE, + securityMarksName.pathTemplate == ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE, "toBuilder is only supported when SecurityMarksName has the pattern of " + "organizations/{organization}/assets/{asset}/securityMarks."); organization = securityMarksName.organization; @@ -231,13 +241,13 @@ public SecurityMarksName build() { /** Builder for organizations/{organization}/sources/{source}/findings/{finding}/securityMarks. */ @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class OrganizationSourceFindingBuilder { + public static class OrganizationSourceFindingSecurityMarksBuilder { private String organization; private String source; private String finding; - private OrganizationSourceFindingBuilder() {} + private OrganizationSourceFindingSecurityMarksBuilder() {} public String getOrganization() { return organization; @@ -251,17 +261,17 @@ public String getFinding() { return finding; } - public OrganizationSourceFindingBuilder setOrganization(String organization) { + public OrganizationSourceFindingSecurityMarksBuilder setOrganization(String organization) { this.organization = organization; return this; } - public OrganizationSourceFindingBuilder setSource(String source) { + public OrganizationSourceFindingSecurityMarksBuilder setSource(String source) { this.source = source; return this; } - public OrganizationSourceFindingBuilder setFinding(String finding) { + public OrganizationSourceFindingSecurityMarksBuilder setFinding(String finding) { this.finding = finding; return this; } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksNames.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksNames.java deleted file mode 100644 index 6f82499af..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksNames.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.securitycenter.v1; - -/** - * AUTO-GENERATED DOCUMENTATION AND CLASS - * - * @deprecated This resource name class will be removed in the next major version. - */ -@javax.annotation.Generated("by GAPIC protoc plugin") -@Deprecated -public class SecurityMarksNames { - private SecurityMarksNames() {} - - public static SecurityMarksName parse(String resourceNameString) { - if (AssetSecurityMarksName.isParsableFrom(resourceNameString)) { - return AssetSecurityMarksName.parse(resourceNameString); - } - if (FindingSecurityMarksName.isParsableFrom(resourceNameString)) { - return FindingSecurityMarksName.parse(resourceNameString); - } - return UntypedSecurityMarksName.parse(resourceNameString); - } -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java index 12c23210a..8bb220a47 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java @@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -179,6 +180,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -206,6 +208,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The enum numeric value on the wire for state. */ + @java.lang.Override public int getStateValue() { return state_; } @@ -222,6 +225,7 @@ public int getStateValue() { * * @return The state. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1.Finding.State result = @@ -243,6 +247,7 @@ public com.google.cloud.securitycenter.v1.Finding.State getState() { * * @return Whether the startTime field is set. */ + @java.lang.Override public boolean hasStartTime() { return startTime_ != null; } @@ -258,6 +263,7 @@ public boolean hasStartTime() { * * @return The startTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } @@ -271,6 +277,7 @@ public com.google.protobuf.Timestamp getStartTime() { * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return getStartTime(); } @@ -782,6 +789,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * @return The enum numeric value on the wire for state. */ + @java.lang.Override public int getStateValue() { return state_; } @@ -800,6 +808,7 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { + state_ = value; onChanged(); return this; @@ -817,6 +826,7 @@ public Builder setStateValue(int value) { * * @return The state. */ + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1.Finding.State result = diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java index 1ef7b4897..662ee6141 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java @@ -22,7 +22,7 @@ * * *
- * Cloud Security Command Center's (Cloud SCC) finding source. A finding source
+ * Security Command Center finding source. A finding source
  * is an entity or a mechanism that can produce a finding. A source is like a
  * container of findings that come from the same scanner, logger, monitor, and
  * other tools.
@@ -146,6 +146,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The name.
    */
+  @java.lang.Override
   public java.lang.String getName() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -171,6 +172,7 @@ public java.lang.String getName() {
    *
    * @return The bytes for name.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNameBytes() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -200,6 +202,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    * @return The displayName.
    */
+  @java.lang.Override
   public java.lang.String getDisplayName() {
     java.lang.Object ref = displayName_;
     if (ref instanceof java.lang.String) {
@@ -226,6 +229,7 @@ public java.lang.String getDisplayName() {
    *
    * @return The bytes for displayName.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getDisplayNameBytes() {
     java.lang.Object ref = displayName_;
     if (ref instanceof java.lang.String) {
@@ -257,6 +261,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    *
    * @return The description.
    */
+  @java.lang.Override
   public java.lang.String getDescription() {
     java.lang.Object ref = description_;
     if (ref instanceof java.lang.String) {
@@ -285,6 +290,7 @@ public java.lang.String getDescription() {
    *
    * @return The bytes for description.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getDescriptionBytes() {
     java.lang.Object ref = description_;
     if (ref instanceof java.lang.String) {
@@ -478,7 +484,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    *
    * 
-   * Cloud Security Command Center's (Cloud SCC) finding source. A finding source
+   * Security Command Center finding source. A finding source
    * is an entity or a mechanism that can produce a finding. A source is like a
    * container of findings that come from the same scanner, logger, monitor, and
    * other tools.
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecurityMarksName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecurityMarksName.java
deleted file mode 100644
index a3233a065..000000000
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecurityMarksName.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.cloud.securitycenter.v1;
-
-import com.google.api.resourcenames.ResourceName;
-import com.google.common.base.Preconditions;
-import com.google.common.collect.ImmutableMap;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-/**
- * AUTO-GENERATED DOCUMENTATION AND CLASS
- *
- * @deprecated This resource name class will be removed in the next major version.
- */
-@javax.annotation.Generated("by GAPIC protoc plugin")
-@Deprecated
-public class UntypedSecurityMarksName extends SecurityMarksName {
-
-  private final String rawValue;
-  private Map valueMap;
-
-  private UntypedSecurityMarksName(String rawValue) {
-    this.rawValue = Preconditions.checkNotNull(rawValue);
-    this.valueMap = ImmutableMap.of("", rawValue);
-  }
-
-  public static UntypedSecurityMarksName from(ResourceName resourceName) {
-    return new UntypedSecurityMarksName(resourceName.toString());
-  }
-
-  public static UntypedSecurityMarksName parse(String formattedString) {
-    return new UntypedSecurityMarksName(formattedString);
-  }
-
-  public static List parseList(List formattedStrings) {
-    List list = new ArrayList<>(formattedStrings.size());
-    for (String formattedString : formattedStrings) {
-      list.add(parse(formattedString));
-    }
-    return list;
-  }
-
-  public static List toStringList(List values) {
-    List list = new ArrayList(values.size());
-    for (UntypedSecurityMarksName value : values) {
-      if (value == null) {
-        list.add("");
-      } else {
-        list.add(value.toString());
-      }
-    }
-    return list;
-  }
-
-  public static boolean isParsableFrom(String formattedString) {
-    return true;
-  }
-
-  /** Return a map with a single value rawValue keyed on an empty String "". */
-  public Map getFieldValuesMap() {
-    return valueMap;
-  }
-
-  /** Return the initial rawValue if @param fieldName is an empty String, else return null. */
-  public String getFieldValue(String fieldName) {
-    return valueMap.get(fieldName);
-  }
-
-  @Override
-  public String toString() {
-    return rawValue;
-  }
-
-  @Override
-  public boolean equals(Object o) {
-    if (o == this) {
-      return true;
-    }
-    if (o instanceof UntypedSecurityMarksName) {
-      UntypedSecurityMarksName that = (UntypedSecurityMarksName) o;
-      return this.rawValue.equals(that.rawValue);
-    }
-    return false;
-  }
-
-  @Override
-  public int hashCode() {
-    return rawValue.hashCode();
-  }
-}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
index bbf518462..347d7c3e8 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
@@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the finding field is set.
    */
+  @java.lang.Override
   public boolean hasFinding() {
     return finding_ != null;
   }
@@ -172,6 +173,7 @@ public boolean hasFinding() {
    *
    * @return The finding.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1.Finding getFinding() {
     return finding_ == null
         ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance()
@@ -192,6 +194,7 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() {
    * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() {
     return getFinding();
   }
@@ -214,6 +217,7 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -233,6 +237,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -250,6 +255,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
index e119980d5..9f29126d6 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
@@ -150,6 +150,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the notificationConfig field is set.
    */
+  @java.lang.Override
   public boolean hasNotificationConfig() {
     return notificationConfig_ != null;
   }
@@ -166,6 +167,7 @@ public boolean hasNotificationConfig() {
    *
    * @return The notificationConfig.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig() {
     return notificationConfig_ == null
         ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()
@@ -182,6 +184,7 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf
    * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder
       getNotificationConfigOrBuilder() {
     return getNotificationConfig();
@@ -201,6 +204,7 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -216,6 +220,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -229,6 +234,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
index 98ad3015c..623af01a9 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
@@ -150,6 +150,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the organizationSettings field is set.
    */
+  @java.lang.Override
   public boolean hasOrganizationSettings() {
     return organizationSettings_ != null;
   }
@@ -166,6 +167,7 @@ public boolean hasOrganizationSettings() {
    *
    * @return The organizationSettings.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings() {
     return organizationSettings_ == null
         ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance()
@@ -182,6 +184,7 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSe
    * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder
       getOrganizationSettingsOrBuilder() {
     return getOrganizationSettings();
@@ -201,6 +204,7 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSe
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -216,6 +220,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -229,6 +234,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
index 0bbedc8f2..2032f08be 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
@@ -163,6 +163,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the securityMarks field is set.
    */
+  @java.lang.Override
   public boolean hasSecurityMarks() {
     return securityMarks_ != null;
   }
@@ -179,6 +180,7 @@ public boolean hasSecurityMarks() {
    *
    * @return The securityMarks.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() {
     return securityMarks_ == null
         ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance()
@@ -195,6 +197,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() {
    * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() {
     return getSecurityMarks();
   }
@@ -215,6 +218,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -232,6 +236,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -247,6 +252,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
@@ -266,6 +272,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    *
    * @return Whether the startTime field is set.
    */
+  @java.lang.Override
   public boolean hasStartTime() {
     return startTime_ != null;
   }
@@ -282,6 +289,7 @@ public boolean hasStartTime() {
    *
    * @return The startTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getStartTime() {
     return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
   }
@@ -296,6 +304,7 @@ public com.google.protobuf.Timestamp getStartTime() {
    *
    * .google.protobuf.Timestamp start_time = 3;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
     return getStartTime();
   }
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
index 16a901071..9f5bf23d9 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
@@ -148,6 +148,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the source field is set.
    */
+  @java.lang.Override
   public boolean hasSource() {
     return source_ != null;
   }
@@ -164,6 +165,7 @@ public boolean hasSource() {
    *
    * @return The source.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1.Source getSource() {
     return source_ == null
         ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance()
@@ -180,6 +182,7 @@ public com.google.cloud.securitycenter.v1.Source getSource() {
    * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() {
     return getSource();
   }
@@ -198,6 +201,7 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() {
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -213,6 +217,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -226,6 +231,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto
index b079e5c5d..eb07c0493 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto
+++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto
@@ -29,30 +29,31 @@ option java_package = "com.google.cloud.securitycenter.v1";
 option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
 option ruby_package = "Google::Cloud::SecurityCenter::V1";
 
-// Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
-// Platform (GCP) resource.
+// Security Command Center representation of a Google Cloud
+// resource.
 //
-// The Asset is a Cloud SCC resource that captures information about a single
-// GCP resource. All modifications to an Asset are only within the context of
-// Cloud SCC and don't affect the referenced GCP resource.
+// The Asset is a Security Command Center resource that captures information
+// about a single Google Cloud resource. All modifications to an Asset are only
+// within the context of Security Command Center and don't affect the referenced
+// Google Cloud resource.
 message Asset {
   option (google.api.resource) = {
     type: "securitycenter.googleapis.com/Asset"
     pattern: "organizations/{organization}/assets/{asset}"
   };
 
-  // Cloud SCC managed properties. These properties are managed by Cloud SCC and
-  // cannot be modified by the user.
+  // Security Command Center managed properties. These properties are managed by
+  // Security Command Center and cannot be modified by the user.
   message SecurityCenterProperties {
-    // The full resource name of the GCP resource this asset
+    // The full resource name of the Google Cloud resource this asset
     // represents. This field is immutable after create time. See:
     // https://cloud.google.com/apis/design/resource_names#full_resource_name
     string resource_name = 1;
 
-    // The type of the GCP resource. Examples include: APPLICATION,
+    // The type of the Google Cloud resource. Examples include: APPLICATION,
     // PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-    // Cloud SCC and/or the producer of the resource and is immutable
-    // after create time.
+    // Security Command Center and/or the producer of the resource and is
+    // immutable after create time.
     string resource_type = 2;
 
     // The full resource name of the immediate parent of the resource. See:
@@ -76,9 +77,10 @@ message Asset {
     string resource_project_display_name = 8;
   }
 
-  // IAM Policy information associated with the GCP resource described by the
-  // Cloud SCC asset. This information is managed and defined by the GCP
-  // resource and cannot be modified by the user.
+  // Cloud IAM Policy information associated with the Google Cloud resource
+  // described by the Security Command Center asset. This information is managed
+  // and defined by the Google Cloud resource and cannot be modified by the
+  // user.
   message IamPolicy {
     // The JSON representation of the Policy associated with the asset.
     // See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -92,27 +94,28 @@ message Asset {
   // "organizations/{organization_id}/assets/{asset_id}".
   string name = 1;
 
-  // Cloud SCC managed properties. These properties are managed by
-  // Cloud SCC and cannot be modified by the user.
+  // Security Command Center managed properties. These properties are managed by
+  // Security Command Center and cannot be modified by the user.
   SecurityCenterProperties security_center_properties = 2;
 
   // Resource managed properties. These properties are managed and defined by
-  // the GCP resource and cannot be modified by the user.
+  // the Google Cloud resource and cannot be modified by the user.
   map resource_properties = 7;
 
   // User specified security marks. These marks are entirely managed by the user
   // and come from the SecurityMarks resource that belongs to the asset.
   SecurityMarks security_marks = 8;
 
-  // The time at which the asset was created in Cloud SCC.
+  // The time at which the asset was created in Security Command Center.
   google.protobuf.Timestamp create_time = 9;
 
-  // The time at which the asset was last updated, added, or deleted in Cloud
-  // SCC.
+  // The time at which the asset was last updated, added, or deleted in Security
+  // Command Center.
   google.protobuf.Timestamp update_time = 10;
 
-  // IAM Policy information associated with the GCP resource described by the
-  // Cloud SCC asset. This information is managed and defined by the GCP
-  // resource and cannot be modified by the user.
+  // Cloud IAM Policy information associated with the Google Cloud resource
+  // described by the Security Command Center asset. This information is managed
+  // and defined by the Google Cloud resource and cannot be modified by the
+  // user.
   IamPolicy iam_policy = 11;
 }
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto
index 9a3261c4c..4ccdc495c 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto
+++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto
@@ -30,11 +30,11 @@ option java_package = "com.google.cloud.securitycenter.v1";
 option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
 option ruby_package = "Google::Cloud::SecurityCenter::V1";
 
-// Cloud Security Command Center (Cloud SCC) finding.
+// Security Command Center finding.
 //
 // A finding is a record of assessment data like security, risk, health, or
-// privacy, that is ingested into Cloud SCC for presentation, notification,
-// analysis, policy testing, and enforcement. For example, a
+// privacy, that is ingested into Security Command Center for presentation,
+// notification, analysis, policy testing, and enforcement. For example, a
 // cross-site scripting (XSS) vulnerability in an App Engine application is a
 // finding.
 message Finding {
@@ -69,12 +69,12 @@ message Finding {
   // "organizations/{organization_id}/sources/{source_id}"
   string parent = 2;
 
-  // For findings on Google Cloud Platform (GCP) resources, the full resource
-  // name of the GCP resource this finding is for. See:
+  // For findings on Google Cloud resources, the full resource
+  // name of the Google Cloud resource this finding is for. See:
   // https://cloud.google.com/apis/design/resource_names#full_resource_name
-  // When the finding is for a non-GCP resource, the resourceName can be a
-  // customer or partner defined string.
-  // This field is immutable after creation time.
+  // When the finding is for a non-Google Cloud resource, the resourceName can
+  // be a customer or partner defined string. This field is immutable after
+  // creation time.
   string resource_name = 3;
 
   // The state of the finding.
@@ -85,9 +85,9 @@ message Finding {
   // Example: "XSS_FLASH_INJECTION"
   string category = 5;
 
-  // The URI that, if available, points to a web page outside of Cloud SCC
-  // where additional information about the finding can be found. This field is
-  // guaranteed to be either empty or a well formed URL.
+  // The URI that, if available, points to a web page outside of Security
+  // Command Center where additional information about the finding can be found.
+  // This field is guaranteed to be either empty or a well formed URL.
   string external_uri = 6;
 
   // Source specific properties. These properties are managed by the source
@@ -106,6 +106,6 @@ message Finding {
   // the firewall became open. The accuracy is determined by the detector.
   google.protobuf.Timestamp event_time = 9;
 
-  // The time at which the finding was created in Cloud SCC.
+  // The time at which the finding was created in Security Command Center.
   google.protobuf.Timestamp create_time = 10;
 }
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto
index b9dfb171b..08b6b7c88 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto
+++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto
@@ -18,6 +18,7 @@ package google.cloud.securitycenter.v1;
 
 import "google/api/annotations.proto";
 import "google/cloud/securitycenter/v1/finding.proto";
+import "google/cloud/securitycenter/v1/resource.proto";
 
 option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
 option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter";
@@ -38,4 +39,7 @@ message NotificationMessage {
     // populated.
     Finding finding = 2;
   }
+
+  // The Cloud resource tied to this notification's Finding.
+  Resource resource = 3;
 }
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto
index d9d9aed79..66b659bc5 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto
+++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto
@@ -26,8 +26,8 @@ option java_package = "com.google.cloud.securitycenter.v1";
 option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
 option ruby_package = "Google::Cloud::SecurityCenter::V1";
 
-// User specified settings that are attached to the Cloud Security Command
-// Center (Cloud SCC) organization.
+// User specified settings that are attached to the Security Command
+// Center organization.
 message OrganizationSettings {
   option (google.api.resource) = {
     type: "securitycenter.googleapis.com/OrganizationSettings"
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto
new file mode 100644
index 000000000..855e69737
--- /dev/null
+++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto
@@ -0,0 +1,46 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.securitycenter.v1;
+
+import "google/api/annotations.proto";
+
+option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter";
+option java_multiple_files = true;
+option java_outer_classname = "ResourceProto";
+option java_package = "com.google.cloud.securitycenter.v1";
+option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
+option ruby_package = "Google::Cloud::SecurityCenter::V1";
+
+// Information related to the Google Cloud resource.
+message Resource {
+  // The full resource name of the resource. See:
+  // https://cloud.google.com/apis/design/resource_names#full_resource_name
+  string name = 1;
+
+  // The full resource name of project that the resource belongs to.
+  string project = 2;
+
+  // The human readable name of project that the resource belongs to.
+  string project_display_name = 3;
+
+  // The full resource name of resource's parent.
+  string parent = 4;
+
+  // The human readable name of resource's parent.
+  string parent_display_name = 5;
+}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto
index 229aff32d..47a4a150b 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto
+++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto
@@ -26,9 +26,9 @@ option java_package = "com.google.cloud.securitycenter.v1";
 option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
 option ruby_package = "Google::Cloud::SecurityCenter::V1";
 
-// User specified security marks that are attached to the parent Cloud Security
-// Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
-// SCC organization -- they can be modified and viewed by all users who have
+// User specified security marks that are attached to the parent Security
+// Command Center resource. Security marks are scoped within a Security Command
+// Center organization -- they can be modified and viewed by all users who have
 // proper permissions on the organization.
 message SecurityMarks {
   option (google.api.resource) = {
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto
index bb9a82849..9a88e1e85 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto
+++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto
@@ -438,15 +438,15 @@ message GroupAssetsRequest {
   //
   //   Usage: This should be milliseconds since epoch or an RFC3339 string.
   //   Examples:
-  //     "update_time = \"2019-06-10T16:07:18-07:00\""
-  //     "update_time = 1560208038000"
+  //     `update_time = "2019-06-10T16:07:18-07:00"`
+  //     `update_time = 1560208038000`
   //
   // * create_time: `=`, `>`, `<`, `>=`, `<=`
   //
   //   Usage: This should be milliseconds since epoch or an RFC3339 string.
   //   Examples:
-  //     "create_time = \"2019-06-10T16:07:18-07:00\""
-  //     "create_time = 1560208038000"
+  //     `create_time = "2019-06-10T16:07:18-07:00"`
+  //     `create_time = 1560208038000`
   //
   // * iam_policy.policy_blob: `=`, `:`
   // * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
@@ -461,6 +461,12 @@ message GroupAssetsRequest {
   // * security_center_properties.resource_owners: `=`, `:`
   //
   // For example, `resource_properties.size = 100` is a valid filter string.
+  //
+  // Use a partial match on the empty string to filter based on a property
+  // existing:`resource_properties.my_property : ""`
+  //
+  // Use a negated partial match on the empty string to filter based on a
+  // property not existing: `-resource_properties.my_property : ""`
   string filter = 2;
 
   // Required. Expression that defines what assets fields to use for grouping.
@@ -595,13 +601,19 @@ message GroupFindingsRequest {
   //
   //   Usage: This should be milliseconds since epoch or an RFC3339 string.
   //   Examples:
-  //     "event_time = \"2019-06-10T16:07:18-07:00\""
-  //     "event_time = 1560208038000"
+  //     `event_time = "2019-06-10T16:07:18-07:00"`
+  //     `event_time = 1560208038000`
   //
   // * security_marks.marks: `=`, `:`
   // * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
   //
   // For example, `source_properties.size = 100` is a valid filter string.
+  //
+  // Use a partial match on the empty string to filter based on a property
+  // existing: `source_properties.my_property : ""`
+  //
+  // Use a negated partial match on the empty string to filter based on a
+  // property not existing: `-source_properties.my_property : ""`
   string filter = 2;
 
   // Required. Expression that defines what assets fields to use for grouping
@@ -803,15 +815,15 @@ message ListAssetsRequest {
   //
   //   Usage: This should be milliseconds since epoch or an RFC3339 string.
   //   Examples:
-  //     "update_time = \"2019-06-10T16:07:18-07:00\""
-  //     "update_time = 1560208038000"
+  //     `update_time = "2019-06-10T16:07:18-07:00"`
+  //     `update_time = 1560208038000`
   //
   // * create_time: `=`, `>`, `<`, `>=`, `<=`
   //
   //   Usage: This should be milliseconds since epoch or an RFC3339 string.
   //   Examples:
-  //     "create_time = \"2019-06-10T16:07:18-07:00\""
-  //     "create_time = 1560208038000"
+  //     `create_time = "2019-06-10T16:07:18-07:00"`
+  //     `create_time = 1560208038000`
   //
   // * iam_policy.policy_blob: `=`, `:`
   // * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
@@ -826,6 +838,12 @@ message ListAssetsRequest {
   // * security_center_properties.resource_owners: `=`, `:`
   //
   // For example, `resource_properties.size = 100` is a valid filter string.
+  //
+  // Use a partial match on the empty string to filter based on a property
+  // existing: `resource_properties.my_property : ""`
+  //
+  // Use a negated partial match on the empty string to filter based on a
+  // property not existing: `-resource_properties.my_property : ""`
   string filter = 2;
 
   // Expression that defines what fields and order to use for sorting. The
@@ -992,13 +1010,19 @@ message ListFindingsRequest {
   //
   //   Usage: This should be milliseconds since epoch or an RFC3339 string.
   //   Examples:
-  //     "event_time = \"2019-06-10T16:07:18-07:00\""
-  //     "event_time = 1560208038000"
+  //     `event_time = "2019-06-10T16:07:18-07:00"`
+  //     `event_time = 1560208038000`
   //
   // security_marks.marks: `=`, `:`
   // source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
   //
   // For example, `source_properties.size = 100` is a valid filter string.
+  //
+  // Use a partial match on the empty string to filter based on a property
+  // existing: `source_properties.my_property : ""`
+  //
+  // Use a negated partial match on the empty string to filter based on a
+  // property not existing: `-source_properties.my_property : ""`
   string filter = 2;
 
   // Expression that defines what fields and order to use for sorting. The
@@ -1078,7 +1102,7 @@ message ListFindingsRequest {
 message ListFindingsResponse {
   // Result containing the Finding and its StateChange.
   message ListFindingsResult {
-    // Information related to the Google Cloud Platform (GCP) resource that is
+    // Information related to the Google Cloud resource that is
     // associated with this finding.
     message Resource {
       // The full resource name of the resource. See:
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto
index 6fca821b8..e7b1a1835 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto
+++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto
@@ -26,7 +26,7 @@ option java_package = "com.google.cloud.securitycenter.v1";
 option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
 option ruby_package = "Google::Cloud::SecurityCenter::V1";
 
-// Cloud Security Command Center's (Cloud SCC) finding source. A finding source
+// Security Command Center finding source. A finding source
 // is an entity or a mechanism that can produce a finding. A source is like a
 // container of findings that come from the same scanner, logger, monitor, and
 // other tools.
diff --git a/proto-google-cloud-securitycenter-v1beta1/pom.xml b/proto-google-cloud-securitycenter-v1beta1/pom.xml
index d3b3c0766..5871d527e 100644
--- a/proto-google-cloud-securitycenter-v1beta1/pom.xml
+++ b/proto-google-cloud-securitycenter-v1beta1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-securitycenter-v1beta1
-  0.86.0
+  0.87.0
   proto-google-cloud-securitycenter-v1beta1
   PROTO library for proto-google-cloud-securitycenter-v1beta1
   
     com.google.cloud
     google-cloud-securitycenter-parent
-    0.121.0
+    0.122.0
   
   
     
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java
index 238e07871..94fa053bd 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java
@@ -529,6 +529,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      * @return The resourceName.
      */
+    @java.lang.Override
     public java.lang.String getResourceName() {
       java.lang.Object ref = resourceName_;
       if (ref instanceof java.lang.String) {
@@ -553,6 +554,7 @@ public java.lang.String getResourceName() {
      *
      * @return The bytes for resourceName.
      */
+    @java.lang.Override
     public com.google.protobuf.ByteString getResourceNameBytes() {
       java.lang.Object ref = resourceName_;
       if (ref instanceof java.lang.String) {
@@ -581,6 +583,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
      *
      * @return The resourceType.
      */
+    @java.lang.Override
     public java.lang.String getResourceType() {
       java.lang.Object ref = resourceType_;
       if (ref instanceof java.lang.String) {
@@ -606,6 +609,7 @@ public java.lang.String getResourceType() {
      *
      * @return The bytes for resourceType.
      */
+    @java.lang.Override
     public com.google.protobuf.ByteString getResourceTypeBytes() {
       java.lang.Object ref = resourceType_;
       if (ref instanceof java.lang.String) {
@@ -632,6 +636,7 @@ public com.google.protobuf.ByteString getResourceTypeBytes() {
      *
      * @return The resourceParent.
      */
+    @java.lang.Override
     public java.lang.String getResourceParent() {
       java.lang.Object ref = resourceParent_;
       if (ref instanceof java.lang.String) {
@@ -655,6 +660,7 @@ public java.lang.String getResourceParent() {
      *
      * @return The bytes for resourceParent.
      */
+    @java.lang.Override
     public com.google.protobuf.ByteString getResourceParentBytes() {
       java.lang.Object ref = resourceParent_;
       if (ref instanceof java.lang.String) {
@@ -681,6 +687,7 @@ public com.google.protobuf.ByteString getResourceParentBytes() {
      *
      * @return The resourceProject.
      */
+    @java.lang.Override
     public java.lang.String getResourceProject() {
       java.lang.Object ref = resourceProject_;
       if (ref instanceof java.lang.String) {
@@ -704,6 +711,7 @@ public java.lang.String getResourceProject() {
      *
      * @return The bytes for resourceProject.
      */
+    @java.lang.Override
     public com.google.protobuf.ByteString getResourceProjectBytes() {
       java.lang.Object ref = resourceProject_;
       if (ref instanceof java.lang.String) {
@@ -1896,6 +1904,7 @@ public com.google.protobuf.Parser getParserForType() {
    *
    * @return The name.
    */
+  @java.lang.Override
   public java.lang.String getName() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -1921,6 +1930,7 @@ public java.lang.String getName() {
    *
    * @return The bytes for name.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNameBytes() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -1950,6 +1960,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    * @return Whether the securityCenterProperties field is set.
    */
+  @java.lang.Override
   public boolean hasSecurityCenterProperties() {
     return securityCenterProperties_ != null;
   }
@@ -1967,6 +1978,7 @@ public boolean hasSecurityCenterProperties() {
    *
    * @return The securityCenterProperties.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties
       getSecurityCenterProperties() {
     return securityCenterProperties_ == null
@@ -1986,6 +1998,7 @@ public boolean hasSecurityCenterProperties() {
    * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder
       getSecurityCenterPropertiesOrBuilder() {
     return getSecurityCenterProperties();
@@ -2031,6 +2044,7 @@ public int getResourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
+  @java.lang.Override
   public boolean containsResourceProperties(java.lang.String key) {
     if (key == null) {
       throw new java.lang.NullPointerException();
@@ -2038,6 +2052,7 @@ public boolean containsResourceProperties(java.lang.String key) {
     return internalGetResourceProperties().getMap().containsKey(key);
   }
   /** Use {@link #getResourcePropertiesMap()} instead. */
+  @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getResourceProperties() {
     return getResourcePropertiesMap();
@@ -2052,6 +2067,7 @@ public java.util.Map getResourcePro
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
+  @java.lang.Override
   public java.util.Map getResourcePropertiesMap() {
     return internalGetResourceProperties().getMap();
   }
@@ -2065,6 +2081,7 @@ public java.util.Map getResourcePro
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
+  @java.lang.Override
   public com.google.protobuf.Value getResourcePropertiesOrDefault(
       java.lang.String key, com.google.protobuf.Value defaultValue) {
     if (key == null) {
@@ -2084,6 +2101,7 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
+  @java.lang.Override
   public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
     if (key == null) {
       throw new java.lang.NullPointerException();
@@ -2110,6 +2128,7 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k
    *
    * @return Whether the securityMarks field is set.
    */
+  @java.lang.Override
   public boolean hasSecurityMarks() {
     return securityMarks_ != null;
   }
@@ -2125,6 +2144,7 @@ public boolean hasSecurityMarks() {
    *
    * @return The securityMarks.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() {
     return securityMarks_ == null
         ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance()
@@ -2140,6 +2160,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
    *
    * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8;
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder
       getSecurityMarksOrBuilder() {
     return getSecurityMarks();
@@ -2158,6 +2179,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
    *
    * @return Whether the createTime field is set.
    */
+  @java.lang.Override
   public boolean hasCreateTime() {
     return createTime_ != null;
   }
@@ -2172,6 +2194,7 @@ public boolean hasCreateTime() {
    *
    * @return The createTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getCreateTime() {
     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
   }
@@ -2184,6 +2207,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
    *
    * .google.protobuf.Timestamp create_time = 9;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
     return getCreateTime();
   }
@@ -2202,6 +2226,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    *
    * @return Whether the updateTime field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateTime() {
     return updateTime_ != null;
   }
@@ -2217,6 +2242,7 @@ public boolean hasUpdateTime() {
    *
    * @return The updateTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getUpdateTime() {
     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
   }
@@ -2230,6 +2256,7 @@ public com.google.protobuf.Timestamp getUpdateTime() {
    *
    * .google.protobuf.Timestamp update_time = 10;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
     return getUpdateTime();
   }
@@ -3101,6 +3128,7 @@ public int getResourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
+    @java.lang.Override
     public boolean containsResourceProperties(java.lang.String key) {
       if (key == null) {
         throw new java.lang.NullPointerException();
@@ -3108,6 +3136,7 @@ public boolean containsResourceProperties(java.lang.String key) {
       return internalGetResourceProperties().getMap().containsKey(key);
     }
     /** Use {@link #getResourcePropertiesMap()} instead. */
+    @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getResourceProperties() {
       return getResourcePropertiesMap();
@@ -3122,6 +3151,7 @@ public java.util.Map getResourcePro
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
+    @java.lang.Override
     public java.util.Map getResourcePropertiesMap() {
       return internalGetResourceProperties().getMap();
     }
@@ -3135,6 +3165,7 @@ public java.util.Map getResourcePro
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
+    @java.lang.Override
     public com.google.protobuf.Value getResourcePropertiesOrDefault(
         java.lang.String key, com.google.protobuf.Value defaultValue) {
       if (key == null) {
@@ -3154,6 +3185,7 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
+    @java.lang.Override
     public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
       if (key == null) {
         throw new java.lang.NullPointerException();
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
index 6047f84e1..7c0b14bf8 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
@@ -151,6 +151,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The parent.
    */
+  @java.lang.Override
   public java.lang.String getParent() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -176,6 +177,7 @@ public java.lang.String getParent() {
    *
    * @return The bytes for parent.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getParentBytes() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -203,6 +205,7 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    * @return The findingId.
    */
+  @java.lang.Override
   public java.lang.String getFindingId() {
     java.lang.Object ref = findingId_;
     if (ref instanceof java.lang.String) {
@@ -227,6 +230,7 @@ public java.lang.String getFindingId() {
    *
    * @return The bytes for findingId.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getFindingIdBytes() {
     java.lang.Object ref = findingId_;
     if (ref instanceof java.lang.String) {
@@ -255,6 +259,7 @@ public com.google.protobuf.ByteString getFindingIdBytes() {
    *
    * @return Whether the finding field is set.
    */
+  @java.lang.Override
   public boolean hasFinding() {
     return finding_ != null;
   }
@@ -272,6 +277,7 @@ public boolean hasFinding() {
    *
    * @return The finding.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.Finding getFinding() {
     return finding_ == null
         ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()
@@ -289,6 +295,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() {
    * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() {
     return getFinding();
   }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java
index 0bcb3468c..78ad04835 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java
@@ -143,6 +143,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The parent.
    */
+  @java.lang.Override
   public java.lang.String getParent() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -168,6 +169,7 @@ public java.lang.String getParent() {
    *
    * @return The bytes for parent.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getParentBytes() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -196,6 +198,7 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    * @return Whether the source field is set.
    */
+  @java.lang.Override
   public boolean hasSource() {
     return source_ != null;
   }
@@ -213,6 +216,7 @@ public boolean hasSource() {
    *
    * @return The source.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.Source getSource() {
     return source_ == null
         ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance()
@@ -230,6 +234,7 @@ public com.google.cloud.securitycenter.v1beta1.Source getSource() {
    * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() {
     return getSource();
   }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java
index 1d5ec6f44..708b5c558 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java
@@ -355,6 +355,10 @@ public State findValueByNumber(int number) {
         };
 
     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      if (this == UNRECOGNIZED) {
+        throw new java.lang.IllegalStateException(
+            "Can't get the descriptor of an unrecognized enum value.");
+      }
       return getDescriptor().getValues().get(ordinal());
     }
 
@@ -403,6 +407,7 @@ private State(int value) {
    *
    * @return The name.
    */
+  @java.lang.Override
   public java.lang.String getName() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -428,6 +433,7 @@ public java.lang.String getName() {
    *
    * @return The bytes for name.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNameBytes() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -457,6 +463,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    * @return The parent.
    */
+  @java.lang.Override
   public java.lang.String getParent() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -483,6 +490,7 @@ public java.lang.String getParent() {
    *
    * @return The bytes for parent.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getParentBytes() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -513,6 +521,7 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    * @return The resourceName.
    */
+  @java.lang.Override
   public java.lang.String getResourceName() {
     java.lang.Object ref = resourceName_;
     if (ref instanceof java.lang.String) {
@@ -540,6 +549,7 @@ public java.lang.String getResourceName() {
    *
    * @return The bytes for resourceName.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getResourceNameBytes() {
     java.lang.Object ref = resourceName_;
     if (ref instanceof java.lang.String) {
@@ -565,6 +575,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
    *
    * @return The enum numeric value on the wire for state.
    */
+  @java.lang.Override
   public int getStateValue() {
     return state_;
   }
@@ -579,6 +590,7 @@ public int getStateValue() {
    *
    * @return The state.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
     @SuppressWarnings("deprecation")
     com.google.cloud.securitycenter.v1beta1.Finding.State result =
@@ -603,6 +615,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
    *
    * @return The category.
    */
+  @java.lang.Override
   public java.lang.String getCategory() {
     java.lang.Object ref = category_;
     if (ref instanceof java.lang.String) {
@@ -627,6 +640,7 @@ public java.lang.String getCategory() {
    *
    * @return The bytes for category.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getCategoryBytes() {
     java.lang.Object ref = category_;
     if (ref instanceof java.lang.String) {
@@ -654,6 +668,7 @@ public com.google.protobuf.ByteString getCategoryBytes() {
    *
    * @return The externalUri.
    */
+  @java.lang.Override
   public java.lang.String getExternalUri() {
     java.lang.Object ref = externalUri_;
     if (ref instanceof java.lang.String) {
@@ -678,6 +693,7 @@ public java.lang.String getExternalUri() {
    *
    * @return The bytes for externalUri.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getExternalUriBytes() {
     java.lang.Object ref = externalUri_;
     if (ref instanceof java.lang.String) {
@@ -732,6 +748,7 @@ public int getSourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
+  @java.lang.Override
   public boolean containsSourceProperties(java.lang.String key) {
     if (key == null) {
       throw new java.lang.NullPointerException();
@@ -739,6 +756,7 @@ public boolean containsSourceProperties(java.lang.String key) {
     return internalGetSourceProperties().getMap().containsKey(key);
   }
   /** Use {@link #getSourcePropertiesMap()} instead. */
+  @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getSourceProperties() {
     return getSourcePropertiesMap();
@@ -755,6 +773,7 @@ public java.util.Map getSourcePrope
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
+  @java.lang.Override
   public java.util.Map getSourcePropertiesMap() {
     return internalGetSourceProperties().getMap();
   }
@@ -770,6 +789,7 @@ public java.util.Map getSourcePrope
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
+  @java.lang.Override
   public com.google.protobuf.Value getSourcePropertiesOrDefault(
       java.lang.String key, com.google.protobuf.Value defaultValue) {
     if (key == null) {
@@ -791,6 +811,7 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
+  @java.lang.Override
   public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
     if (key == null) {
       throw new java.lang.NullPointerException();
@@ -820,6 +841,7 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
    *
    * @return Whether the securityMarks field is set.
    */
+  @java.lang.Override
   public boolean hasSecurityMarks() {
     return securityMarks_ != null;
   }
@@ -838,6 +860,7 @@ public boolean hasSecurityMarks() {
    *
    * @return The securityMarks.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() {
     return securityMarks_ == null
         ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance()
@@ -856,6 +879,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
    * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder
       getSecurityMarksOrBuilder() {
     return getSecurityMarks();
@@ -876,6 +900,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
    *
    * @return Whether the eventTime field is set.
    */
+  @java.lang.Override
   public boolean hasEventTime() {
     return eventTime_ != null;
   }
@@ -892,6 +917,7 @@ public boolean hasEventTime() {
    *
    * @return The eventTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getEventTime() {
     return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
   }
@@ -906,6 +932,7 @@ public com.google.protobuf.Timestamp getEventTime() {
    *
    * .google.protobuf.Timestamp event_time = 9;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
     return getEventTime();
   }
@@ -923,6 +950,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
    *
    * @return Whether the createTime field is set.
    */
+  @java.lang.Override
   public boolean hasCreateTime() {
     return createTime_ != null;
   }
@@ -937,6 +965,7 @@ public boolean hasCreateTime() {
    *
    * @return The createTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getCreateTime() {
     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
   }
@@ -949,6 +978,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
    *
    * .google.protobuf.Timestamp create_time = 10;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
     return getCreateTime();
   }
@@ -1873,6 +1903,7 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) {
      *
      * @return The enum numeric value on the wire for state.
      */
+    @java.lang.Override
     public int getStateValue() {
       return state_;
     }
@@ -1889,6 +1920,7 @@ public int getStateValue() {
      * @return This builder for chaining.
      */
     public Builder setStateValue(int value) {
+
       state_ = value;
       onChanged();
       return this;
@@ -1904,6 +1936,7 @@ public Builder setStateValue(int value) {
      *
      * @return The state.
      */
+    @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
       @SuppressWarnings("deprecation")
       com.google.cloud.securitycenter.v1beta1.Finding.State result =
@@ -2225,6 +2258,7 @@ public int getSourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
+    @java.lang.Override
     public boolean containsSourceProperties(java.lang.String key) {
       if (key == null) {
         throw new java.lang.NullPointerException();
@@ -2232,6 +2266,7 @@ public boolean containsSourceProperties(java.lang.String key) {
       return internalGetSourceProperties().getMap().containsKey(key);
     }
     /** Use {@link #getSourcePropertiesMap()} instead. */
+    @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getSourceProperties() {
       return getSourcePropertiesMap();
@@ -2248,6 +2283,7 @@ public java.util.Map getSourcePrope
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
+    @java.lang.Override
     public java.util.Map getSourcePropertiesMap() {
       return internalGetSourceProperties().getMap();
     }
@@ -2263,6 +2299,7 @@ public java.util.Map getSourcePrope
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
+    @java.lang.Override
     public com.google.protobuf.Value getSourcePropertiesOrDefault(
         java.lang.String key, com.google.protobuf.Value defaultValue) {
       if (key == null) {
@@ -2284,6 +2321,7 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
+    @java.lang.Override
     public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
       if (key == null) {
         throw new java.lang.NullPointerException();
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java
index 88ea8b3c1..2d7411b61 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java
@@ -128,6 +128,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The name.
    */
+  @java.lang.Override
   public java.lang.String getName() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -153,6 +154,7 @@ public java.lang.String getName() {
    *
    * @return The bytes for name.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNameBytes() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java
index b0d3f02ec..72e0bff0e 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java
@@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The name.
    */
+  @java.lang.Override
   public java.lang.String getName() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -152,6 +153,7 @@ public java.lang.String getName() {
    *
    * @return The bytes for name.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNameBytes() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java
index de99f25ec..0389dcb13 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java
@@ -186,6 +186,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The parent.
    */
+  @java.lang.Override
   public java.lang.String getParent() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -211,6 +212,7 @@ public java.lang.String getParent() {
    *
    * @return The bytes for parent.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getParentBytes() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -255,6 +257,7 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    * @return The filter.
    */
+  @java.lang.Override
   public java.lang.String getFilter() {
     java.lang.Object ref = filter_;
     if (ref instanceof java.lang.String) {
@@ -296,6 +299,7 @@ public java.lang.String getFilter() {
    *
    * @return The bytes for filter.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getFilterBytes() {
     java.lang.Object ref = filter_;
     if (ref instanceof java.lang.String) {
@@ -330,6 +334,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
    *
    * @return The groupBy.
    */
+  @java.lang.Override
   public java.lang.String getGroupBy() {
     java.lang.Object ref = groupBy_;
     if (ref instanceof java.lang.String) {
@@ -361,6 +366,7 @@ public java.lang.String getGroupBy() {
    *
    * @return The bytes for groupBy.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getGroupByBytes() {
     java.lang.Object ref = groupBy_;
     if (ref instanceof java.lang.String) {
@@ -402,6 +408,7 @@ public com.google.protobuf.ByteString getGroupByBytes() {
    *
    * @return Whether the compareDuration field is set.
    */
+  @java.lang.Override
   public boolean hasCompareDuration() {
     return compareDuration_ != null;
   }
@@ -432,6 +439,7 @@ public boolean hasCompareDuration() {
    *
    * @return The compareDuration.
    */
+  @java.lang.Override
   public com.google.protobuf.Duration getCompareDuration() {
     return compareDuration_ == null
         ? com.google.protobuf.Duration.getDefaultInstance()
@@ -462,6 +470,7 @@ public com.google.protobuf.Duration getCompareDuration() {
    *
    * .google.protobuf.Duration compare_duration = 4;
    */
+  @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
     return getCompareDuration();
   }
@@ -482,6 +491,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    *
    * @return Whether the readTime field is set.
    */
+  @java.lang.Override
   public boolean hasReadTime() {
     return readTime_ != null;
   }
@@ -499,6 +509,7 @@ public boolean hasReadTime() {
    *
    * @return The readTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getReadTime() {
     return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
   }
@@ -514,6 +525,7 @@ public com.google.protobuf.Timestamp getReadTime() {
    *
    * .google.protobuf.Timestamp read_time = 5;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
     return getReadTime();
   }
@@ -533,6 +545,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    *
    * @return The pageToken.
    */
+  @java.lang.Override
   public java.lang.String getPageToken() {
     java.lang.Object ref = pageToken_;
     if (ref instanceof java.lang.String) {
@@ -557,6 +570,7 @@ public java.lang.String getPageToken() {
    *
    * @return The bytes for pageToken.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getPageTokenBytes() {
     java.lang.Object ref = pageToken_;
     if (ref instanceof java.lang.String) {
@@ -583,6 +597,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    *
    * @return The pageSize.
    */
+  @java.lang.Override
   public int getPageSize() {
     return pageSize_;
   }
@@ -2162,6 +2177,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      *
      * @return The pageSize.
      */
+    @java.lang.Override
     public int getPageSize() {
       return pageSize_;
     }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java
index 81b786aa1..3ef0c3687 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java
@@ -157,6 +157,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
+  @java.lang.Override
   public java.util.List
       getGroupByResultsList() {
     return groupByResults_;
@@ -172,6 +173,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
+  @java.lang.Override
   public java.util.List
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
@@ -187,6 +189,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
+  @java.lang.Override
   public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
@@ -201,6 +204,7 @@ public int getGroupByResultsCount() {
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int index) {
     return groupByResults_.get(index);
   }
@@ -215,6 +219,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder(
       int index) {
     return groupByResults_.get(index);
@@ -233,6 +238,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
    *
    * @return Whether the readTime field is set.
    */
+  @java.lang.Override
   public boolean hasReadTime() {
     return readTime_ != null;
   }
@@ -247,6 +253,7 @@ public boolean hasReadTime() {
    *
    * @return The readTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getReadTime() {
     return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
   }
@@ -259,6 +266,7 @@ public com.google.protobuf.Timestamp getReadTime() {
    *
    * .google.protobuf.Timestamp read_time = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
     return getReadTime();
   }
@@ -277,6 +285,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    *
    * @return The nextPageToken.
    */
+  @java.lang.Override
   public java.lang.String getNextPageToken() {
     java.lang.Object ref = nextPageToken_;
     if (ref instanceof java.lang.String) {
@@ -300,6 +309,7 @@ public java.lang.String getNextPageToken() {
    *
    * @return The bytes for nextPageToken.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNextPageTokenBytes() {
     java.lang.Object ref = nextPageToken_;
     if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java
index d0a522926..f4c3cc54c 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java
@@ -173,6 +173,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The parent.
    */
+  @java.lang.Override
   public java.lang.String getParent() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -200,6 +201,7 @@ public java.lang.String getParent() {
    *
    * @return The bytes for parent.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getParentBytes() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -242,6 +244,7 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    * @return The filter.
    */
+  @java.lang.Override
   public java.lang.String getFilter() {
     java.lang.Object ref = filter_;
     if (ref instanceof java.lang.String) {
@@ -281,6 +284,7 @@ public java.lang.String getFilter() {
    *
    * @return The bytes for filter.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getFilterBytes() {
     java.lang.Object ref = filter_;
     if (ref instanceof java.lang.String) {
@@ -314,6 +318,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
    *
    * @return The groupBy.
    */
+  @java.lang.Override
   public java.lang.String getGroupBy() {
     java.lang.Object ref = groupBy_;
     if (ref instanceof java.lang.String) {
@@ -344,6 +349,7 @@ public java.lang.String getGroupBy() {
    *
    * @return The bytes for groupBy.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getGroupByBytes() {
     java.lang.Object ref = groupBy_;
     if (ref instanceof java.lang.String) {
@@ -372,6 +378,7 @@ public com.google.protobuf.ByteString getGroupByBytes() {
    *
    * @return Whether the readTime field is set.
    */
+  @java.lang.Override
   public boolean hasReadTime() {
     return readTime_ != null;
   }
@@ -389,6 +396,7 @@ public boolean hasReadTime() {
    *
    * @return The readTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getReadTime() {
     return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
   }
@@ -404,6 +412,7 @@ public com.google.protobuf.Timestamp getReadTime() {
    *
    * .google.protobuf.Timestamp read_time = 4;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
     return getReadTime();
   }
@@ -423,6 +432,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    *
    * @return The pageToken.
    */
+  @java.lang.Override
   public java.lang.String getPageToken() {
     java.lang.Object ref = pageToken_;
     if (ref instanceof java.lang.String) {
@@ -447,6 +457,7 @@ public java.lang.String getPageToken() {
    *
    * @return The bytes for pageToken.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getPageTokenBytes() {
     java.lang.Object ref = pageToken_;
     if (ref instanceof java.lang.String) {
@@ -473,6 +484,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    *
    * @return The pageSize.
    */
+  @java.lang.Override
   public int getPageSize() {
     return pageSize_;
   }
@@ -1692,6 +1704,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      *
      * @return The pageSize.
      */
+    @java.lang.Override
     public int getPageSize() {
       return pageSize_;
     }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java
index 5a7c54ca7..7781fb48d 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java
@@ -157,6 +157,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
+  @java.lang.Override
   public java.util.List
       getGroupByResultsList() {
     return groupByResults_;
@@ -172,6 +173,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
+  @java.lang.Override
   public java.util.List
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
@@ -187,6 +189,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
+  @java.lang.Override
   public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
@@ -201,6 +204,7 @@ public int getGroupByResultsCount() {
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int index) {
     return groupByResults_.get(index);
   }
@@ -215,6 +219,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder(
       int index) {
     return groupByResults_.get(index);
@@ -233,6 +238,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
    *
    * @return Whether the readTime field is set.
    */
+  @java.lang.Override
   public boolean hasReadTime() {
     return readTime_ != null;
   }
@@ -247,6 +253,7 @@ public boolean hasReadTime() {
    *
    * @return The readTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getReadTime() {
     return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
   }
@@ -259,6 +266,7 @@ public com.google.protobuf.Timestamp getReadTime() {
    *
    * .google.protobuf.Timestamp read_time = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
     return getReadTime();
   }
@@ -277,6 +285,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    *
    * @return The nextPageToken.
    */
+  @java.lang.Override
   public java.lang.String getNextPageToken() {
     java.lang.Object ref = nextPageToken_;
     if (ref instanceof java.lang.String) {
@@ -300,6 +309,7 @@ public java.lang.String getNextPageToken() {
    *
    * @return The bytes for nextPageToken.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNextPageTokenBytes() {
     java.lang.Object ref = nextPageToken_;
     if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java
index c24e4ea34..9047a59b2 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java
@@ -172,6 +172,7 @@ public int getPropertiesCount() {
    *
    * map<string, .google.protobuf.Value> properties = 1;
    */
+  @java.lang.Override
   public boolean containsProperties(java.lang.String key) {
     if (key == null) {
       throw new java.lang.NullPointerException();
@@ -179,6 +180,7 @@ public boolean containsProperties(java.lang.String key) {
     return internalGetProperties().getMap().containsKey(key);
   }
   /** Use {@link #getPropertiesMap()} instead. */
+  @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getProperties() {
     return getPropertiesMap();
@@ -192,6 +194,7 @@ public java.util.Map getProperties(
    *
    * map<string, .google.protobuf.Value> properties = 1;
    */
+  @java.lang.Override
   public java.util.Map getPropertiesMap() {
     return internalGetProperties().getMap();
   }
@@ -204,6 +207,7 @@ public java.util.Map getPropertiesM
    *
    * map<string, .google.protobuf.Value> properties = 1;
    */
+  @java.lang.Override
   public com.google.protobuf.Value getPropertiesOrDefault(
       java.lang.String key, com.google.protobuf.Value defaultValue) {
     if (key == null) {
@@ -222,6 +226,7 @@ public com.google.protobuf.Value getPropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> properties = 1;
    */
+  @java.lang.Override
   public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) {
     if (key == null) {
       throw new java.lang.NullPointerException();
@@ -247,6 +252,7 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) {
    *
    * @return The count.
    */
+  @java.lang.Override
   public long getCount() {
     return count_;
   }
@@ -649,6 +655,7 @@ public int getPropertiesCount() {
      *
      * map<string, .google.protobuf.Value> properties = 1;
      */
+    @java.lang.Override
     public boolean containsProperties(java.lang.String key) {
       if (key == null) {
         throw new java.lang.NullPointerException();
@@ -656,6 +663,7 @@ public boolean containsProperties(java.lang.String key) {
       return internalGetProperties().getMap().containsKey(key);
     }
     /** Use {@link #getPropertiesMap()} instead. */
+    @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getProperties() {
       return getPropertiesMap();
@@ -669,6 +677,7 @@ public java.util.Map getProperties(
      *
      * map<string, .google.protobuf.Value> properties = 1;
      */
+    @java.lang.Override
     public java.util.Map getPropertiesMap() {
       return internalGetProperties().getMap();
     }
@@ -681,6 +690,7 @@ public java.util.Map getPropertiesM
      *
      * map<string, .google.protobuf.Value> properties = 1;
      */
+    @java.lang.Override
     public com.google.protobuf.Value getPropertiesOrDefault(
         java.lang.String key, com.google.protobuf.Value defaultValue) {
       if (key == null) {
@@ -699,6 +709,7 @@ public com.google.protobuf.Value getPropertiesOrDefault(
      *
      * map<string, .google.protobuf.Value> properties = 1;
      */
+    @java.lang.Override
     public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) {
       if (key == null) {
         throw new java.lang.NullPointerException();
@@ -782,6 +793,7 @@ public Builder putAllProperties(
      *
      * @return The count.
      */
+    @java.lang.Override
     public long getCount() {
       return count_;
     }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java
index 698f08835..801ca50c5 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java
@@ -201,6 +201,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The parent.
    */
+  @java.lang.Override
   public java.lang.String getParent() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -226,6 +227,7 @@ public java.lang.String getParent() {
    *
    * @return The bytes for parent.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getParentBytes() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -270,6 +272,7 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    * @return The filter.
    */
+  @java.lang.Override
   public java.lang.String getFilter() {
     java.lang.Object ref = filter_;
     if (ref instanceof java.lang.String) {
@@ -311,6 +314,7 @@ public java.lang.String getFilter() {
    *
    * @return The bytes for filter.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getFilterBytes() {
     java.lang.Object ref = filter_;
     if (ref instanceof java.lang.String) {
@@ -343,6 +347,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
    *
    * @return The orderBy.
    */
+  @java.lang.Override
   public java.lang.String getOrderBy() {
     java.lang.Object ref = orderBy_;
     if (ref instanceof java.lang.String) {
@@ -372,6 +377,7 @@ public java.lang.String getOrderBy() {
    *
    * @return The bytes for orderBy.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getOrderByBytes() {
     java.lang.Object ref = orderBy_;
     if (ref instanceof java.lang.String) {
@@ -400,6 +406,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    *
    * @return Whether the readTime field is set.
    */
+  @java.lang.Override
   public boolean hasReadTime() {
     return readTime_ != null;
   }
@@ -417,6 +424,7 @@ public boolean hasReadTime() {
    *
    * @return The readTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getReadTime() {
     return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
   }
@@ -432,6 +440,7 @@ public com.google.protobuf.Timestamp getReadTime() {
    *
    * .google.protobuf.Timestamp read_time = 4;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
     return getReadTime();
   }
@@ -467,6 +476,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    *
    * @return Whether the compareDuration field is set.
    */
+  @java.lang.Override
   public boolean hasCompareDuration() {
     return compareDuration_ != null;
   }
@@ -499,6 +509,7 @@ public boolean hasCompareDuration() {
    *
    * @return The compareDuration.
    */
+  @java.lang.Override
   public com.google.protobuf.Duration getCompareDuration() {
     return compareDuration_ == null
         ? com.google.protobuf.Duration.getDefaultInstance()
@@ -531,6 +542,7 @@ public com.google.protobuf.Duration getCompareDuration() {
    *
    * .google.protobuf.Duration compare_duration = 5;
    */
+  @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
     return getCompareDuration();
   }
@@ -551,6 +563,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    *
    * @return Whether the fieldMask field is set.
    */
+  @java.lang.Override
   public boolean hasFieldMask() {
     return fieldMask_ != null;
   }
@@ -568,6 +581,7 @@ public boolean hasFieldMask() {
    *
    * @return The fieldMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getFieldMask() {
     return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
   }
@@ -583,6 +597,7 @@ public com.google.protobuf.FieldMask getFieldMask() {
    * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
     return getFieldMask();
   }
@@ -602,6 +617,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    *
    * @return The pageToken.
    */
+  @java.lang.Override
   public java.lang.String getPageToken() {
     java.lang.Object ref = pageToken_;
     if (ref instanceof java.lang.String) {
@@ -626,6 +642,7 @@ public java.lang.String getPageToken() {
    *
    * @return The bytes for pageToken.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getPageTokenBytes() {
     java.lang.Object ref = pageToken_;
     if (ref instanceof java.lang.String) {
@@ -652,6 +669,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    *
    * @return The pageSize.
    */
+  @java.lang.Override
   public int getPageSize() {
     return pageSize_;
   }
@@ -2473,6 +2491,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      *
      * @return The pageSize.
      */
+    @java.lang.Override
     public int getPageSize() {
       return pageSize_;
     }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java
index 63a8688ef..f1b6e4538 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java
@@ -501,6 +501,10 @@ public State findValueByNumber(int number) {
           };
 
       public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+        if (this == UNRECOGNIZED) {
+          throw new java.lang.IllegalStateException(
+              "Can't get the descriptor of an unrecognized enum value.");
+        }
         return getDescriptor().getValues().get(ordinal());
       }
 
@@ -549,6 +553,7 @@ private State(int value) {
      *
      * @return Whether the asset field is set.
      */
+    @java.lang.Override
     public boolean hasAsset() {
       return asset_ != null;
     }
@@ -563,6 +568,7 @@ public boolean hasAsset() {
      *
      * @return The asset.
      */
+    @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.Asset getAsset() {
       return asset_ == null
           ? com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance()
@@ -577,6 +583,7 @@ public com.google.cloud.securitycenter.v1beta1.Asset getAsset() {
      *
      * .google.cloud.securitycenter.v1beta1.Asset asset = 1;
      */
+    @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder() {
       return getAsset();
     }
@@ -596,6 +603,7 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder(
      *
      * @return The enum numeric value on the wire for state.
      */
+    @java.lang.Override
     public int getStateValue() {
       return state_;
     }
@@ -612,6 +620,7 @@ public int getStateValue() {
      *
      * @return The state.
      */
+    @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State
         getState() {
       @SuppressWarnings("deprecation")
@@ -1200,6 +1209,7 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder(
        *
        * @return The enum numeric value on the wire for state.
        */
+      @java.lang.Override
       public int getStateValue() {
         return state_;
       }
@@ -1218,6 +1228,7 @@ public int getStateValue() {
        * @return This builder for chaining.
        */
       public Builder setStateValue(int value) {
+
         state_ = value;
         onChanged();
         return this;
@@ -1235,6 +1246,7 @@ public Builder setStateValue(int value) {
        *
        * @return The state.
        */
+      @java.lang.Override
       public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State
           getState() {
         @SuppressWarnings("deprecation")
@@ -1361,6 +1373,7 @@ public com.google.protobuf.Parser getParserForType() {
    * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    * 
    */
+  @java.lang.Override
   public java.util.List
       getListAssetsResultsList() {
     return listAssetsResults_;
@@ -1376,6 +1389,7 @@ public com.google.protobuf.Parser getParserForType() {
    * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    * 
    */
+  @java.lang.Override
   public java.util.List<
           ? extends
               com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder>
@@ -1393,6 +1407,7 @@ public com.google.protobuf.Parser getParserForType() {
    * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    * 
    */
+  @java.lang.Override
   public int getListAssetsResultsCount() {
     return listAssetsResults_.size();
   }
@@ -1407,6 +1422,7 @@ public int getListAssetsResultsCount() {
    * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult
       getListAssetsResults(int index) {
     return listAssetsResults_.get(index);
@@ -1422,6 +1438,7 @@ public int getListAssetsResultsCount() {
    * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder
       getListAssetsResultsOrBuilder(int index) {
     return listAssetsResults_.get(index);
@@ -1440,6 +1457,7 @@ public int getListAssetsResultsCount() {
    *
    * @return Whether the readTime field is set.
    */
+  @java.lang.Override
   public boolean hasReadTime() {
     return readTime_ != null;
   }
@@ -1454,6 +1472,7 @@ public boolean hasReadTime() {
    *
    * @return The readTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getReadTime() {
     return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
   }
@@ -1466,6 +1485,7 @@ public com.google.protobuf.Timestamp getReadTime() {
    *
    * .google.protobuf.Timestamp read_time = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
     return getReadTime();
   }
@@ -1484,6 +1504,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    *
    * @return The nextPageToken.
    */
+  @java.lang.Override
   public java.lang.String getNextPageToken() {
     java.lang.Object ref = nextPageToken_;
     if (ref instanceof java.lang.String) {
@@ -1507,6 +1528,7 @@ public java.lang.String getNextPageToken() {
    *
    * @return The bytes for nextPageToken.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNextPageTokenBytes() {
     java.lang.Object ref = nextPageToken_;
     if (ref instanceof java.lang.String) {
@@ -1532,6 +1554,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
    *
    * @return The totalSize.
    */
+  @java.lang.Override
   public int getTotalSize() {
     return totalSize_;
   }
@@ -2682,6 +2705,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
      *
      * @return The totalSize.
      */
+    @java.lang.Override
     public int getTotalSize() {
       return totalSize_;
     }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java
index afc9d7c7a..7a24a7ad0 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java
@@ -188,6 +188,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The parent.
    */
+  @java.lang.Override
   public java.lang.String getParent() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -215,6 +216,7 @@ public java.lang.String getParent() {
    *
    * @return The bytes for parent.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getParentBytes() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -257,6 +259,7 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    * @return The filter.
    */
+  @java.lang.Override
   public java.lang.String getFilter() {
     java.lang.Object ref = filter_;
     if (ref instanceof java.lang.String) {
@@ -296,6 +299,7 @@ public java.lang.String getFilter() {
    *
    * @return The bytes for filter.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getFilterBytes() {
     java.lang.Object ref = filter_;
     if (ref instanceof java.lang.String) {
@@ -328,6 +332,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
    *
    * @return The orderBy.
    */
+  @java.lang.Override
   public java.lang.String getOrderBy() {
     java.lang.Object ref = orderBy_;
     if (ref instanceof java.lang.String) {
@@ -357,6 +362,7 @@ public java.lang.String getOrderBy() {
    *
    * @return The bytes for orderBy.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getOrderByBytes() {
     java.lang.Object ref = orderBy_;
     if (ref instanceof java.lang.String) {
@@ -385,6 +391,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    *
    * @return Whether the readTime field is set.
    */
+  @java.lang.Override
   public boolean hasReadTime() {
     return readTime_ != null;
   }
@@ -402,6 +409,7 @@ public boolean hasReadTime() {
    *
    * @return The readTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getReadTime() {
     return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
   }
@@ -417,6 +425,7 @@ public com.google.protobuf.Timestamp getReadTime() {
    *
    * .google.protobuf.Timestamp read_time = 4;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
     return getReadTime();
   }
@@ -436,6 +445,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    *
    * @return Whether the fieldMask field is set.
    */
+  @java.lang.Override
   public boolean hasFieldMask() {
     return fieldMask_ != null;
   }
@@ -452,6 +462,7 @@ public boolean hasFieldMask() {
    *
    * @return The fieldMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getFieldMask() {
     return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
   }
@@ -466,6 +477,7 @@ public com.google.protobuf.FieldMask getFieldMask() {
    * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
     return getFieldMask();
   }
@@ -485,6 +497,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    *
    * @return The pageToken.
    */
+  @java.lang.Override
   public java.lang.String getPageToken() {
     java.lang.Object ref = pageToken_;
     if (ref instanceof java.lang.String) {
@@ -509,6 +522,7 @@ public java.lang.String getPageToken() {
    *
    * @return The bytes for pageToken.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getPageTokenBytes() {
     java.lang.Object ref = pageToken_;
     if (ref instanceof java.lang.String) {
@@ -535,6 +549,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    *
    * @return The pageSize.
    */
+  @java.lang.Override
   public int getPageSize() {
     return pageSize_;
   }
@@ -1972,6 +1987,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      *
      * @return The pageSize.
      */
+    @java.lang.Override
     public int getPageSize() {
       return pageSize_;
     }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java
index 877f587fc..2965c0c1d 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java
@@ -159,6 +159,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1;
    */
+  @java.lang.Override
   public java.util.List getFindingsList() {
     return findings_;
   }
@@ -171,6 +172,7 @@ public java.util.List getFindin
    *
    * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1;
    */
+  @java.lang.Override
   public java.util.List
       getFindingsOrBuilderList() {
     return findings_;
@@ -184,6 +186,7 @@ public java.util.List getFindin
    *
    * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1;
    */
+  @java.lang.Override
   public int getFindingsCount() {
     return findings_.size();
   }
@@ -196,6 +199,7 @@ public int getFindingsCount() {
    *
    * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1;
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.Finding getFindings(int index) {
     return findings_.get(index);
   }
@@ -208,6 +212,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFindings(int index) {
    *
    * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1;
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder(int index) {
     return findings_.get(index);
   }
@@ -225,6 +230,7 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBui
    *
    * @return Whether the readTime field is set.
    */
+  @java.lang.Override
   public boolean hasReadTime() {
     return readTime_ != null;
   }
@@ -239,6 +245,7 @@ public boolean hasReadTime() {
    *
    * @return The readTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getReadTime() {
     return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
   }
@@ -251,6 +258,7 @@ public com.google.protobuf.Timestamp getReadTime() {
    *
    * .google.protobuf.Timestamp read_time = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
     return getReadTime();
   }
@@ -269,6 +277,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    *
    * @return The nextPageToken.
    */
+  @java.lang.Override
   public java.lang.String getNextPageToken() {
     java.lang.Object ref = nextPageToken_;
     if (ref instanceof java.lang.String) {
@@ -292,6 +301,7 @@ public java.lang.String getNextPageToken() {
    *
    * @return The bytes for nextPageToken.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNextPageTokenBytes() {
     java.lang.Object ref = nextPageToken_;
     if (ref instanceof java.lang.String) {
@@ -317,6 +327,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
    *
    * @return The totalSize.
    */
+  @java.lang.Override
   public int getTotalSize() {
     return totalSize_;
   }
@@ -1397,6 +1408,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
      *
      * @return The totalSize.
      */
+    @java.lang.Override
     public int getTotalSize() {
       return totalSize_;
     }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java
index 00584c820..2ac7e0100 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java
@@ -140,6 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The parent.
    */
+  @java.lang.Override
   public java.lang.String getParent() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -165,6 +166,7 @@ public java.lang.String getParent() {
    *
    * @return The bytes for parent.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getParentBytes() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -192,6 +194,7 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    * @return The pageToken.
    */
+  @java.lang.Override
   public java.lang.String getPageToken() {
     java.lang.Object ref = pageToken_;
     if (ref instanceof java.lang.String) {
@@ -216,6 +219,7 @@ public java.lang.String getPageToken() {
    *
    * @return The bytes for pageToken.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getPageTokenBytes() {
     java.lang.Object ref = pageToken_;
     if (ref instanceof java.lang.String) {
@@ -242,6 +246,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    *
    * @return The pageSize.
    */
+  @java.lang.Override
   public int getPageSize() {
     return pageSize_;
   }
@@ -846,6 +851,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      *
      * @return The pageSize.
      */
+    @java.lang.Override
     public int getPageSize() {
       return pageSize_;
     }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java
index 0f3e15b53..c87d87ecb 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java
@@ -139,6 +139,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1;
    */
+  @java.lang.Override
   public java.util.List getSourcesList() {
     return sources_;
   }
@@ -151,6 +152,7 @@ public java.util.List getSources
    *
    * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1;
    */
+  @java.lang.Override
   public java.util.List
       getSourcesOrBuilderList() {
     return sources_;
@@ -164,6 +166,7 @@ public java.util.List getSources
    *
    * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1;
    */
+  @java.lang.Override
   public int getSourcesCount() {
     return sources_.size();
   }
@@ -176,6 +179,7 @@ public int getSourcesCount() {
    *
    * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1;
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.Source getSources(int index) {
     return sources_.get(index);
   }
@@ -188,6 +192,7 @@ public com.google.cloud.securitycenter.v1beta1.Source getSources(int index) {
    *
    * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1;
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder(int index) {
     return sources_.get(index);
   }
@@ -206,6 +211,7 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuild
    *
    * @return The nextPageToken.
    */
+  @java.lang.Override
   public java.lang.String getNextPageToken() {
     java.lang.Object ref = nextPageToken_;
     if (ref instanceof java.lang.String) {
@@ -229,6 +235,7 @@ public java.lang.String getNextPageToken() {
    *
    * @return The bytes for nextPageToken.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNextPageTokenBytes() {
     java.lang.Object ref = nextPageToken_;
     if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java
index 03322d1ad..6b0e56a06 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java
@@ -470,6 +470,10 @@ public InclusionMode findValueByNumber(int number) {
               };
 
       public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+        if (this == UNRECOGNIZED) {
+          throw new java.lang.IllegalStateException(
+              "Can't get the descriptor of an unrecognized enum value.");
+        }
         return getDescriptor().getValues().get(ordinal());
       }
 
@@ -582,6 +586,7 @@ public com.google.protobuf.ByteString getProjectIdsBytes(int index) {
      *
      * @return The enum numeric value on the wire for inclusionMode.
      */
+    @java.lang.Override
     public int getInclusionModeValue() {
       return inclusionMode_;
     }
@@ -598,6 +603,7 @@ public int getInclusionModeValue() {
      *
      * @return The inclusionMode.
      */
+    @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig
             .InclusionMode
         getInclusionMode() {
@@ -1186,6 +1192,7 @@ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) {
        *
        * @return The enum numeric value on the wire for inclusionMode.
        */
+      @java.lang.Override
       public int getInclusionModeValue() {
         return inclusionMode_;
       }
@@ -1204,6 +1211,7 @@ public int getInclusionModeValue() {
        * @return This builder for chaining.
        */
       public Builder setInclusionModeValue(int value) {
+
         inclusionMode_ = value;
         onChanged();
         return this;
@@ -1221,6 +1229,7 @@ public Builder setInclusionModeValue(int value) {
        *
        * @return The inclusionMode.
        */
+      @java.lang.Override
       public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig
               .InclusionMode
           getInclusionMode() {
@@ -1354,6 +1363,7 @@ public com.google.protobuf.Parser getParserForType() {
    *
    * @return The name.
    */
+  @java.lang.Override
   public java.lang.String getName() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -1379,6 +1389,7 @@ public java.lang.String getName() {
    *
    * @return The bytes for name.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNameBytes() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -1407,6 +1418,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    * @return The enableAssetDiscovery.
    */
+  @java.lang.Override
   public boolean getEnableAssetDiscovery() {
     return enableAssetDiscovery_;
   }
@@ -1427,6 +1439,7 @@ public boolean getEnableAssetDiscovery() {
    *
    * @return Whether the assetDiscoveryConfig field is set.
    */
+  @java.lang.Override
   public boolean hasAssetDiscoveryConfig() {
     return assetDiscoveryConfig_ != null;
   }
@@ -1443,6 +1456,7 @@ public boolean hasAssetDiscoveryConfig() {
    *
    * @return The assetDiscoveryConfig.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig
       getAssetDiscoveryConfig() {
     return assetDiscoveryConfig_ == null
@@ -1461,6 +1475,7 @@ public boolean hasAssetDiscoveryConfig() {
    * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3;
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder
       getAssetDiscoveryConfigOrBuilder() {
     return getAssetDiscoveryConfig();
@@ -1968,6 +1983,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      *
      * @return The enableAssetDiscovery.
      */
+    @java.lang.Override
     public boolean getEnableAssetDiscovery() {
       return enableAssetDiscovery_;
     }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java
index 0f44360d3..3fcd74db5 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java
@@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The parent.
    */
+  @java.lang.Override
   public java.lang.String getParent() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
@@ -152,6 +153,7 @@ public java.lang.String getParent() {
    *
    * @return The bytes for parent.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getParentBytes() {
     java.lang.Object ref = parent_;
     if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java
index fd4fc7a5f..ecfa9ed84 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java
@@ -271,6 +271,10 @@ public State findValueByNumber(int number) {
         };
 
     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      if (this == UNRECOGNIZED) {
+        throw new java.lang.IllegalStateException(
+            "Can't get the descriptor of an unrecognized enum value.");
+      }
       return getDescriptor().getValues().get(ordinal());
     }
 
@@ -318,6 +322,7 @@ private State(int value) {
    *
    * @return The enum numeric value on the wire for state.
    */
+  @java.lang.Override
   public int getStateValue() {
     return state_;
   }
@@ -332,6 +337,7 @@ public int getStateValue() {
    *
    * @return The state.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState() {
     @SuppressWarnings("deprecation")
     com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result =
@@ -354,6 +360,7 @@ public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State g
    *
    * @return Whether the duration field is set.
    */
+  @java.lang.Override
   public boolean hasDuration() {
     return duration_ != null;
   }
@@ -368,6 +375,7 @@ public boolean hasDuration() {
    *
    * @return The duration.
    */
+  @java.lang.Override
   public com.google.protobuf.Duration getDuration() {
     return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
   }
@@ -380,6 +388,7 @@ public com.google.protobuf.Duration getDuration() {
    *
    * .google.protobuf.Duration duration = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
     return getDuration();
   }
@@ -752,6 +761,7 @@ public Builder mergeFrom(
      *
      * @return The enum numeric value on the wire for state.
      */
+    @java.lang.Override
     public int getStateValue() {
       return state_;
     }
@@ -768,6 +778,7 @@ public int getStateValue() {
      * @return This builder for chaining.
      */
     public Builder setStateValue(int value) {
+
       state_ = value;
       onChanged();
       return this;
@@ -783,6 +794,7 @@ public Builder setStateValue(int value) {
      *
      * @return The state.
      */
+    @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState() {
       @SuppressWarnings("deprecation")
       com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result =
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java
index 1657d126d..91560f155 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java
@@ -156,6 +156,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * @return The name.
    */
+  @java.lang.Override
   public java.lang.String getName() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -182,6 +183,7 @@ public java.lang.String getName() {
    *
    * @return The bytes for name.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNameBytes() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -234,6 +236,7 @@ public int getMarksCount() {
    *
    * map<string, string> marks = 2;
    */
+  @java.lang.Override
   public boolean containsMarks(java.lang.String key) {
     if (key == null) {
       throw new java.lang.NullPointerException();
@@ -241,6 +244,7 @@ public boolean containsMarks(java.lang.String key) {
     return internalGetMarks().getMap().containsKey(key);
   }
   /** Use {@link #getMarksMap()} instead. */
+  @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMarks() {
     return getMarksMap();
@@ -260,6 +264,7 @@ public java.util.Map getMarks() {
    *
    * map<string, string> marks = 2;
    */
+  @java.lang.Override
   public java.util.Map getMarksMap() {
     return internalGetMarks().getMap();
   }
@@ -278,6 +283,7 @@ public java.util.Map getMarksMap() {
    *
    * map<string, string> marks = 2;
    */
+  @java.lang.Override
   public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
       throw new java.lang.NullPointerException();
@@ -300,6 +306,7 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
    *
    * map<string, string> marks = 2;
    */
+  @java.lang.Override
   public java.lang.String getMarksOrThrow(java.lang.String key) {
     if (key == null) {
       throw new java.lang.NullPointerException();
@@ -843,6 +850,7 @@ public int getMarksCount() {
      *
      * map<string, string> marks = 2;
      */
+    @java.lang.Override
     public boolean containsMarks(java.lang.String key) {
       if (key == null) {
         throw new java.lang.NullPointerException();
@@ -850,6 +858,7 @@ public boolean containsMarks(java.lang.String key) {
       return internalGetMarks().getMap().containsKey(key);
     }
     /** Use {@link #getMarksMap()} instead. */
+    @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMarks() {
       return getMarksMap();
@@ -869,6 +878,7 @@ public java.util.Map getMarks() {
      *
      * map<string, string> marks = 2;
      */
+    @java.lang.Override
     public java.util.Map getMarksMap() {
       return internalGetMarks().getMap();
     }
@@ -887,6 +897,7 @@ public java.util.Map getMarksMap() {
      *
      * map<string, string> marks = 2;
      */
+    @java.lang.Override
     public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
         throw new java.lang.NullPointerException();
@@ -909,6 +920,7 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
      *
      * map<string, string> marks = 2;
      */
+    @java.lang.Override
     public java.lang.String getMarksOrThrow(java.lang.String key) {
       if (key == null) {
         throw new java.lang.NullPointerException();
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java
index d98090c19..5cb430b44 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java
@@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The name.
    */
+  @java.lang.Override
   public java.lang.String getName() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -179,6 +180,7 @@ public java.lang.String getName() {
    *
    * @return The bytes for name.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNameBytes() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -206,6 +208,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    * @return The enum numeric value on the wire for state.
    */
+  @java.lang.Override
   public int getStateValue() {
     return state_;
   }
@@ -222,6 +225,7 @@ public int getStateValue() {
    *
    * @return The state.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
     @SuppressWarnings("deprecation")
     com.google.cloud.securitycenter.v1beta1.Finding.State result =
@@ -245,6 +249,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
    *
    * @return Whether the startTime field is set.
    */
+  @java.lang.Override
   public boolean hasStartTime() {
     return startTime_ != null;
   }
@@ -260,6 +265,7 @@ public boolean hasStartTime() {
    *
    * @return The startTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getStartTime() {
     return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
   }
@@ -273,6 +279,7 @@ public com.google.protobuf.Timestamp getStartTime() {
    * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
     return getStartTime();
   }
@@ -789,6 +796,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      *
      * @return The enum numeric value on the wire for state.
      */
+    @java.lang.Override
     public int getStateValue() {
       return state_;
     }
@@ -807,6 +815,7 @@ public int getStateValue() {
      * @return This builder for chaining.
      */
     public Builder setStateValue(int value) {
+
       state_ = value;
       onChanged();
       return this;
@@ -824,6 +833,7 @@ public Builder setStateValue(int value) {
      *
      * @return The state.
      */
+    @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
       @SuppressWarnings("deprecation")
       com.google.cloud.securitycenter.v1beta1.Finding.State result =
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java
index 2d8947b3e..50023742c 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java
@@ -145,6 +145,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return The name.
    */
+  @java.lang.Override
   public java.lang.String getName() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -170,6 +171,7 @@ public java.lang.String getName() {
    *
    * @return The bytes for name.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getNameBytes() {
     java.lang.Object ref = name_;
     if (ref instanceof java.lang.String) {
@@ -199,6 +201,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    * @return The displayName.
    */
+  @java.lang.Override
   public java.lang.String getDisplayName() {
     java.lang.Object ref = displayName_;
     if (ref instanceof java.lang.String) {
@@ -225,6 +228,7 @@ public java.lang.String getDisplayName() {
    *
    * @return The bytes for displayName.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getDisplayNameBytes() {
     java.lang.Object ref = displayName_;
     if (ref instanceof java.lang.String) {
@@ -256,6 +260,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    *
    * @return The description.
    */
+  @java.lang.Override
   public java.lang.String getDescription() {
     java.lang.Object ref = description_;
     if (ref instanceof java.lang.String) {
@@ -284,6 +289,7 @@ public java.lang.String getDescription() {
    *
    * @return The bytes for description.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getDescriptionBytes() {
     java.lang.Object ref = description_;
     if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java
index 37166afc5..b0b342154 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java
@@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the finding field is set.
    */
+  @java.lang.Override
   public boolean hasFinding() {
     return finding_ != null;
   }
@@ -172,6 +173,7 @@ public boolean hasFinding() {
    *
    * @return The finding.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.Finding getFinding() {
     return finding_ == null
         ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()
@@ -192,6 +194,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() {
    * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() {
     return getFinding();
   }
@@ -210,6 +213,7 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -225,6 +229,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -238,6 +243,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
index fb01a7617..ee19b4327 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
@@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the organizationSettings field is set.
    */
+  @java.lang.Override
   public boolean hasOrganizationSettings() {
     return organizationSettings_ != null;
   }
@@ -168,6 +169,7 @@ public boolean hasOrganizationSettings() {
    *
    * @return The organizationSettings.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings() {
     return organizationSettings_ == null
         ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance()
@@ -184,6 +186,7 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizat
    * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder
       getOrganizationSettingsOrBuilder() {
     return getOrganizationSettings();
@@ -202,6 +205,7 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizat
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -216,6 +220,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -228,6 +233,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java
index cd42a237c..54fc7f309 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java
@@ -164,6 +164,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the securityMarks field is set.
    */
+  @java.lang.Override
   public boolean hasSecurityMarks() {
     return securityMarks_ != null;
   }
@@ -180,6 +181,7 @@ public boolean hasSecurityMarks() {
    *
    * @return The securityMarks.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() {
     return securityMarks_ == null
         ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance()
@@ -196,6 +198,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
    * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder
       getSecurityMarksOrBuilder() {
     return getSecurityMarks();
@@ -214,6 +217,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -228,6 +232,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -240,6 +245,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
@@ -257,6 +263,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    *
    * @return Whether the startTime field is set.
    */
+  @java.lang.Override
   public boolean hasStartTime() {
     return startTime_ != null;
   }
@@ -271,6 +278,7 @@ public boolean hasStartTime() {
    *
    * @return The startTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getStartTime() {
     return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
   }
@@ -283,6 +291,7 @@ public com.google.protobuf.Timestamp getStartTime() {
    *
    * .google.protobuf.Timestamp start_time = 3;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
     return getStartTime();
   }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java
index 8e1dd78cd..e28fb697f 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java
@@ -148,6 +148,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the source field is set.
    */
+  @java.lang.Override
   public boolean hasSource() {
     return source_ != null;
   }
@@ -164,6 +165,7 @@ public boolean hasSource() {
    *
    * @return The source.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.Source getSource() {
     return source_ == null
         ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance()
@@ -180,6 +182,7 @@ public com.google.cloud.securitycenter.v1beta1.Source getSource() {
    * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() {
     return getSource();
   }
@@ -197,6 +200,7 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -211,6 +215,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -223,6 +228,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/clirr-ignored-differences.xml b/proto-google-cloud-securitycenter-v1p1beta1/clirr-ignored-differences.xml
index fa5f0a2a7..06d8269ad 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/clirr-ignored-differences.xml
+++ b/proto-google-cloud-securitycenter-v1p1beta1/clirr-ignored-differences.xml
@@ -17,7 +17,7 @@
     boolean has*(*)
   
 
-  
+  
   
     7002
     com/google/cloud/securitycenter/v1p1beta1/SecurityMarksName
@@ -31,4 +31,48 @@
     8001
     com/google/cloud/securitycenter/v1p1beta1/UntypedSecurityMarksName
   
+  
+    8001
+    com/google/cloud/securitycenter/v1p1beta1/SecurityMarksName$OrganizationSourceFindingBuilder
+  
+  
+    6011
+    com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest
+    HAVING_FIELD_NUMBER
+  
+  
+    7002
+    com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest*
+    * *Having*(*)
+  
+  
+    6011
+    com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest
+    HAVING_FIELD_NUMBER
+  
+  
+    7002
+    com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest*
+    * *Having*(*)
+  
+  
+    6011
+    com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest
+    HAVING_FIELD_NUMBER
+  
+  
+    7002
+    com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest*
+    * *Having*(*)
+  
+  
+    6011
+    com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest
+    HAVING_FIELD_NUMBER
+  
+  
+    7002
+    com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest*
+    * *Having*(*)
+  
 
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/pom.xml b/proto-google-cloud-securitycenter-v1p1beta1/pom.xml
index ac6a99e53..9d7df7987 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/pom.xml
+++ b/proto-google-cloud-securitycenter-v1p1beta1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-securitycenter-v1p1beta1
-  0.86.0
+  0.87.0
   proto-google-cloud-securitycenter-v1p1beta1
   PROTO library for proto-google-cloud-securitycenter-v1p1beta1
   
     com.google.cloud
     google-cloud-securitycenter-parent
-    0.121.0
+    0.122.0
   
   
     
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java
index 7c4d87446..fa1d9f160 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java
@@ -22,11 +22,12 @@
  *
  *
  * 
- * Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
- * Platform (GCP) resource.
- * The Asset is a Cloud SCC resource that captures information about a single
- * GCP resource. All modifications to an Asset are only within the context of
- * Cloud SCC and don't affect the referenced GCP resource.
+ * Security Command Center representation of a Google Cloud
+ * resource.
+ * The Asset is a Security Command Center resource that captures information
+ * about a single Google Cloud resource. All modifications to an Asset are only
+ * within the context of Security Command Center and don't affect the referenced
+ * Google Cloud resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset} @@ -237,7 +238,7 @@ public interface SecurityCenterPropertiesOrBuilder * * *
-     * The full resource name of the GCP resource this asset
+     * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
@@ -251,7 +252,7 @@ public interface SecurityCenterPropertiesOrBuilder * * *
-     * The full resource name of the GCP resource this asset
+     * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
@@ -266,10 +267,10 @@ public interface SecurityCenterPropertiesOrBuilder * * *
-     * The type of the GCP resource. Examples include: APPLICATION,
+     * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-     * Cloud SCC and/or the producer of the resource and is immutable
-     * after create time.
+     * Security Command Center and/or the producer of the resource and is
+     * immutable after create time.
      * 
* * string resource_type = 2; @@ -281,10 +282,10 @@ public interface SecurityCenterPropertiesOrBuilder * * *
-     * The type of the GCP resource. Examples include: APPLICATION,
+     * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-     * Cloud SCC and/or the producer of the resource and is immutable
-     * after create time.
+     * Security Command Center and/or the producer of the resource and is
+     * immutable after create time.
      * 
* * string resource_type = 2; @@ -477,8 +478,8 @@ public interface SecurityCenterPropertiesOrBuilder * * *
-   * Cloud SCC managed properties. These properties are managed by Cloud SCC and
-   * cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties} @@ -637,7 +638,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The full resource name of the GCP resource this asset
+     * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
@@ -646,6 +647,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The resourceName. */ + @java.lang.Override public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { @@ -661,7 +663,7 @@ public java.lang.String getResourceName() { * * *
-     * The full resource name of the GCP resource this asset
+     * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
@@ -670,6 +672,7 @@ public java.lang.String getResourceName() { * * @return The bytes for resourceName. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { @@ -688,16 +691,17 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * *
-     * The type of the GCP resource. Examples include: APPLICATION,
+     * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-     * Cloud SCC and/or the producer of the resource and is immutable
-     * after create time.
+     * Security Command Center and/or the producer of the resource and is
+     * immutable after create time.
      * 
* * string resource_type = 2; * * @return The resourceType. */ + @java.lang.Override public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { @@ -713,16 +717,17 @@ public java.lang.String getResourceType() { * * *
-     * The type of the GCP resource. Examples include: APPLICATION,
+     * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-     * Cloud SCC and/or the producer of the resource and is immutable
-     * after create time.
+     * Security Command Center and/or the producer of the resource and is
+     * immutable after create time.
      * 
* * string resource_type = 2; * * @return The bytes for resourceType. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { @@ -749,6 +754,7 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { * * @return The resourceParent. */ + @java.lang.Override public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; if (ref instanceof java.lang.String) { @@ -772,6 +778,7 @@ public java.lang.String getResourceParent() { * * @return The bytes for resourceParent. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof java.lang.String) { @@ -798,6 +805,7 @@ public com.google.protobuf.ByteString getResourceParentBytes() { * * @return The resourceProject. */ + @java.lang.Override public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; if (ref instanceof java.lang.String) { @@ -821,6 +829,7 @@ public java.lang.String getResourceProject() { * * @return The bytes for resourceProject. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof java.lang.String) { @@ -907,6 +916,7 @@ public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { * * @return The resourceDisplayName. */ + @java.lang.Override public java.lang.String getResourceDisplayName() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof java.lang.String) { @@ -929,6 +939,7 @@ public java.lang.String getResourceDisplayName() { * * @return The bytes for resourceDisplayName. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceDisplayNameBytes() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof java.lang.String) { @@ -954,6 +965,7 @@ public com.google.protobuf.ByteString getResourceDisplayNameBytes() { * * @return The resourceParentDisplayName. */ + @java.lang.Override public java.lang.String getResourceParentDisplayName() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof java.lang.String) { @@ -976,6 +988,7 @@ public java.lang.String getResourceParentDisplayName() { * * @return The bytes for resourceParentDisplayName. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof java.lang.String) { @@ -1001,6 +1014,7 @@ public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { * * @return The resourceProjectDisplayName. */ + @java.lang.Override public java.lang.String getResourceProjectDisplayName() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof java.lang.String) { @@ -1023,6 +1037,7 @@ public java.lang.String getResourceProjectDisplayName() { * * @return The bytes for resourceProjectDisplayName. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof java.lang.String) { @@ -1282,8 +1297,8 @@ protected Builder newBuilderForType( * * *
-     * Cloud SCC managed properties. These properties are managed by Cloud SCC and
-     * cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties} @@ -1520,7 +1535,7 @@ public Builder mergeFrom( * * *
-       * The full resource name of the GCP resource this asset
+       * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
@@ -1544,7 +1559,7 @@ public java.lang.String getResourceName() { * * *
-       * The full resource name of the GCP resource this asset
+       * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
@@ -1568,7 +1583,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * *
-       * The full resource name of the GCP resource this asset
+       * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
@@ -1591,7 +1606,7 @@ public Builder setResourceName(java.lang.String value) { * * *
-       * The full resource name of the GCP resource this asset
+       * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
@@ -1610,7 +1625,7 @@ public Builder clearResourceName() { * * *
-       * The full resource name of the GCP resource this asset
+       * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
@@ -1636,10 +1651,10 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { * * *
-       * The type of the GCP resource. Examples include: APPLICATION,
+       * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-       * Cloud SCC and/or the producer of the resource and is immutable
-       * after create time.
+       * Security Command Center and/or the producer of the resource and is
+       * immutable after create time.
        * 
* * string resource_type = 2; @@ -1661,10 +1676,10 @@ public java.lang.String getResourceType() { * * *
-       * The type of the GCP resource. Examples include: APPLICATION,
+       * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-       * Cloud SCC and/or the producer of the resource and is immutable
-       * after create time.
+       * Security Command Center and/or the producer of the resource and is
+       * immutable after create time.
        * 
* * string resource_type = 2; @@ -1686,10 +1701,10 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { * * *
-       * The type of the GCP resource. Examples include: APPLICATION,
+       * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-       * Cloud SCC and/or the producer of the resource and is immutable
-       * after create time.
+       * Security Command Center and/or the producer of the resource and is
+       * immutable after create time.
        * 
* * string resource_type = 2; @@ -1710,10 +1725,10 @@ public Builder setResourceType(java.lang.String value) { * * *
-       * The type of the GCP resource. Examples include: APPLICATION,
+       * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-       * Cloud SCC and/or the producer of the resource and is immutable
-       * after create time.
+       * Security Command Center and/or the producer of the resource and is
+       * immutable after create time.
        * 
* * string resource_type = 2; @@ -1730,10 +1745,10 @@ public Builder clearResourceType() { * * *
-       * The type of the GCP resource. Examples include: APPLICATION,
+       * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-       * Cloud SCC and/or the producer of the resource and is immutable
-       * after create time.
+       * Security Command Center and/or the producer of the resource and is
+       * immutable after create time.
        * 
* * string resource_type = 2; @@ -2526,7 +2541,7 @@ public interface IamPolicyOrBuilder * *
      * The JSON representation of the Policy associated with the asset.
-     * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+     * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
      * format details.
      * 
* @@ -2540,7 +2555,7 @@ public interface IamPolicyOrBuilder * *
      * The JSON representation of the Policy associated with the asset.
-     * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+     * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
      * format details.
      * 
* @@ -2554,9 +2569,10 @@ public interface IamPolicyOrBuilder * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy} @@ -2652,7 +2668,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
      * The JSON representation of the Policy associated with the asset.
-     * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+     * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
      * format details.
      * 
* @@ -2660,6 +2676,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The policyBlob. */ + @java.lang.Override public java.lang.String getPolicyBlob() { java.lang.Object ref = policyBlob_; if (ref instanceof java.lang.String) { @@ -2676,7 +2693,7 @@ public java.lang.String getPolicyBlob() { * *
      * The JSON representation of the Policy associated with the asset.
-     * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+     * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
      * format details.
      * 
* @@ -2684,6 +2701,7 @@ public java.lang.String getPolicyBlob() { * * @return The bytes for policyBlob. */ + @java.lang.Override public com.google.protobuf.ByteString getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; if (ref instanceof java.lang.String) { @@ -2861,9 +2879,10 @@ protected Builder newBuilderForType( * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy} @@ -3027,7 +3046,7 @@ public Builder mergeFrom( * *
        * The JSON representation of the Policy associated with the asset.
-       * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+       * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
        * format details.
        * 
* @@ -3051,7 +3070,7 @@ public java.lang.String getPolicyBlob() { * *
        * The JSON representation of the Policy associated with the asset.
-       * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+       * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
        * format details.
        * 
* @@ -3075,7 +3094,7 @@ public com.google.protobuf.ByteString getPolicyBlobBytes() { * *
        * The JSON representation of the Policy associated with the asset.
-       * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+       * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
        * format details.
        * 
* @@ -3098,7 +3117,7 @@ public Builder setPolicyBlob(java.lang.String value) { * *
        * The JSON representation of the Policy associated with the asset.
-       * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+       * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
        * format details.
        * 
* @@ -3117,7 +3136,7 @@ public Builder clearPolicyBlob() { * *
        * The JSON representation of the Policy associated with the asset.
-       * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+       * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
        * format details.
        * 
* @@ -3205,6 +3224,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getDefaultInsta * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -3230,6 +3250,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -3249,8 +3270,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Cloud SCC managed properties. These properties are managed by
-   * Cloud SCC and cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * @@ -3259,6 +3280,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return Whether the securityCenterProperties field is set. */ + @java.lang.Override public boolean hasSecurityCenterProperties() { return securityCenterProperties_ != null; } @@ -3266,8 +3288,8 @@ public boolean hasSecurityCenterProperties() { * * *
-   * Cloud SCC managed properties. These properties are managed by
-   * Cloud SCC and cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * @@ -3276,6 +3298,7 @@ public boolean hasSecurityCenterProperties() { * * @return The securityCenterProperties. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { return securityCenterProperties_ == null @@ -3287,14 +3310,15 @@ public boolean hasSecurityCenterProperties() { * * *
-   * Cloud SCC managed properties. These properties are managed by
-   * Cloud SCC and cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { return getSecurityCenterProperties(); @@ -3335,11 +3359,12 @@ public int getResourcePropertiesCount() { * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public boolean containsResourceProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -3347,6 +3372,7 @@ public boolean containsResourceProperties(java.lang.String key) { return internalGetResourceProperties().getMap().containsKey(key); } /** Use {@link #getResourcePropertiesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getResourceProperties() { return getResourcePropertiesMap(); @@ -3356,11 +3382,12 @@ public java.util.Map getResourcePro * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public java.util.Map getResourcePropertiesMap() { return internalGetResourceProperties().getMap(); } @@ -3369,11 +3396,12 @@ public java.util.Map getResourcePro * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getResourcePropertiesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { @@ -3388,11 +3416,12 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault( * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -3419,6 +3448,7 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k * * @return Whether the securityMarks field is set. */ + @java.lang.Override public boolean hasSecurityMarks() { return securityMarks_ != null; } @@ -3434,6 +3464,7 @@ public boolean hasSecurityMarks() { * * @return The securityMarks. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() @@ -3449,6 +3480,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks( * * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { return getSecurityMarks(); @@ -3460,13 +3492,14 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks( * * *
-   * The time at which the asset was created in Cloud SCC.
+   * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; * * @return Whether the createTime field is set. */ + @java.lang.Override public boolean hasCreateTime() { return createTime_ != null; } @@ -3474,13 +3507,14 @@ public boolean hasCreateTime() { * * *
-   * The time at which the asset was created in Cloud SCC.
+   * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; * * @return The createTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } @@ -3488,11 +3522,12 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * The time at which the asset was created in Cloud SCC.
+   * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); } @@ -3511,6 +3546,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * @return Whether the updateTime field is set. */ + @java.lang.Override public boolean hasUpdateTime() { return updateTime_ != null; } @@ -3526,6 +3562,7 @@ public boolean hasUpdateTime() { * * @return The updateTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } @@ -3539,6 +3576,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * .google.protobuf.Timestamp update_time = 10; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); } @@ -3549,15 +3587,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; * * @return Whether the iamPolicy field is set. */ + @java.lang.Override public boolean hasIamPolicy() { return iamPolicy_ != null; } @@ -3565,15 +3605,17 @@ public boolean hasIamPolicy() { * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; * * @return The iamPolicy. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy() { return iamPolicy_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() @@ -3583,13 +3625,15 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy() * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder() { return getIamPolicy(); @@ -3852,11 +3896,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
-   * Platform (GCP) resource.
-   * The Asset is a Cloud SCC resource that captures information about a single
-   * GCP resource. All modifications to an Asset are only within the context of
-   * Cloud SCC and don't affect the referenced GCP resource.
+   * Security Command Center representation of a Google Cloud
+   * resource.
+   * The Asset is a Security Command Center resource that captures information
+   * about a single Google Cloud resource. All modifications to an Asset are only
+   * within the context of Security Command Center and don't affect the referenced
+   * Google Cloud resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset} @@ -4239,8 +4284,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4256,8 +4301,8 @@ public boolean hasSecurityCenterProperties() { * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4281,8 +4326,8 @@ public boolean hasSecurityCenterProperties() { * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4307,8 +4352,8 @@ public Builder setSecurityCenterProperties( * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4331,8 +4376,8 @@ public Builder setSecurityCenterProperties( * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4362,8 +4407,8 @@ public Builder mergeSecurityCenterProperties( * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4385,8 +4430,8 @@ public Builder clearSecurityCenterProperties() { * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4403,8 +4448,8 @@ public Builder clearSecurityCenterProperties() { * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4426,8 +4471,8 @@ public Builder clearSecurityCenterProperties() { * * *
-     * Cloud SCC managed properties. These properties are managed by
-     * Cloud SCC and cannot be modified by the user.
+     * Security Command Center managed properties. These properties are managed by
+     * Security Command Center and cannot be modified by the user.
      * 
* * @@ -4486,11 +4531,12 @@ public int getResourcePropertiesCount() { * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public boolean containsResourceProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -4498,6 +4544,7 @@ public boolean containsResourceProperties(java.lang.String key) { return internalGetResourceProperties().getMap().containsKey(key); } /** Use {@link #getResourcePropertiesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getResourceProperties() { return getResourcePropertiesMap(); @@ -4507,11 +4554,12 @@ public java.util.Map getResourcePro * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public java.util.Map getResourcePropertiesMap() { return internalGetResourceProperties().getMap(); } @@ -4520,11 +4568,12 @@ public java.util.Map getResourcePro * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getResourcePropertiesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { @@ -4539,11 +4588,12 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault( * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -4565,7 +4615,7 @@ public Builder clearResourceProperties() { * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -4588,7 +4638,7 @@ public Builder removeResourceProperties(java.lang.String key) { * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -4608,7 +4658,7 @@ public Builder putResourceProperties(java.lang.String key, com.google.protobuf.V * *
      * Resource managed properties. These properties are managed and defined by
-     * the GCP resource and cannot be modified by the user.
+     * the Google Cloud resource and cannot be modified by the user.
      * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -4827,7 +4877,7 @@ public Builder clearSecurityMarks() { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4841,7 +4891,7 @@ public boolean hasCreateTime() { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4861,7 +4911,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4883,7 +4933,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4902,7 +4952,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4926,7 +4976,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4946,7 +4996,7 @@ public Builder clearCreateTime() { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4960,7 +5010,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -4978,7 +5028,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * The time at which the asset was created in Cloud SCC.
+     * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; @@ -5202,9 +5252,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; @@ -5218,9 +5269,10 @@ public boolean hasIamPolicy() { * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; @@ -5240,9 +5292,10 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy() * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; @@ -5264,9 +5317,10 @@ public Builder setIamPolicy(com.google.cloud.securitycenter.v1p1beta1.Asset.IamP * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; @@ -5286,9 +5340,10 @@ public Builder setIamPolicy( * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; @@ -5314,9 +5369,10 @@ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1p1beta1.Asset.Ia * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; @@ -5336,9 +5392,10 @@ public Builder clearIamPolicy() { * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; @@ -5352,9 +5409,10 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder getIamP * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; @@ -5373,9 +5431,10 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder getIamP * * *
-     * IAM Policy information associated with the GCP resource described by the
-     * Cloud SCC asset. This information is managed and defined by the GCP
-     * resource and cannot be modified by the user.
+     * Cloud IAM Policy information associated with the Google Cloud resource
+     * described by the Security Command Center asset. This information is managed
+     * and defined by the Google Cloud resource and cannot be modified by the
+     * user.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java index 485fe0e6f..4cef12afd 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java @@ -58,8 +58,8 @@ public interface AssetOrBuilder * * *
-   * Cloud SCC managed properties. These properties are managed by
-   * Cloud SCC and cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * @@ -73,8 +73,8 @@ public interface AssetOrBuilder * * *
-   * Cloud SCC managed properties. These properties are managed by
-   * Cloud SCC and cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * @@ -89,8 +89,8 @@ public interface AssetOrBuilder * * *
-   * Cloud SCC managed properties. These properties are managed by
-   * Cloud SCC and cannot be modified by the user.
+   * Security Command Center managed properties. These properties are managed by
+   * Security Command Center and cannot be modified by the user.
    * 
* * @@ -105,7 +105,7 @@ public interface AssetOrBuilder * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -116,7 +116,7 @@ public interface AssetOrBuilder * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -130,7 +130,7 @@ public interface AssetOrBuilder * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -141,7 +141,7 @@ public interface AssetOrBuilder * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -153,7 +153,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * *
    * Resource managed properties. These properties are managed and defined by
-   * the GCP resource and cannot be modified by the user.
+   * the Google Cloud resource and cannot be modified by the user.
    * 
* * map<string, .google.protobuf.Value> resource_properties = 7; @@ -202,7 +202,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * The time at which the asset was created in Cloud SCC.
+   * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; @@ -214,7 +214,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * The time at which the asset was created in Cloud SCC.
+   * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; @@ -226,7 +226,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * The time at which the asset was created in Cloud SCC.
+   * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; @@ -275,9 +275,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; @@ -289,9 +290,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; @@ -303,9 +305,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( * * *
-   * IAM Policy information associated with the GCP resource described by the
-   * Cloud SCC asset. This information is managed and defined by the GCP
-   * resource and cannot be modified by the user.
+   * Cloud IAM Policy information associated with the Google Cloud resource
+   * described by the Security Command Center asset. This information is managed
+   * and defined by the Google Cloud resource and cannot be modified by the
+   * user.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java index 0955616ac..3e5a6c366 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java @@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -177,6 +178,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -204,6 +206,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * @return The findingId. */ + @java.lang.Override public java.lang.String getFindingId() { java.lang.Object ref = findingId_; if (ref instanceof java.lang.String) { @@ -228,6 +231,7 @@ public java.lang.String getFindingId() { * * @return The bytes for findingId. */ + @java.lang.Override public com.google.protobuf.ByteString getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof java.lang.String) { @@ -256,6 +260,7 @@ public com.google.protobuf.ByteString getFindingIdBytes() { * * @return Whether the finding field is set. */ + @java.lang.Override public boolean hasFinding() { return finding_ != null; } @@ -273,6 +278,7 @@ public boolean hasFinding() { * * @return The finding. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() @@ -290,6 +296,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; *
*/ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() { return getFinding(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java index b4a3382f0..296a664fb 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java @@ -155,6 +155,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -180,6 +181,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -208,6 +210,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * @return The configId. */ + @java.lang.Override public java.lang.String getConfigId() { java.lang.Object ref = configId_; if (ref instanceof java.lang.String) { @@ -233,6 +236,7 @@ public java.lang.String getConfigId() { * * @return The bytes for configId. */ + @java.lang.Override public com.google.protobuf.ByteString getConfigIdBytes() { java.lang.Object ref = configId_; if (ref instanceof java.lang.String) { @@ -262,6 +266,7 @@ public com.google.protobuf.ByteString getConfigIdBytes() { * * @return Whether the notificationConfig field is set. */ + @java.lang.Override public boolean hasNotificationConfig() { return notificationConfig_ != null; } @@ -280,6 +285,7 @@ public boolean hasNotificationConfig() { * * @return The notificationConfig. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig() { return notificationConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() @@ -298,6 +304,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificat * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; *
*/ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { return getNotificationConfig(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java index 918d4fc98..864ba0da2 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java @@ -143,6 +143,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -168,6 +169,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -196,6 +198,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * @return Whether the source field is set. */ + @java.lang.Override public boolean hasSource() { return source_ != null; } @@ -213,6 +216,7 @@ public boolean hasSource() { * * @return The source. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Source getSource() { return source_ == null ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() @@ -230,6 +234,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSource() { * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; *
*/ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder() { return getSource(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java index b89a76e34..2956b238e 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java @@ -129,6 +129,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -154,6 +155,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java index 88b4a29fb..436313065 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java @@ -22,11 +22,11 @@ * * *
- * Cloud Security Command Center (Cloud SCC) finding.
+ * Security Command Center finding.
  * A finding is a record of assessment data (security, risk, health or privacy)
- * ingested into Cloud SCC for presentation, notification, analysis,
- * policy testing, and enforcement. For example, an XSS vulnerability in an
- * App Engine application is a finding.
+ * ingested into Security Command Center for presentation, notification,
+ * analysis, policy testing, and enforcement. For example, an XSS vulnerability
+ * in an App Engine application is a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Finding} @@ -355,6 +355,10 @@ public State findValueByNumber(int number) { }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } return getDescriptor().getValues().get(ordinal()); } @@ -405,6 +409,7 @@ private State(int value) { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -430,6 +435,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -459,6 +465,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -485,6 +492,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -503,18 +511,19 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * For findings on Google Cloud Platform (GCP) resources, the full resource
-   * name of the GCP resource this finding is for. See:
+   * For findings on Google Cloud resources, the full resource
+   * name of the Google Cloud resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
-   * When the finding is for a non-GCP resource, the resourceName can be a
-   * customer or partner defined string.
-   * This field is immutable after creation time.
+   * When the finding is for a non-Google Cloud resource, the resourceName can
+   * be a customer or partner defined string. This field is immutable after
+   * creation time.
    * 
* * string resource_name = 3; * * @return The resourceName. */ + @java.lang.Override public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { @@ -530,18 +539,19 @@ public java.lang.String getResourceName() { * * *
-   * For findings on Google Cloud Platform (GCP) resources, the full resource
-   * name of the GCP resource this finding is for. See:
+   * For findings on Google Cloud resources, the full resource
+   * name of the Google Cloud resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
-   * When the finding is for a non-GCP resource, the resourceName can be a
-   * customer or partner defined string.
-   * This field is immutable after creation time.
+   * When the finding is for a non-Google Cloud resource, the resourceName can
+   * be a customer or partner defined string. This field is immutable after
+   * creation time.
    * 
* * string resource_name = 3; * * @return The bytes for resourceName. */ + @java.lang.Override public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { @@ -567,6 +577,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * @return The enum numeric value on the wire for state. */ + @java.lang.Override public int getStateValue() { return state_; } @@ -581,6 +592,7 @@ public int getStateValue() { * * @return The state. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1p1beta1.Finding.State result = @@ -605,6 +617,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { * * @return The category. */ + @java.lang.Override public java.lang.String getCategory() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { @@ -629,6 +642,7 @@ public java.lang.String getCategory() { * * @return The bytes for category. */ + @java.lang.Override public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { @@ -647,15 +661,16 @@ public com.google.protobuf.ByteString getCategoryBytes() { * * *
-   * The URI that, if available, points to a web page outside of Cloud SCC
-   * where additional information about the finding can be found. This field is
-   * guaranteed to be either empty or a well formed URL.
+   * The URI that, if available, points to a web page outside of Security
+   * Command Center where additional information about the finding can be found.
+   * This field is guaranteed to be either empty or a well formed URL.
    * 
* * string external_uri = 6; * * @return The externalUri. */ + @java.lang.Override public java.lang.String getExternalUri() { java.lang.Object ref = externalUri_; if (ref instanceof java.lang.String) { @@ -671,15 +686,16 @@ public java.lang.String getExternalUri() { * * *
-   * The URI that, if available, points to a web page outside of Cloud SCC
-   * where additional information about the finding can be found. This field is
-   * guaranteed to be either empty or a well formed URL.
+   * The URI that, if available, points to a web page outside of Security
+   * Command Center where additional information about the finding can be found.
+   * This field is guaranteed to be either empty or a well formed URL.
    * 
* * string external_uri = 6; * * @return The bytes for externalUri. */ + @java.lang.Override public com.google.protobuf.ByteString getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof java.lang.String) { @@ -734,6 +750,7 @@ public int getSourcePropertiesCount() { * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public boolean containsSourceProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -741,6 +758,7 @@ public boolean containsSourceProperties(java.lang.String key) { return internalGetSourceProperties().getMap().containsKey(key); } /** Use {@link #getSourcePropertiesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getSourceProperties() { return getSourcePropertiesMap(); @@ -757,6 +775,7 @@ public java.util.Map getSourcePrope * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public java.util.Map getSourcePropertiesMap() { return internalGetSourceProperties().getMap(); } @@ -772,6 +791,7 @@ public java.util.Map getSourcePrope * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getSourcePropertiesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { @@ -793,6 +813,7 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault( * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -822,6 +843,7 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key * * @return Whether the securityMarks field is set. */ + @java.lang.Override public boolean hasSecurityMarks() { return securityMarks_ != null; } @@ -840,6 +862,7 @@ public boolean hasSecurityMarks() { * * @return The securityMarks. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() @@ -858,6 +881,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks( * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { return getSecurityMarks(); @@ -878,6 +902,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks( * * @return Whether the eventTime field is set. */ + @java.lang.Override public boolean hasEventTime() { return eventTime_ != null; } @@ -894,6 +919,7 @@ public boolean hasEventTime() { * * @return The eventTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } @@ -908,6 +934,7 @@ public com.google.protobuf.Timestamp getEventTime() { * * .google.protobuf.Timestamp event_time = 9; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { return getEventTime(); } @@ -918,13 +945,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * * *
-   * The time at which the finding was created in Cloud SCC.
+   * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; * * @return Whether the createTime field is set. */ + @java.lang.Override public boolean hasCreateTime() { return createTime_ != null; } @@ -932,13 +960,14 @@ public boolean hasCreateTime() { * * *
-   * The time at which the finding was created in Cloud SCC.
+   * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; * * @return The createTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } @@ -946,11 +975,12 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * The time at which the finding was created in Cloud SCC.
+   * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); } @@ -1224,11 +1254,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Cloud Security Command Center (Cloud SCC) finding.
+   * Security Command Center finding.
    * A finding is a record of assessment data (security, risk, health or privacy)
-   * ingested into Cloud SCC for presentation, notification, analysis,
-   * policy testing, and enforcement. For example, an XSS vulnerability in an
-   * App Engine application is a finding.
+   * ingested into Security Command Center for presentation, notification,
+   * analysis, policy testing, and enforcement. For example, an XSS vulnerability
+   * in an App Engine application is a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Finding} @@ -1738,12 +1768,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * For findings on Google Cloud Platform (GCP) resources, the full resource
-     * name of the GCP resource this finding is for. See:
+     * For findings on Google Cloud resources, the full resource
+     * name of the Google Cloud resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
-     * When the finding is for a non-GCP resource, the resourceName can be a
-     * customer or partner defined string.
-     * This field is immutable after creation time.
+     * When the finding is for a non-Google Cloud resource, the resourceName can
+     * be a customer or partner defined string. This field is immutable after
+     * creation time.
      * 
* * string resource_name = 3; @@ -1765,12 +1795,12 @@ public java.lang.String getResourceName() { * * *
-     * For findings on Google Cloud Platform (GCP) resources, the full resource
-     * name of the GCP resource this finding is for. See:
+     * For findings on Google Cloud resources, the full resource
+     * name of the Google Cloud resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
-     * When the finding is for a non-GCP resource, the resourceName can be a
-     * customer or partner defined string.
-     * This field is immutable after creation time.
+     * When the finding is for a non-Google Cloud resource, the resourceName can
+     * be a customer or partner defined string. This field is immutable after
+     * creation time.
      * 
* * string resource_name = 3; @@ -1792,12 +1822,12 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * *
-     * For findings on Google Cloud Platform (GCP) resources, the full resource
-     * name of the GCP resource this finding is for. See:
+     * For findings on Google Cloud resources, the full resource
+     * name of the Google Cloud resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
-     * When the finding is for a non-GCP resource, the resourceName can be a
-     * customer or partner defined string.
-     * This field is immutable after creation time.
+     * When the finding is for a non-Google Cloud resource, the resourceName can
+     * be a customer or partner defined string. This field is immutable after
+     * creation time.
      * 
* * string resource_name = 3; @@ -1818,12 +1848,12 @@ public Builder setResourceName(java.lang.String value) { * * *
-     * For findings on Google Cloud Platform (GCP) resources, the full resource
-     * name of the GCP resource this finding is for. See:
+     * For findings on Google Cloud resources, the full resource
+     * name of the Google Cloud resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
-     * When the finding is for a non-GCP resource, the resourceName can be a
-     * customer or partner defined string.
-     * This field is immutable after creation time.
+     * When the finding is for a non-Google Cloud resource, the resourceName can
+     * be a customer or partner defined string. This field is immutable after
+     * creation time.
      * 
* * string resource_name = 3; @@ -1840,12 +1870,12 @@ public Builder clearResourceName() { * * *
-     * For findings on Google Cloud Platform (GCP) resources, the full resource
-     * name of the GCP resource this finding is for. See:
+     * For findings on Google Cloud resources, the full resource
+     * name of the Google Cloud resource this finding is for. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
-     * When the finding is for a non-GCP resource, the resourceName can be a
-     * customer or partner defined string.
-     * This field is immutable after creation time.
+     * When the finding is for a non-Google Cloud resource, the resourceName can
+     * be a customer or partner defined string. This field is immutable after
+     * creation time.
      * 
* * string resource_name = 3; @@ -1876,6 +1906,7 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { * * @return The enum numeric value on the wire for state. */ + @java.lang.Override public int getStateValue() { return state_; } @@ -1892,6 +1923,7 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { + state_ = value; onChanged(); return this; @@ -1907,6 +1939,7 @@ public Builder setStateValue(int value) { * * @return The state. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1p1beta1.Finding.State result = @@ -2075,9 +2108,9 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) { * * *
-     * The URI that, if available, points to a web page outside of Cloud SCC
-     * where additional information about the finding can be found. This field is
-     * guaranteed to be either empty or a well formed URL.
+     * The URI that, if available, points to a web page outside of Security
+     * Command Center where additional information about the finding can be found.
+     * This field is guaranteed to be either empty or a well formed URL.
      * 
* * string external_uri = 6; @@ -2099,9 +2132,9 @@ public java.lang.String getExternalUri() { * * *
-     * The URI that, if available, points to a web page outside of Cloud SCC
-     * where additional information about the finding can be found. This field is
-     * guaranteed to be either empty or a well formed URL.
+     * The URI that, if available, points to a web page outside of Security
+     * Command Center where additional information about the finding can be found.
+     * This field is guaranteed to be either empty or a well formed URL.
      * 
* * string external_uri = 6; @@ -2123,9 +2156,9 @@ public com.google.protobuf.ByteString getExternalUriBytes() { * * *
-     * The URI that, if available, points to a web page outside of Cloud SCC
-     * where additional information about the finding can be found. This field is
-     * guaranteed to be either empty or a well formed URL.
+     * The URI that, if available, points to a web page outside of Security
+     * Command Center where additional information about the finding can be found.
+     * This field is guaranteed to be either empty or a well formed URL.
      * 
* * string external_uri = 6; @@ -2146,9 +2179,9 @@ public Builder setExternalUri(java.lang.String value) { * * *
-     * The URI that, if available, points to a web page outside of Cloud SCC
-     * where additional information about the finding can be found. This field is
-     * guaranteed to be either empty or a well formed URL.
+     * The URI that, if available, points to a web page outside of Security
+     * Command Center where additional information about the finding can be found.
+     * This field is guaranteed to be either empty or a well formed URL.
      * 
* * string external_uri = 6; @@ -2165,9 +2198,9 @@ public Builder clearExternalUri() { * * *
-     * The URI that, if available, points to a web page outside of Cloud SCC
-     * where additional information about the finding can be found. This field is
-     * guaranteed to be either empty or a well formed URL.
+     * The URI that, if available, points to a web page outside of Security
+     * Command Center where additional information about the finding can be found.
+     * This field is guaranteed to be either empty or a well formed URL.
      * 
* * string external_uri = 6; @@ -2228,6 +2261,7 @@ public int getSourcePropertiesCount() { * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public boolean containsSourceProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -2235,6 +2269,7 @@ public boolean containsSourceProperties(java.lang.String key) { return internalGetSourceProperties().getMap().containsKey(key); } /** Use {@link #getSourcePropertiesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getSourceProperties() { return getSourcePropertiesMap(); @@ -2251,6 +2286,7 @@ public java.util.Map getSourcePrope * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public java.util.Map getSourcePropertiesMap() { return internalGetSourceProperties().getMap(); } @@ -2266,6 +2302,7 @@ public java.util.Map getSourcePrope * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getSourcePropertiesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { @@ -2287,6 +2324,7 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault( * * map<string, .google.protobuf.Value> source_properties = 7; */ + @java.lang.Override public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -2799,7 +2837,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2813,7 +2851,7 @@ public boolean hasCreateTime() { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2833,7 +2871,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2855,7 +2893,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2874,7 +2912,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2898,7 +2936,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2918,7 +2956,7 @@ public Builder clearCreateTime() { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2932,7 +2970,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2950,7 +2988,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * The time at which the finding was created in Cloud SCC.
+     * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java index 94e18affa..0d0c7f23a 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java @@ -91,12 +91,12 @@ public interface FindingOrBuilder * * *
-   * For findings on Google Cloud Platform (GCP) resources, the full resource
-   * name of the GCP resource this finding is for. See:
+   * For findings on Google Cloud resources, the full resource
+   * name of the Google Cloud resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
-   * When the finding is for a non-GCP resource, the resourceName can be a
-   * customer or partner defined string.
-   * This field is immutable after creation time.
+   * When the finding is for a non-Google Cloud resource, the resourceName can
+   * be a customer or partner defined string. This field is immutable after
+   * creation time.
    * 
* * string resource_name = 3; @@ -108,12 +108,12 @@ public interface FindingOrBuilder * * *
-   * For findings on Google Cloud Platform (GCP) resources, the full resource
-   * name of the GCP resource this finding is for. See:
+   * For findings on Google Cloud resources, the full resource
+   * name of the Google Cloud resource this finding is for. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
-   * When the finding is for a non-GCP resource, the resourceName can be a
-   * customer or partner defined string.
-   * This field is immutable after creation time.
+   * When the finding is for a non-Google Cloud resource, the resourceName can
+   * be a customer or partner defined string. This field is immutable after
+   * creation time.
    * 
* * string resource_name = 3; @@ -180,9 +180,9 @@ public interface FindingOrBuilder * * *
-   * The URI that, if available, points to a web page outside of Cloud SCC
-   * where additional information about the finding can be found. This field is
-   * guaranteed to be either empty or a well formed URL.
+   * The URI that, if available, points to a web page outside of Security
+   * Command Center where additional information about the finding can be found.
+   * This field is guaranteed to be either empty or a well formed URL.
    * 
* * string external_uri = 6; @@ -194,9 +194,9 @@ public interface FindingOrBuilder * * *
-   * The URI that, if available, points to a web page outside of Cloud SCC
-   * where additional information about the finding can be found. This field is
-   * guaranteed to be either empty or a well formed URL.
+   * The URI that, if available, points to a web page outside of Security
+   * Command Center where additional information about the finding can be found.
+   * This field is guaranteed to be either empty or a well formed URL.
    * 
* * string external_uri = 6; @@ -367,7 +367,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * The time at which the finding was created in Cloud SCC.
+   * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; @@ -379,7 +379,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * The time at which the finding was created in Cloud SCC.
+   * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; @@ -391,7 +391,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * The time at which the finding was created in Cloud SCC.
+   * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java index a6c6224d0..3d886cd5b 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -152,6 +153,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java index 448608c8e..7cca0b3d5 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java @@ -128,6 +128,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -153,6 +154,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java index b0dd1d59f..fdfbb4670 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -152,6 +153,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java index 8f2f1d9de..95971cbd2 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java @@ -41,7 +41,6 @@ private GroupAssetsRequest() { parent_ = ""; filter_ = ""; groupBy_ = ""; - having_ = ""; pageToken_ = ""; } @@ -123,13 +122,6 @@ private GroupAssetsRequest( readTime_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - having_ = s; break; } case 58: @@ -194,6 +186,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -219,6 +212,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -261,13 +255,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -280,12 +274,17 @@ public com.google.protobuf.ByteString getParentBytes() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` *
* * string filter = 2; * * @return The filter. */ + @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -325,13 +324,13 @@ public java.lang.String getFilter() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -344,12 +343,17 @@ public java.lang.String getFilter() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` *
* * string filter = 2; * * @return The bytes for filter. */ + @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -388,6 +392,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * @return The groupBy. */ + @java.lang.Override public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { @@ -423,6 +428,7 @@ public java.lang.String getGroupBy() { * * @return The bytes for groupBy. */ + @java.lang.Override public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { @@ -469,6 +475,7 @@ public com.google.protobuf.ByteString getGroupByBytes() { * * @return Whether the compareDuration field is set. */ + @java.lang.Override public boolean hasCompareDuration() { return compareDuration_ != null; } @@ -504,6 +511,7 @@ public boolean hasCompareDuration() { * * @return The compareDuration. */ + @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() @@ -539,6 +547,7 @@ public com.google.protobuf.Duration getCompareDuration() { * * .google.protobuf.Duration compare_duration = 4; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return getCompareDuration(); } @@ -559,6 +568,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -576,6 +586,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -591,61 +602,11 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 5; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } - public static final int HAVING_FIELD_NUMBER = 6; - private volatile java.lang.Object having_; - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `state_change` is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The having. - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } - } - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `state_change` is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The bytes for having. - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int PAGE_TOKEN_FIELD_NUMBER = 7; private volatile java.lang.Object pageToken_; /** @@ -661,6 +622,7 @@ public com.google.protobuf.ByteString getHavingBytes() { * * @return The pageToken. */ + @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -685,6 +647,7 @@ public java.lang.String getPageToken() { * * @return The bytes for pageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -711,6 +674,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } @@ -744,9 +708,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (readTime_ != null) { output.writeMessage(5, getReadTime()); } - if (!getHavingBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_); - } if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pageToken_); } @@ -777,9 +738,6 @@ public int getSerializedSize() { if (readTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadTime()); } - if (!getHavingBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_); - } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } @@ -813,7 +771,6 @@ public boolean equals(final java.lang.Object obj) { if (hasReadTime()) { if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getHaving().equals(other.getHaving())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -841,8 +798,6 @@ public int hashCode() { hash = (37 * hash) + READ_TIME_FIELD_NUMBER; hash = (53 * hash) + getReadTime().hashCode(); } - hash = (37 * hash) + HAVING_FIELD_NUMBER; - hash = (53 * hash) + getHaving().hashCode(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; @@ -1011,8 +966,6 @@ public Builder clear() { readTime_ = null; readTimeBuilder_ = null; } - having_ = ""; - pageToken_ = ""; pageSize_ = 0; @@ -1058,7 +1011,6 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest buildPartial } else { result.readTime_ = readTimeBuilder_.build(); } - result.having_ = having_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; onBuilt(); @@ -1130,10 +1082,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRe if (other.hasReadTime()) { mergeReadTime(other.getReadTime()); } - if (!other.getHaving().isEmpty()) { - having_ = other.having_; - onChanged(); - } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); @@ -1321,13 +1269,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1340,6 +1288,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1385,13 +1337,13 @@ public java.lang.String getFilter() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1404,6 +1356,10 @@ public java.lang.String getFilter() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1449,13 +1405,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1468,6 +1424,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1512,13 +1472,13 @@ public Builder setFilter(java.lang.String value) { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1531,6 +1491,10 @@ public Builder setFilter(java.lang.String value) { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1571,13 +1535,13 @@ public Builder clearFilter() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1590,6 +1554,10 @@ public Builder clearFilter() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -2359,122 +2327,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return readTimeBuilder_; } - private java.lang.Object having_ = ""; - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `state_change` is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @return The having. - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `state_change` is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @return The bytes for having. - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `state_change` is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @param value The having to set. - * @return This builder for chaining. - */ - public Builder setHaving(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - having_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `state_change` is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @return This builder for chaining. - */ - public Builder clearHaving() { - - having_ = getDefaultInstance().getHaving(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `state_change` is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @param value The bytes for having to set. - * @return This builder for chaining. - */ - public Builder setHavingBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - having_ = value; - onChanged(); - return this; - } - private java.lang.Object pageToken_ = ""; /** * @@ -2604,6 +2456,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java index 09e3c6b7a..93a5c1500 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java @@ -82,13 +82,13 @@ public interface GroupAssetsRequestOrBuilder * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -101,6 +101,10 @@ public interface GroupAssetsRequestOrBuilder * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -136,13 +140,13 @@ public interface GroupAssetsRequestOrBuilder * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -155,6 +159,10 @@ public interface GroupAssetsRequestOrBuilder * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -356,35 +364,6 @@ public interface GroupAssetsRequestOrBuilder */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `state_change` is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The having. - */ - java.lang.String getHaving(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `state_change` is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The bytes for having. - */ - com.google.protobuf.ByteString getHavingBytes(); - /** * * diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java index ffa6c636f..97f8d1608 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java @@ -163,6 +163,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ + @java.lang.Override public java.util.List getGroupByResultsList() { return groupByResults_; @@ -178,6 +179,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ + @java.lang.Override public java.util.List getGroupByResultsOrBuilderList() { return groupByResults_; @@ -193,6 +195,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ + @java.lang.Override public int getGroupByResultsCount() { return groupByResults_.size(); } @@ -207,6 +210,7 @@ public int getGroupByResultsCount() { * * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(int index) { return groupByResults_.get(index); } @@ -221,6 +225,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(i * * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder( int index) { return groupByResults_.get(index); @@ -239,6 +244,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupBy * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -253,6 +259,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -265,6 +272,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 2; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -283,6 +291,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return The nextPageToken. */ + @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -306,6 +315,7 @@ public java.lang.String getNextPageToken() { * * @return The bytes for nextPageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -331,6 +341,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } @@ -1478,6 +1489,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java index da7942025..3991e01fb 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java @@ -41,7 +41,6 @@ private GroupFindingsRequest() { parent_ = ""; filter_ = ""; groupBy_ = ""; - having_ = ""; pageToken_ = ""; } @@ -123,13 +122,6 @@ private GroupFindingsRequest( compareDuration_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - having_ = s; break; } case 58: @@ -196,6 +188,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -223,6 +216,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -268,17 +262,22 @@ public com.google.protobuf.ByteString getParentBytes() { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; * * @return The filter. */ + @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -321,17 +320,22 @@ public java.lang.String getFilter() { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; * * @return The bytes for filter. */ + @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -366,6 +370,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * @return The groupBy. */ + @java.lang.Override public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { @@ -397,6 +402,7 @@ public java.lang.String getGroupBy() { * * @return The bytes for groupBy. */ + @java.lang.Override public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { @@ -425,6 +431,7 @@ public com.google.protobuf.ByteString getGroupByBytes() { * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -442,6 +449,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -457,6 +465,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 4; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -477,12 +486,18 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -494,6 +509,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return Whether the compareDuration field is set. */ + @java.lang.Override public boolean hasCompareDuration() { return compareDuration_ != null; } @@ -511,12 +527,18 @@ public boolean hasCompareDuration() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -528,6 +550,7 @@ public boolean hasCompareDuration() { * * @return The compareDuration. */ + @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() @@ -547,12 +570,18 @@ public com.google.protobuf.Duration getCompareDuration() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -562,61 +591,11 @@ public com.google.protobuf.Duration getCompareDuration() { * * .google.protobuf.Duration compare_duration = 5; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return getCompareDuration(); } - public static final int HAVING_FIELD_NUMBER = 6; - private volatile java.lang.Object having_; - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `finding.state` and `state_change`
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The having. - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } - } - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `finding.state` and `state_change`
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The bytes for having. - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int PAGE_TOKEN_FIELD_NUMBER = 7; private volatile java.lang.Object pageToken_; /** @@ -632,6 +611,7 @@ public com.google.protobuf.ByteString getHavingBytes() { * * @return The pageToken. */ + @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -656,6 +636,7 @@ public java.lang.String getPageToken() { * * @return The bytes for pageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -682,6 +663,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } @@ -715,9 +697,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (compareDuration_ != null) { output.writeMessage(5, getCompareDuration()); } - if (!getHavingBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_); - } if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pageToken_); } @@ -748,9 +727,6 @@ public int getSerializedSize() { if (compareDuration_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } - if (!getHavingBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_); - } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } @@ -784,7 +760,6 @@ public boolean equals(final java.lang.Object obj) { if (hasCompareDuration()) { if (!getCompareDuration().equals(other.getCompareDuration())) return false; } - if (!getHaving().equals(other.getHaving())) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -812,8 +787,6 @@ public int hashCode() { hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER; hash = (53 * hash) + getCompareDuration().hashCode(); } - hash = (37 * hash) + HAVING_FIELD_NUMBER; - hash = (53 * hash) + getHaving().hashCode(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; @@ -982,8 +955,6 @@ public Builder clear() { compareDuration_ = null; compareDurationBuilder_ = null; } - having_ = ""; - pageToken_ = ""; pageSize_ = 0; @@ -1029,7 +1000,6 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest buildParti } else { result.compareDuration_ = compareDurationBuilder_.build(); } - result.having_ = having_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; onBuilt(); @@ -1101,10 +1071,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupFindings if (other.hasCompareDuration()) { mergeCompareDuration(other.getCompareDuration()); } - if (!other.getHaving().isEmpty()) { - having_ = other.having_; - onChanged(); - } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); @@ -1306,11 +1272,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1359,11 +1329,15 @@ public java.lang.String getFilter() { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1412,11 +1386,15 @@ public com.google.protobuf.ByteString getFilterBytes() { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1464,11 +1442,15 @@ public Builder setFilter(java.lang.String value) { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1512,11 +1494,15 @@ public Builder clearFilter() { * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1912,12 +1898,18 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -1946,12 +1938,18 @@ public boolean hasCompareDuration() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -1986,12 +1984,18 @@ public com.google.protobuf.Duration getCompareDuration() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -2028,12 +2032,18 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -2067,12 +2077,18 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -2113,12 +2129,18 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -2153,12 +2175,18 @@ public Builder clearCompareDuration() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -2187,12 +2215,18 @@ public com.google.protobuf.Duration.Builder getCompareDurationBuilder() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -2225,12 +2259,18 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -2257,122 +2297,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return compareDurationBuilder_; } - private java.lang.Object having_ = ""; - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `finding.state` and `state_change`
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @return The having. - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `finding.state` and `state_change`
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @return The bytes for having. - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `finding.state` and `state_change`
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @param value The having to set. - * @return This builder for chaining. - */ - public Builder setHaving(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - having_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `finding.state` and `state_change`
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @return This builder for chaining. - */ - public Builder clearHaving() { - - having_ = getDefaultInstance().getHaving(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `finding.state` and `state_change`
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @param value The bytes for having to set. - * @return This builder for chaining. - */ - public Builder setHavingBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - having_ = value; - onChanged(); - return this; - } - private java.lang.Object pageToken_ = ""; /** * @@ -2502,6 +2426,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java index 7c2332ee8..528e8d05a 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java @@ -89,11 +89,15 @@ public interface GroupFindingsRequestOrBuilder * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -132,11 +136,15 @@ public interface GroupFindingsRequestOrBuilder * * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * * security_marks.marks: `=`, `:` * * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -246,12 +254,18 @@ public interface GroupFindingsRequestOrBuilder * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -278,12 +292,18 @@ public interface GroupFindingsRequestOrBuilder * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -310,12 +330,18 @@ public interface GroupFindingsRequestOrBuilder * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present * at read_time. @@ -327,35 +353,6 @@ public interface GroupFindingsRequestOrBuilder */ com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `finding.state` and `state_change`
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The having. - */ - java.lang.String getHaving(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `finding.state` and `state_change`
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The bytes for having. - */ - com.google.protobuf.ByteString getHavingBytes(); - /** * * diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java index 6bd357a63..7bc625e65 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java @@ -163,6 +163,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ + @java.lang.Override public java.util.List getGroupByResultsList() { return groupByResults_; @@ -178,6 +179,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ + @java.lang.Override public java.util.List getGroupByResultsOrBuilderList() { return groupByResults_; @@ -193,6 +195,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ + @java.lang.Override public int getGroupByResultsCount() { return groupByResults_.size(); } @@ -207,6 +210,7 @@ public int getGroupByResultsCount() { * * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(int index) { return groupByResults_.get(index); } @@ -221,6 +225,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(i * * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder( int index) { return groupByResults_.get(index); @@ -239,6 +244,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupBy * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -253,6 +259,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -265,6 +272,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 2; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -283,6 +291,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return The nextPageToken. */ + @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -306,6 +315,7 @@ public java.lang.String getNextPageToken() { * * @return The bytes for nextPageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -331,6 +341,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } @@ -1479,6 +1490,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java index 5777c2bb4..1dc6f5709 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java @@ -172,6 +172,7 @@ public int getPropertiesCount() { * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public boolean containsProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -179,6 +180,7 @@ public boolean containsProperties(java.lang.String key) { return internalGetProperties().getMap().containsKey(key); } /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); @@ -192,6 +194,7 @@ public java.util.Map getProperties( * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } @@ -204,6 +207,7 @@ public java.util.Map getPropertiesM * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public com.google.protobuf.Value getPropertiesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { @@ -222,6 +226,7 @@ public com.google.protobuf.Value getPropertiesOrDefault( * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -247,6 +252,7 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { * * @return The count. */ + @java.lang.Override public long getCount() { return count_; } @@ -650,6 +656,7 @@ public int getPropertiesCount() { * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public boolean containsProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -657,6 +664,7 @@ public boolean containsProperties(java.lang.String key) { return internalGetProperties().getMap().containsKey(key); } /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); @@ -670,6 +678,7 @@ public java.util.Map getProperties( * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } @@ -682,6 +691,7 @@ public java.util.Map getPropertiesM * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public com.google.protobuf.Value getPropertiesOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { @@ -700,6 +710,7 @@ public com.google.protobuf.Value getPropertiesOrDefault( * * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -783,6 +794,7 @@ public Builder putAllProperties( * * @return The count. */ + @java.lang.Override public long getCount() { return count_; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java index 95a8e33e1..67312d158 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java @@ -41,7 +41,6 @@ private ListAssetsRequest() { parent_ = ""; filter_ = ""; orderBy_ = ""; - having_ = ""; pageToken_ = ""; } @@ -123,13 +122,6 @@ private ListAssetsRequest( compareDuration_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - having_ = s; break; } case 58: @@ -209,6 +201,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -234,6 +227,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -276,13 +270,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -295,12 +289,17 @@ public com.google.protobuf.ByteString getParentBytes() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; * * @return The filter. */ + @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -340,13 +339,13 @@ public java.lang.String getFilter() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -359,12 +358,17 @@ public java.lang.String getFilter() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; * * @return The bytes for filter. */ + @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -409,6 +413,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * @return The orderBy. */ + @java.lang.Override public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { @@ -450,6 +455,7 @@ public java.lang.String getOrderBy() { * * @return The bytes for orderBy. */ + @java.lang.Override public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { @@ -478,6 +484,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -495,6 +502,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -510,6 +518,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 4; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -546,6 +555,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return Whether the compareDuration field is set. */ + @java.lang.Override public boolean hasCompareDuration() { return compareDuration_ != null; } @@ -579,6 +589,7 @@ public boolean hasCompareDuration() { * * @return The compareDuration. */ + @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() @@ -612,61 +623,11 @@ public com.google.protobuf.Duration getCompareDuration() { * * .google.protobuf.Duration compare_duration = 5; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return getCompareDuration(); } - public static final int HAVING_FIELD_NUMBER = 6; - private volatile java.lang.Object having_; - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `state_change` is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The having. - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } - } - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `state_change` is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The bytes for having. - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int FIELD_MASK_FIELD_NUMBER = 7; private com.google.protobuf.FieldMask fieldMask_; /** @@ -684,6 +645,7 @@ public com.google.protobuf.ByteString getHavingBytes() { * * @return Whether the fieldMask field is set. */ + @java.lang.Override public boolean hasFieldMask() { return fieldMask_ != null; } @@ -702,6 +664,7 @@ public boolean hasFieldMask() { * * @return The fieldMask. */ + @java.lang.Override public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } @@ -718,6 +681,7 @@ public com.google.protobuf.FieldMask getFieldMask() { * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { return getFieldMask(); } @@ -737,6 +701,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * @return The pageToken. */ + @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -761,6 +726,7 @@ public java.lang.String getPageToken() { * * @return The bytes for pageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -787,6 +753,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } @@ -820,9 +787,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (compareDuration_ != null) { output.writeMessage(5, getCompareDuration()); } - if (!getHavingBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_); - } if (fieldMask_ != null) { output.writeMessage(7, getFieldMask()); } @@ -856,9 +820,6 @@ public int getSerializedSize() { if (compareDuration_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } - if (!getHavingBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_); - } if (fieldMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); } @@ -895,7 +856,6 @@ public boolean equals(final java.lang.Object obj) { if (hasCompareDuration()) { if (!getCompareDuration().equals(other.getCompareDuration())) return false; } - if (!getHaving().equals(other.getHaving())) return false; if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { if (!getFieldMask().equals(other.getFieldMask())) return false; @@ -927,8 +887,6 @@ public int hashCode() { hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER; hash = (53 * hash) + getCompareDuration().hashCode(); } - hash = (37 * hash) + HAVING_FIELD_NUMBER; - hash = (53 * hash) + getHaving().hashCode(); if (hasFieldMask()) { hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; hash = (53 * hash) + getFieldMask().hashCode(); @@ -1101,8 +1059,6 @@ public Builder clear() { compareDuration_ = null; compareDurationBuilder_ = null; } - having_ = ""; - if (fieldMaskBuilder_ == null) { fieldMask_ = null; } else { @@ -1153,7 +1109,6 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest buildPartial( } else { result.compareDuration_ = compareDurationBuilder_.build(); } - result.having_ = having_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; } else { @@ -1229,10 +1184,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListAssetsReq if (other.hasCompareDuration()) { mergeCompareDuration(other.getCompareDuration()); } - if (!other.getHaving().isEmpty()) { - having_ = other.having_; - onChanged(); - } if (other.hasFieldMask()) { mergeFieldMask(other.getFieldMask()); } @@ -1423,13 +1374,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1442,6 +1393,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1487,13 +1442,13 @@ public java.lang.String getFilter() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1506,6 +1461,10 @@ public java.lang.String getFilter() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1551,13 +1510,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1570,6 +1529,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1614,13 +1577,13 @@ public Builder setFilter(java.lang.String value) { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1633,6 +1596,10 @@ public Builder setFilter(java.lang.String value) { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -1673,13 +1640,13 @@ public Builder clearFilter() { * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -1692,6 +1659,10 @@ public Builder clearFilter() { * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -2473,122 +2444,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return compareDurationBuilder_; } - private java.lang.Object having_ = ""; - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `state_change` is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @return The having. - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `state_change` is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @return The bytes for having. - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `state_change` is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @param value The having to set. - * @return This builder for chaining. - */ - public Builder setHaving(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - having_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `state_change` is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @return This builder for chaining. - */ - public Builder clearHaving() { - - having_ = getDefaultInstance().getHaving(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `state_change` is supported and
-     * requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @param value The bytes for having to set. - * @return This builder for chaining. - */ - public Builder setHavingBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - having_ = value; - onChanged(); - return this; - } - private com.google.protobuf.FieldMask fieldMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -2933,6 +2788,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java index a18896dc4..7ac98113a 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java @@ -82,13 +82,13 @@ public interface ListAssetsRequestOrBuilder * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -101,6 +101,10 @@ public interface ListAssetsRequestOrBuilder * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -136,13 +140,13 @@ public interface ListAssetsRequestOrBuilder * * update_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "update_time = \"2019-06-10T16:07:18-07:00\"" - * "update_time = 1560208038000" + * `update_time = "2019-06-10T16:07:18-07:00"` + * `update_time = 1560208038000` * * create_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "create_time = \"2019-06-10T16:07:18-07:00\"" - * "create_time = 1560208038000" + * `create_time = "2019-06-10T16:07:18-07:00"` + * `create_time = 1560208038000` * * iam_policy.policy_blob: `=`, `:` * * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * * security_marks.marks: `=`, `:` @@ -155,6 +159,10 @@ public interface ListAssetsRequestOrBuilder * * security_center_properties.resource_project_display_name: `=`, `:` * * security_center_properties.resource_owners: `=`, `:` * For example, `resource_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `resource_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-resource_properties.my_property : ""` * * * string filter = 2; @@ -362,35 +370,6 @@ public interface ListAssetsRequestOrBuilder */ com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `state_change` is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The having. - */ - java.lang.String getHaving(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `state_change` is supported and
-   * requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The bytes for having. - */ - com.google.protobuf.ByteString getHavingBytes(); - /** * * diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java index 671f11a4f..e0d9287d0 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java @@ -481,6 +481,10 @@ public StateChange findValueByNumber(int number) { }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } return getDescriptor().getValues().get(ordinal()); } @@ -529,6 +533,7 @@ private StateChange(int value) { * * @return Whether the asset field is set. */ + @java.lang.Override public boolean hasAsset() { return asset_ != null; } @@ -543,6 +548,7 @@ public boolean hasAsset() { * * @return The asset. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset getAsset() { return asset_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() @@ -557,6 +563,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset getAsset() { * * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilder() { return getAsset(); } @@ -576,6 +583,7 @@ public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilde * * @return The enum numeric value on the wire for stateChange. */ + @java.lang.Override public int getStateChangeValue() { return stateChange_; } @@ -592,6 +600,7 @@ public int getStateChangeValue() { * * @return The stateChange. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") @@ -1184,6 +1193,7 @@ public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilde * * @return The enum numeric value on the wire for stateChange. */ + @java.lang.Override public int getStateChangeValue() { return stateChange_; } @@ -1202,6 +1212,7 @@ public int getStateChangeValue() { * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { + stateChange_ = value; onChanged(); return this; @@ -1219,6 +1230,7 @@ public Builder setStateChangeValue(int value) { * * @return The stateChange. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult .StateChange getStateChange() { @@ -1349,6 +1361,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; * */ + @java.lang.Override public java.util.List< com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult> getListAssetsResultsList() { @@ -1365,6 +1378,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; * */ + @java.lang.Override public java.util.List< ? extends com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse @@ -1383,6 +1397,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; * */ + @java.lang.Override public int getListAssetsResultsCount() { return listAssetsResults_.size(); } @@ -1397,6 +1412,7 @@ public int getListAssetsResultsCount() { * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { return listAssetsResults_.get(index); @@ -1412,6 +1428,7 @@ public int getListAssetsResultsCount() { * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder(int index) { return listAssetsResults_.get(index); @@ -1430,6 +1447,7 @@ public int getListAssetsResultsCount() { * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -1444,6 +1462,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -1456,6 +1475,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 2; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -1474,6 +1494,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return The nextPageToken. */ + @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -1497,6 +1518,7 @@ public java.lang.String getNextPageToken() { * * @return The bytes for nextPageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -1522,6 +1544,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } @@ -2675,6 +2698,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java index e7492bd8f..8996a4596 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java @@ -41,7 +41,6 @@ private ListFindingsRequest() { parent_ = ""; filter_ = ""; orderBy_ = ""; - having_ = ""; pageToken_ = ""; } @@ -123,13 +122,6 @@ private ListFindingsRequest( compareDuration_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - having_ = s; break; } case 58: @@ -211,6 +203,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -238,6 +231,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -283,17 +277,22 @@ public com.google.protobuf.ByteString getParentBytes() { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; * * @return The filter. */ + @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -336,17 +335,22 @@ public java.lang.String getFilter() { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; * * @return The bytes for filter. */ + @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -388,6 +392,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * @return The orderBy. */ + @java.lang.Override public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { @@ -426,6 +431,7 @@ public java.lang.String getOrderBy() { * * @return The bytes for orderBy. */ + @java.lang.Override public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { @@ -454,6 +460,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -471,6 +478,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -486,6 +494,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 4; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -507,12 +516,18 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -522,6 +537,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return Whether the compareDuration field is set. */ + @java.lang.Override public boolean hasCompareDuration() { return compareDuration_ != null; } @@ -540,12 +556,18 @@ public boolean hasCompareDuration() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -555,6 +577,7 @@ public boolean hasCompareDuration() { * * @return The compareDuration. */ + @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() @@ -575,12 +598,18 @@ public com.google.protobuf.Duration getCompareDuration() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -588,61 +617,11 @@ public com.google.protobuf.Duration getCompareDuration() { * * .google.protobuf.Duration compare_duration = 5; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return getCompareDuration(); } - public static final int HAVING_FIELD_NUMBER = 6; - private volatile java.lang.Object having_; - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `finding.state` and `state_change`
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The having. - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } - } - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `finding.state` and `state_change`
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The bytes for having. - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int FIELD_MASK_FIELD_NUMBER = 7; private com.google.protobuf.FieldMask fieldMask_; /** @@ -659,6 +638,7 @@ public com.google.protobuf.ByteString getHavingBytes() { * * @return Whether the fieldMask field is set. */ + @java.lang.Override public boolean hasFieldMask() { return fieldMask_ != null; } @@ -676,6 +656,7 @@ public boolean hasFieldMask() { * * @return The fieldMask. */ + @java.lang.Override public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } @@ -691,6 +672,7 @@ public com.google.protobuf.FieldMask getFieldMask() { * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { return getFieldMask(); } @@ -710,6 +692,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * @return The pageToken. */ + @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -734,6 +717,7 @@ public java.lang.String getPageToken() { * * @return The bytes for pageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -760,6 +744,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } @@ -793,9 +778,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (compareDuration_ != null) { output.writeMessage(5, getCompareDuration()); } - if (!getHavingBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_); - } if (fieldMask_ != null) { output.writeMessage(7, getFieldMask()); } @@ -829,9 +811,6 @@ public int getSerializedSize() { if (compareDuration_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } - if (!getHavingBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_); - } if (fieldMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); } @@ -868,7 +847,6 @@ public boolean equals(final java.lang.Object obj) { if (hasCompareDuration()) { if (!getCompareDuration().equals(other.getCompareDuration())) return false; } - if (!getHaving().equals(other.getHaving())) return false; if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { if (!getFieldMask().equals(other.getFieldMask())) return false; @@ -900,8 +878,6 @@ public int hashCode() { hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER; hash = (53 * hash) + getCompareDuration().hashCode(); } - hash = (37 * hash) + HAVING_FIELD_NUMBER; - hash = (53 * hash) + getHaving().hashCode(); if (hasFieldMask()) { hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; hash = (53 * hash) + getFieldMask().hashCode(); @@ -1074,8 +1050,6 @@ public Builder clear() { compareDuration_ = null; compareDurationBuilder_ = null; } - having_ = ""; - if (fieldMaskBuilder_ == null) { fieldMask_ = null; } else { @@ -1127,7 +1101,6 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest buildPartia } else { result.compareDuration_ = compareDurationBuilder_.build(); } - result.having_ = having_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; } else { @@ -1204,10 +1177,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsR if (other.hasCompareDuration()) { mergeCompareDuration(other.getCompareDuration()); } - if (!other.getHaving().isEmpty()) { - having_ = other.having_; - onChanged(); - } if (other.hasFieldMask()) { mergeFieldMask(other.getFieldMask()); } @@ -1412,11 +1381,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1465,11 +1438,15 @@ public java.lang.String getFilter() { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1518,11 +1495,15 @@ public com.google.protobuf.ByteString getFilterBytes() { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1570,11 +1551,15 @@ public Builder setFilter(java.lang.String value) { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -1618,11 +1603,15 @@ public Builder clearFilter() { * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -2054,12 +2043,18 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -2087,12 +2082,18 @@ public boolean hasCompareDuration() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -2126,12 +2127,18 @@ public com.google.protobuf.Duration getCompareDuration() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -2167,12 +2174,18 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -2205,12 +2218,18 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -2250,12 +2269,18 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -2289,12 +2314,18 @@ public Builder clearCompareDuration() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -2322,12 +2353,18 @@ public com.google.protobuf.Duration.Builder getCompareDurationBuilder() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -2359,12 +2396,18 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -2389,122 +2432,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return compareDurationBuilder_; } - private java.lang.Object having_ = ""; - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `finding.state` and `state_change`
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @return The having. - */ - public java.lang.String getHaving() { - java.lang.Object ref = having_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - having_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `finding.state` and `state_change`
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @return The bytes for having. - */ - public com.google.protobuf.ByteString getHavingBytes() { - java.lang.Object ref = having_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - having_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `finding.state` and `state_change`
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @param value The having to set. - * @return This builder for chaining. - */ - public Builder setHaving(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - having_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `finding.state` and `state_change`
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @return This builder for chaining. - */ - public Builder clearHaving() { - - having_ = getDefaultInstance().getHaving(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filter that specifies what fields to further filter on *after* the query
-     * filter has been executed. Currently only `finding.state` and `state_change`
-     * are supported and requires compare_duration to be specified.
-     * 
- * - * string having = 6; - * - * @param value The bytes for having to set. - * @return This builder for chaining. - */ - public Builder setHavingBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - having_ = value; - onChanged(); - return this; - } - private com.google.protobuf.FieldMask fieldMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -2840,6 +2767,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java index df4de4ce8..a6b19b43a 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java @@ -89,11 +89,15 @@ public interface ListFindingsRequestOrBuilder * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -132,11 +136,15 @@ public interface ListFindingsRequestOrBuilder * event_time: `=`, `>`, `<`, `>=`, `<=` * Usage: This should be milliseconds since epoch or an RFC3339 string. * Examples: - * "event_time = \"2019-06-10T16:07:18-07:00\"" - * "event_time = 1560208038000" + * `event_time = "2019-06-10T16:07:18-07:00"` + * `event_time = 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * For example, `source_properties.size = 100` is a valid filter string. + * Use a partial match on the empty string to filter based on a property + * existing: `source_properties.my_property : ""` + * Use a negated partial match on the empty string to filter based on a + * property not existing: `-source_properties.my_property : ""` * * * string filter = 2; @@ -261,12 +269,18 @@ public interface ListFindingsRequestOrBuilder * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -292,12 +306,18 @@ public interface ListFindingsRequestOrBuilder * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -323,12 +343,18 @@ public interface ListFindingsRequestOrBuilder * two times don't affect the result. For example, the results aren't affected * if the finding is made inactive and then active again. * Possible "state_change" values when compare_duration is specified: - * * "CHANGED": indicates that the finding was present at the start of - * compare_duration, but changed its state at read_time. - * * "UNCHANGED": indicates that the finding was present at the start of - * compare_duration and did not change state at read_time. - * * "ADDED": indicates that the finding was not present at the start - * of compare_duration, but was present at read_time. + * * "CHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration, but changed its + * state at read_time. + * * "UNCHANGED": indicates that the finding was present and matched the given + * filter at the start of compare_duration and did not change + * state at read_time. + * * "ADDED": indicates that the finding did not match the given filter or + * was not present at the start of compare_duration, but was + * present at read_time. + * * "REMOVED": indicates that the finding was present and matched the + * filter at the start of compare_duration, but did not match + * the filter at read_time. * If compare_duration is not specified, then the only possible state_change * is "UNUSED", which will be the state_change set for all findings present at * read_time. @@ -338,35 +364,6 @@ public interface ListFindingsRequestOrBuilder */ com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `finding.state` and `state_change`
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The having. - */ - java.lang.String getHaving(); - /** - * - * - *
-   * Filter that specifies what fields to further filter on *after* the query
-   * filter has been executed. Currently only `finding.state` and `state_change`
-   * are supported and requires compare_duration to be specified.
-   * 
- * - * string having = 6; - * - * @return The bytes for having. - */ - com.google.protobuf.ByteString getHavingBytes(); - /** * * diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java index 60c72183f..c432cc776 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java @@ -577,6 +577,10 @@ public StateChange findValueByNumber(int number) { }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } return getDescriptor().getValues().get(ordinal()); } @@ -748,7 +752,7 @@ public interface ResourceOrBuilder * * *
-     * Information related to the Google Cloud Platform (GCP) resource that is
+     * Information related to the Google Cloud resource that is
      * associated with this finding.
      * 
* @@ -888,6 +892,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -911,6 +916,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -936,6 +942,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The projectName. */ + @java.lang.Override public java.lang.String getProjectName() { java.lang.Object ref = projectName_; if (ref instanceof java.lang.String) { @@ -958,6 +965,7 @@ public java.lang.String getProjectName() { * * @return The bytes for projectName. */ + @java.lang.Override public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof java.lang.String) { @@ -983,6 +991,7 @@ public com.google.protobuf.ByteString getProjectNameBytes() { * * @return The projectDisplayName. */ + @java.lang.Override public java.lang.String getProjectDisplayName() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { @@ -1005,6 +1014,7 @@ public java.lang.String getProjectDisplayName() { * * @return The bytes for projectDisplayName. */ + @java.lang.Override public com.google.protobuf.ByteString getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { @@ -1030,6 +1040,7 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { * * @return The parentName. */ + @java.lang.Override public java.lang.String getParentName() { java.lang.Object ref = parentName_; if (ref instanceof java.lang.String) { @@ -1052,6 +1063,7 @@ public java.lang.String getParentName() { * * @return The bytes for parentName. */ + @java.lang.Override public com.google.protobuf.ByteString getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof java.lang.String) { @@ -1077,6 +1089,7 @@ public com.google.protobuf.ByteString getParentNameBytes() { * * @return The parentDisplayName. */ + @java.lang.Override public java.lang.String getParentDisplayName() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { @@ -1099,6 +1112,7 @@ public java.lang.String getParentDisplayName() { * * @return The bytes for parentDisplayName. */ + @java.lang.Override public com.google.protobuf.ByteString getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { @@ -1339,7 +1353,7 @@ protected Builder newBuilderForType( * * *
-       * Information related to the Google Cloud Platform (GCP) resource that is
+       * Information related to the Google Cloud resource that is
        * associated with this finding.
        * 
* @@ -2162,6 +2176,7 @@ public com.google.protobuf.Parser getParserForType() { * * @return Whether the finding field is set. */ + @java.lang.Override public boolean hasFinding() { return finding_ != null; } @@ -2176,6 +2191,7 @@ public boolean hasFinding() { * * @return The finding. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() @@ -2190,6 +2206,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { * * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() { return getFinding(); } @@ -2209,6 +2226,7 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu * * @return The enum numeric value on the wire for stateChange. */ + @java.lang.Override public int getStateChangeValue() { return stateChange_; } @@ -2225,6 +2243,7 @@ public int getStateChangeValue() { * * @return The stateChange. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult .StateChange getStateChange() { @@ -2256,6 +2275,7 @@ public int getStateChangeValue() { * * @return Whether the resource field is set. */ + @java.lang.Override public boolean hasResource() { return resource_ != null; } @@ -2272,6 +2292,7 @@ public boolean hasResource() { * * @return The resource. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult .Resource getResource() { @@ -2291,6 +2312,7 @@ public boolean hasResource() { * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult .ResourceOrBuilder getResourceOrBuilder() { @@ -2908,6 +2930,7 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu * * @return The enum numeric value on the wire for stateChange. */ + @java.lang.Override public int getStateChangeValue() { return stateChange_; } @@ -2926,6 +2949,7 @@ public int getStateChangeValue() { * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { + stateChange_ = value; onChanged(); return this; @@ -2943,6 +2967,7 @@ public Builder setStateChangeValue(int value) { * * @return The stateChange. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult .StateChange getStateChange() { @@ -3304,6 +3329,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ + @java.lang.Override public java.util.List< com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult> getListFindingsResultsList() { @@ -3320,6 +3346,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ + @java.lang.Override public java.util.List< ? extends com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse @@ -3338,6 +3365,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ + @java.lang.Override public int getListFindingsResultsCount() { return listFindingsResults_.size(); } @@ -3352,6 +3380,7 @@ public int getListFindingsResultsCount() { * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index) { return listFindingsResults_.get(index); @@ -3367,6 +3396,7 @@ public int getListFindingsResultsCount() { * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder(int index) { return listFindingsResults_.get(index); @@ -3385,6 +3415,7 @@ public int getListFindingsResultsCount() { * * @return Whether the readTime field is set. */ + @java.lang.Override public boolean hasReadTime() { return readTime_ != null; } @@ -3399,6 +3430,7 @@ public boolean hasReadTime() { * * @return The readTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } @@ -3411,6 +3443,7 @@ public com.google.protobuf.Timestamp getReadTime() { * * .google.protobuf.Timestamp read_time = 2; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return getReadTime(); } @@ -3429,6 +3462,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * * @return The nextPageToken. */ + @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -3452,6 +3486,7 @@ public java.lang.String getNextPageToken() { * * @return The bytes for nextPageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -3477,6 +3512,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } @@ -4638,6 +4674,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The totalSize. */ + @java.lang.Override public int getTotalSize() { return totalSize_; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java index a34adaa88..acbb80644 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java @@ -141,6 +141,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -166,6 +167,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -193,6 +195,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * @return The pageToken. */ + @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -217,6 +220,7 @@ public java.lang.String getPageToken() { * * @return The bytes for pageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -243,6 +247,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } @@ -859,6 +864,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java index 62ec19636..417036bc7 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java @@ -146,6 +146,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; * */ + @java.lang.Override public java.util.List getNotificationConfigsList() { return notificationConfigs_; @@ -161,6 +162,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; * */ + @java.lang.Override public java.util.List< ? extends com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> getNotificationConfigsOrBuilderList() { @@ -177,6 +179,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; * */ + @java.lang.Override public int getNotificationConfigsCount() { return notificationConfigs_.size(); } @@ -191,6 +194,7 @@ public int getNotificationConfigsCount() { * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfigs( int index) { return notificationConfigs_.get(index); @@ -206,6 +210,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificat * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder(int index) { return notificationConfigs_.get(index); @@ -225,6 +230,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificat * * @return The nextPageToken. */ + @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -248,6 +254,7 @@ public java.lang.String getNextPageToken() { * * @return The bytes for nextPageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java index e02572803..e171f6656 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java @@ -140,6 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -165,6 +166,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -192,6 +194,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * @return The pageToken. */ + @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -216,6 +219,7 @@ public java.lang.String getPageToken() { * * @return The bytes for pageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { @@ -242,6 +246,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } @@ -848,6 +853,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * @return The pageSize. */ + @java.lang.Override public int getPageSize() { return pageSize_; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java index e816b801e..364f2a882 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java @@ -140,6 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ + @java.lang.Override public java.util.List getSourcesList() { return sources_; } @@ -152,6 +153,7 @@ public java.util.List getSourc * * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ + @java.lang.Override public java.util.List getSourcesOrBuilderList() { return sources_; @@ -165,6 +167,7 @@ public java.util.List getSourc * * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ + @java.lang.Override public int getSourcesCount() { return sources_.size(); } @@ -177,6 +180,7 @@ public int getSourcesCount() { * * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Source getSources(int index) { return sources_.get(index); } @@ -189,6 +193,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSources(int index) { * * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBuilder(int index) { return sources_.get(index); } @@ -207,6 +212,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBui * * @return The nextPageToken. */ + @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { @@ -230,6 +236,7 @@ public java.lang.String getNextPageToken() { * * @return The bytes for nextPageToken. */ + @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java index 0f12ffce9..8ea158618 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java @@ -22,9 +22,10 @@ * * *
- * Cloud Security Command Center (Cloud SCC) notification configs.
- * A notification config is a Cloud SCC resource that contains the configuration
- * to send notifications for create/update events of findings, assets and etc.
+ * Security Command Center notification configs.
+ * A notification config is a Security Command Center resource that contains the
+ * configuration to send notifications for create/update events of findings,
+ * assets and etc.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig} @@ -268,6 +269,10 @@ public EventType findValueByNumber(int number) { }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } return getDescriptor().getValues().get(ordinal()); } @@ -485,6 +490,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The filter. */ + @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -522,6 +528,7 @@ public java.lang.String getFilter() { * * @return The bytes for filter. */ + @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -1178,6 +1185,7 @@ public NotifyConfigCase getNotifyConfigCase() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -1203,6 +1211,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -1228,6 +1237,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The description. */ + @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { @@ -1250,6 +1260,7 @@ public java.lang.String getDescription() { * * @return The bytes for description. */ + @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { @@ -1276,6 +1287,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * @return The enum numeric value on the wire for eventType. */ + @java.lang.Override public int getEventTypeValue() { return eventType_; } @@ -1291,6 +1303,7 @@ public int getEventTypeValue() { * * @return The eventType. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType getEventType() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType result = @@ -1306,7 +1319,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType ge * * *
-   * The PubSub topic to send notifications to. Its format is
+   * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* @@ -1314,6 +1327,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType ge * * @return The pubsubTopic. */ + @java.lang.Override public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { @@ -1329,7 +1343,7 @@ public java.lang.String getPubsubTopic() { * * *
-   * The PubSub topic to send notifications to. Its format is
+   * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* @@ -1337,6 +1351,7 @@ public java.lang.String getPubsubTopic() { * * @return The bytes for pubsubTopic. */ + @java.lang.Override public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { @@ -1356,13 +1371,14 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { * *
    * Output only. The service account that needs "pubsub.topics.publish"
-   * permission to publish to the PubSub topic.
+   * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The serviceAccount. */ + @java.lang.Override public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { @@ -1379,13 +1395,14 @@ public java.lang.String getServiceAccount() { * *
    * Output only. The service account that needs "pubsub.topics.publish"
-   * permission to publish to the PubSub topic.
+   * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for serviceAccount. */ + @java.lang.Override public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { @@ -1412,6 +1429,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * @return Whether the streamingConfig field is set. */ + @java.lang.Override public boolean hasStreamingConfig() { return notifyConfigCase_ == 6; } @@ -1428,6 +1446,7 @@ public boolean hasStreamingConfig() { * * @return The streamingConfig. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getStreamingConfig() { if (notifyConfigCase_ == 6) { @@ -1448,6 +1467,7 @@ public boolean hasStreamingConfig() { * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder() { if (notifyConfigCase_ == 6) { @@ -1693,9 +1713,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Cloud Security Command Center (Cloud SCC) notification configs.
-   * A notification config is a Cloud SCC resource that contains the configuration
-   * to send notifications for create/update events of findings, assets and etc.
+   * Security Command Center notification configs.
+   * A notification config is a Security Command Center resource that contains the
+   * configuration to send notifications for create/update events of findings,
+   * assets and etc.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig} @@ -2154,6 +2175,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * @return The enum numeric value on the wire for eventType. */ + @java.lang.Override public int getEventTypeValue() { return eventType_; } @@ -2171,6 +2193,7 @@ public int getEventTypeValue() { * @return This builder for chaining. */ public Builder setEventTypeValue(int value) { + eventType_ = value; onChanged(); return this; @@ -2187,6 +2210,7 @@ public Builder setEventTypeValue(int value) { * * @return The eventType. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType getEventType() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType result = @@ -2243,7 +2267,7 @@ public Builder clearEventType() { * * *
-     * The PubSub topic to send notifications to. Its format is
+     * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* @@ -2266,7 +2290,7 @@ public java.lang.String getPubsubTopic() { * * *
-     * The PubSub topic to send notifications to. Its format is
+     * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* @@ -2289,7 +2313,7 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { * * *
-     * The PubSub topic to send notifications to. Its format is
+     * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* @@ -2311,7 +2335,7 @@ public Builder setPubsubTopic(java.lang.String value) { * * *
-     * The PubSub topic to send notifications to. Its format is
+     * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* @@ -2329,7 +2353,7 @@ public Builder clearPubsubTopic() { * * *
-     * The PubSub topic to send notifications to. Its format is
+     * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* @@ -2355,7 +2379,7 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { * *
      * Output only. The service account that needs "pubsub.topics.publish"
-     * permission to publish to the PubSub topic.
+     * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2378,7 +2402,7 @@ public java.lang.String getServiceAccount() { * *
      * Output only. The service account that needs "pubsub.topics.publish"
-     * permission to publish to the PubSub topic.
+     * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2401,7 +2425,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * *
      * Output only. The service account that needs "pubsub.topics.publish"
-     * permission to publish to the PubSub topic.
+     * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2423,7 +2447,7 @@ public Builder setServiceAccount(java.lang.String value) { * *
      * Output only. The service account that needs "pubsub.topics.publish"
-     * permission to publish to the PubSub topic.
+     * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2441,7 +2465,7 @@ public Builder clearServiceAccount() { * *
      * Output only. The service account that needs "pubsub.topics.publish"
-     * permission to publish to the PubSub topic.
+     * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2478,6 +2502,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { * * @return Whether the streamingConfig field is set. */ + @java.lang.Override public boolean hasStreamingConfig() { return notifyConfigCase_ == 6; } @@ -2494,6 +2519,7 @@ public boolean hasStreamingConfig() { * * @return The streamingConfig. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getStreamingConfig() { if (streamingConfigBuilder_ == null) { @@ -2650,6 +2676,7 @@ public Builder clearStreamingConfig() { * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder() { if ((notifyConfigCase_ == 6) && (streamingConfigBuilder_ != null)) { diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java index f978276dd..7b2034f36 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java @@ -110,7 +110,7 @@ public interface NotificationConfigOrBuilder * * *
-   * The PubSub topic to send notifications to. Its format is
+   * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* @@ -123,7 +123,7 @@ public interface NotificationConfigOrBuilder * * *
-   * The PubSub topic to send notifications to. Its format is
+   * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* @@ -138,7 +138,7 @@ public interface NotificationConfigOrBuilder * *
    * Output only. The service account that needs "pubsub.topics.publish"
-   * permission to publish to the PubSub topic.
+   * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -151,7 +151,7 @@ public interface NotificationConfigOrBuilder * *
    * Output only. The service account that needs "pubsub.topics.publish"
-   * permission to publish to the PubSub topic.
+   * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java index a1173bdb6..22ee4cfca 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java @@ -22,7 +22,7 @@ * * *
- * Cloud SCC's Notification
+ * Security Command Center's Notification
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationMessage} @@ -93,6 +93,23 @@ private NotificationMessage( event_ = subBuilder.buildPartial(); } eventCase_ = 2; + break; + } + case 26: + { + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.Resource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } + break; } default: @@ -186,6 +203,7 @@ public EventCase getEventCase() { * * @return The notificationConfigName. */ + @java.lang.Override public java.lang.String getNotificationConfigName() { java.lang.Object ref = notificationConfigName_; if (ref instanceof java.lang.String) { @@ -208,6 +226,7 @@ public java.lang.String getNotificationConfigName() { * * @return The bytes for notificationConfigName. */ + @java.lang.Override public com.google.protobuf.ByteString getNotificationConfigNameBytes() { java.lang.Object ref = notificationConfigName_; if (ref instanceof java.lang.String) { @@ -233,6 +252,7 @@ public com.google.protobuf.ByteString getNotificationConfigNameBytes() { * * @return Whether the finding field is set. */ + @java.lang.Override public boolean hasFinding() { return eventCase_ == 2; } @@ -248,6 +268,7 @@ public boolean hasFinding() { * * @return The finding. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { if (eventCase_ == 2) { return (com.google.cloud.securitycenter.v1p1beta1.Finding) event_; @@ -264,6 +285,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { * * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() { if (eventCase_ == 2) { return (com.google.cloud.securitycenter.v1p1beta1.Finding) event_; @@ -271,6 +293,54 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu return com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance(); } + public static final int RESOURCE_FIELD_NUMBER = 3; + private com.google.cloud.securitycenter.v1p1beta1.Resource resource_; + /** + * + * + *
+   * The Cloud resource tied to the notification.
+   * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + * + * @return Whether the resource field is set. + */ + @java.lang.Override + public boolean hasResource() { + return resource_ != null; + } + /** + * + * + *
+   * The Cloud resource tied to the notification.
+   * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + * + * @return The resource. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.Resource getResource() { + return resource_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() + : resource_; + } + /** + * + * + *
+   * The Cloud resource tied to the notification.
+   * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder getResourceOrBuilder() { + return getResource(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -291,6 +361,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (eventCase_ == 2) { output.writeMessage(2, (com.google.cloud.securitycenter.v1p1beta1.Finding) event_); } + if (resource_ != null) { + output.writeMessage(3, getResource()); + } unknownFields.writeTo(output); } @@ -308,6 +381,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.securitycenter.v1p1beta1.Finding) event_); } + if (resource_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -325,6 +401,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) obj; if (!getNotificationConfigName().equals(other.getNotificationConfigName())) return false; + if (hasResource() != other.hasResource()) return false; + if (hasResource()) { + if (!getResource().equals(other.getResource())) return false; + } if (!getEventCase().equals(other.getEventCase())) return false; switch (eventCase_) { case 2: @@ -346,6 +426,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NOTIFICATION_CONFIG_NAME_FIELD_NUMBER; hash = (53 * hash) + getNotificationConfigName().hashCode(); + if (hasResource()) { + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + } switch (eventCase_) { case 2: hash = (37 * hash) + FINDING_FIELD_NUMBER; @@ -459,7 +543,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Cloud SCC's Notification
+   * Security Command Center's Notification
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationMessage} @@ -502,6 +586,12 @@ public Builder clear() { super.clear(); notificationConfigName_ = ""; + if (resourceBuilder_ == null) { + resource_ = null; + } else { + resource_ = null; + resourceBuilder_ = null; + } eventCase_ = 0; event_ = null; return this; @@ -540,6 +630,11 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage buildPartia result.event_ = findingBuilder_.build(); } } + if (resourceBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = resourceBuilder_.build(); + } result.eventCase_ = eventCase_; onBuilt(); return result; @@ -596,6 +691,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.NotificationM notificationConfigName_ = other.notificationConfigName_; onChanged(); } + if (other.hasResource()) { + mergeResource(other.getResource()); + } switch (other.getEventCase()) { case FINDING: { @@ -775,6 +873,7 @@ public Builder setNotificationConfigNameBytes(com.google.protobuf.ByteString val * * @return Whether the finding field is set. */ + @java.lang.Override public boolean hasFinding() { return eventCase_ == 2; } @@ -790,6 +889,7 @@ public boolean hasFinding() { * * @return The finding. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { if (findingBuilder_ == null) { if (eventCase_ == 2) { @@ -928,6 +1028,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding.Builder getFindingBuild * * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() { if ((eventCase_ == 2) && (findingBuilder_ != null)) { return findingBuilder_.getMessageOrBuilder(); @@ -973,6 +1074,192 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu return findingBuilder_; } + private com.google.cloud.securitycenter.v1p1beta1.Resource resource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Resource, + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, + com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder> + resourceBuilder_; + /** + * + * + *
+     * The Cloud resource tied to the notification.
+     * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + * + * @return Whether the resource field is set. + */ + public boolean hasResource() { + return resourceBuilder_ != null || resource_ != null; + } + /** + * + * + *
+     * The Cloud resource tied to the notification.
+     * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + * + * @return The resource. + */ + public com.google.cloud.securitycenter.v1p1beta1.Resource getResource() { + if (resourceBuilder_ == null) { + return resource_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() + : resource_; + } else { + return resourceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The Cloud resource tied to the notification.
+     * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + */ + public Builder setResource(com.google.cloud.securitycenter.v1p1beta1.Resource value) { + if (resourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + resourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The Cloud resource tied to the notification.
+     * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + */ + public Builder setResource( + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder builderForValue) { + if (resourceBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + resourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The Cloud resource tied to the notification.
+     * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + */ + public Builder mergeResource(com.google.cloud.securitycenter.v1p1beta1.Resource value) { + if (resourceBuilder_ == null) { + if (resource_ != null) { + resource_ = + com.google.cloud.securitycenter.v1p1beta1.Resource.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + resourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The Cloud resource tied to the notification.
+     * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + */ + public Builder clearResource() { + if (resourceBuilder_ == null) { + resource_ = null; + onChanged(); + } else { + resource_ = null; + resourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The Cloud resource tied to the notification.
+     * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + */ + public com.google.cloud.securitycenter.v1p1beta1.Resource.Builder getResourceBuilder() { + + onChanged(); + return getResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Cloud resource tied to the notification.
+     * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + */ + public com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder getResourceOrBuilder() { + if (resourceBuilder_ != null) { + return resourceBuilder_.getMessageOrBuilder(); + } else { + return resource_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() + : resource_; + } + } + /** + * + * + *
+     * The Cloud resource tied to the notification.
+     * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Resource, + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, + com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder> + getResourceFieldBuilder() { + if (resourceBuilder_ == null) { + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Resource, + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, + com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); + resource_ = null; + } + return resourceBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java index 886769a79..41bbd477f 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java @@ -86,5 +86,40 @@ public interface NotificationMessageOrBuilder */ com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder(); + /** + * + * + *
+   * The Cloud resource tied to the notification.
+   * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + * + * @return Whether the resource field is set. + */ + boolean hasResource(); + /** + * + * + *
+   * The Cloud resource tied to the notification.
+   * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + * + * @return The resource. + */ + com.google.cloud.securitycenter.v1p1beta1.Resource getResource(); + /** + * + * + *
+   * The Cloud resource tied to the notification.
+   * 
+ * + * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + */ + com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder getResourceOrBuilder(); + public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.EventCase getEventCase(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java index d65f78fa7..bcb4bbe20 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java @@ -45,17 +45,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".securitycenter.v1p1beta1\032\034google/api/an" + "notations.proto\0321google/cloud/securityce" + "nter/v1p1beta1/asset.proto\0323google/cloud" - + "/securitycenter/v1p1beta1/finding.proto\"" - + "\203\001\n\023NotificationMessage\022 \n\030notification_" - + "config_name\030\001 \001(\t\022A\n\007finding\030\002 \001(\0132..goo" - + "gle.cloud.securitycenter.v1p1beta1.Findi" - + "ngH\000B\007\n\005eventB\375\001\n)com.google.cloud.secur" - + "itycenter.v1p1beta1P\001ZSgoogle.golang.org" - + "/genproto/googleapis/cloud/securitycente" - + "r/v1p1beta1;securitycenter\252\002%Google.Clou" - + "d.SecurityCenter.V1P1Beta1\312\002%Google\\Clou" - + "d\\SecurityCenter\\V1p1beta1\352\002(Google::Clo" - + "ud::SecurityCenter::V1p1beta1b\006proto3" + + "/securitycenter/v1p1beta1/finding.proto\032" + + "4google/cloud/securitycenter/v1p1beta1/r" + + "esource.proto\"\306\001\n\023NotificationMessage\022 \n" + + "\030notification_config_name\030\001 \001(\t\022A\n\007findi" + + "ng\030\002 \001(\0132..google.cloud.securitycenter.v" + + "1p1beta1.FindingH\000\022A\n\010resource\030\003 \001(\0132/.g" + + "oogle.cloud.securitycenter.v1p1beta1.Res" + + "ourceB\007\n\005eventB\375\001\n)com.google.cloud.secu" + + "ritycenter.v1p1beta1P\001ZSgoogle.golang.or" + + "g/genproto/googleapis/cloud/securitycent" + + "er/v1p1beta1;securitycenter\252\002%Google.Clo" + + "ud.SecurityCenter.V1P1Beta1\312\002%Google\\Clo" + + "ud\\SecurityCenter\\V1p1beta1\352\002(Google::Cl" + + "oud::SecurityCenter::V1p1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -64,6 +67,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.getDescriptor(), com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.ResourceProto.getDescriptor(), }); internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor = getDescriptor().getMessageTypes().get(0); @@ -71,11 +75,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor, new java.lang.String[] { - "NotificationConfigName", "Finding", "Event", + "NotificationConfigName", "Finding", "Resource", "Event", }); com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.getDescriptor(); com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.ResourceProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java index 3706059f7..3a4d73441 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java @@ -22,8 +22,8 @@ * * *
- * User specified settings that are attached to the Cloud Security Command
- * Center (Cloud SCC) organization.
+ * User specified settings that are attached to the Security Command
+ * Center organization.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings} @@ -471,6 +471,10 @@ public InclusionMode findValueByNumber(int number) { }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } return getDescriptor().getValues().get(ordinal()); } @@ -583,6 +587,7 @@ public com.google.protobuf.ByteString getProjectIdsBytes(int index) { * * @return The enum numeric value on the wire for inclusionMode. */ + @java.lang.Override public int getInclusionModeValue() { return inclusionMode_; } @@ -599,6 +604,7 @@ public int getInclusionModeValue() { * * @return The inclusionMode. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig .InclusionMode getInclusionMode() { @@ -1201,6 +1207,7 @@ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { * * @return The enum numeric value on the wire for inclusionMode. */ + @java.lang.Override public int getInclusionModeValue() { return inclusionMode_; } @@ -1219,6 +1226,7 @@ public int getInclusionModeValue() { * @return This builder for chaining. */ public Builder setInclusionModeValue(int value) { + inclusionMode_ = value; onChanged(); return this; @@ -1236,6 +1244,7 @@ public Builder setInclusionModeValue(int value) { * * @return The inclusionMode. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig .InclusionMode getInclusionMode() { @@ -1370,6 +1379,7 @@ public com.google.protobuf.Parser getParserForType() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -1395,6 +1405,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -1423,6 +1434,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The enableAssetDiscovery. */ + @java.lang.Override public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; } @@ -1443,6 +1455,7 @@ public boolean getEnableAssetDiscovery() { * * @return Whether the assetDiscoveryConfig field is set. */ + @java.lang.Override public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfig_ != null; } @@ -1459,6 +1472,7 @@ public boolean hasAssetDiscoveryConfig() { * * @return The assetDiscoveryConfig. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { return assetDiscoveryConfig_ == null @@ -1477,6 +1491,7 @@ public boolean hasAssetDiscoveryConfig() { * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings .AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { @@ -1671,8 +1686,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * User specified settings that are attached to the Cloud Security Command
-   * Center (Cloud SCC) organization.
+   * User specified settings that are attached to the Security Command
+   * Center organization.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings} @@ -1986,6 +2001,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * @return The enableAssetDiscovery. */ + @java.lang.Override public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java new file mode 100644 index 000000000..05d2df450 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java @@ -0,0 +1,1359 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/resource.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +/** + * + * + *
+ * Information related to the Google Cloud resource.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Resource} + */ +public final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Resource) + ResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Resource.newBuilder() to construct. + private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Resource() { + name_ = ""; + project_ = ""; + projectDisplayName_ = ""; + parent_ = ""; + parentDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Resource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Resource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectDisplayName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + parentDisplayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto + .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto + .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1p1beta1.Resource.class, + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The full resource name of the resource. See:
+   * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The full resource name of the resource. See:
+   * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 2; + private volatile java.lang.Object project_; + /** + * + * + *
+   * The full resource name of project that the resource belongs to.
+   * 
+ * + * string project = 2; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + * + * + *
+   * The full resource name of project that the resource belongs to.
+   * 
+ * + * string project = 2; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object projectDisplayName_; + /** + * + * + *
+   * The human readable name of project that the resource belongs to.
+   * 
+ * + * string project_display_name = 3; + * + * @return The projectDisplayName. + */ + @java.lang.Override + public java.lang.String getProjectDisplayName() { + java.lang.Object ref = projectDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * The human readable name of project that the resource belongs to.
+   * 
+ * + * string project_display_name = 3; + * + * @return The bytes for projectDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + java.lang.Object ref = projectDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The full resource name of resource's parent.
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The full resource name of resource's parent.
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object parentDisplayName_; + /** + * + * + *
+   * The human readable name of resource's parent.
+   * 
+ * + * string parent_display_name = 5; + * + * @return The parentDisplayName. + */ + @java.lang.Override + public java.lang.String getParentDisplayName() { + java.lang.Object ref = parentDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * The human readable name of resource's parent.
+   * 
+ * + * string parent_display_name = 5; + * + * @return The bytes for parentDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentDisplayNameBytes() { + java.lang.Object ref = parentDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (!getProjectDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projectDisplayName_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + if (!getParentDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parentDisplayName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (!getProjectDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, projectDisplayName_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + if (!getParentDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parentDisplayName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Resource)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1p1beta1.Resource other = + (com.google.cloud.securitycenter.v1p1beta1.Resource) obj; + + if (!getName().equals(other.getName())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getParentDisplayName().equals(other.getParentDisplayName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + PROJECT_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getProjectDisplayName().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PARENT_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParentDisplayName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Resource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Information related to the Google Cloud resource.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Resource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Resource) + com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto + .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto + .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1p1beta1.Resource.class, + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1p1beta1.Resource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + project_ = ""; + + projectDisplayName_ = ""; + + parent_ = ""; + + parentDisplayName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto + .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.Resource getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.Resource build() { + com.google.cloud.securitycenter.v1p1beta1.Resource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.Resource buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.Resource result = + new com.google.cloud.securitycenter.v1p1beta1.Resource(this); + result.name_ = name_; + result.project_ = project_; + result.projectDisplayName_ = projectDisplayName_; + result.parent_ = parent_; + result.parentDisplayName_ = parentDisplayName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Resource) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Resource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Resource other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getProjectDisplayName().isEmpty()) { + projectDisplayName_ = other.projectDisplayName_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getParentDisplayName().isEmpty()) { + parentDisplayName_ = other.parentDisplayName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.securitycenter.v1p1beta1.Resource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.Resource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The full resource name of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The full resource name of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The full resource name of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of the resource. See:
+     * https://cloud.google.com/apis/design/resource_names#full_resource_name
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
+     * The full resource name of project that the resource belongs to.
+     * 
+ * + * string project = 2; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The full resource name of project that the resource belongs to.
+     * 
+ * + * string project = 2; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The full resource name of project that the resource belongs to.
+     * 
+ * + * string project = 2; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of project that the resource belongs to.
+     * 
+ * + * string project = 2; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of project that the resource belongs to.
+     * 
+ * + * string project = 2; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object projectDisplayName_ = ""; + /** + * + * + *
+     * The human readable name of project that the resource belongs to.
+     * 
+ * + * string project_display_name = 3; + * + * @return The projectDisplayName. + */ + public java.lang.String getProjectDisplayName() { + java.lang.Object ref = projectDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The human readable name of project that the resource belongs to.
+     * 
+ * + * string project_display_name = 3; + * + * @return The bytes for projectDisplayName. + */ + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + java.lang.Object ref = projectDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The human readable name of project that the resource belongs to.
+     * 
+ * + * string project_display_name = 3; + * + * @param value The projectDisplayName to set. + * @return This builder for chaining. + */ + public Builder setProjectDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The human readable name of project that the resource belongs to.
+     * 
+ * + * string project_display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearProjectDisplayName() { + + projectDisplayName_ = getDefaultInstance().getProjectDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The human readable name of project that the resource belongs to.
+     * 
+ * + * string project_display_name = 3; + * + * @param value The bytes for projectDisplayName to set. + * @return This builder for chaining. + */ + public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectDisplayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The full resource name of resource's parent.
+     * 
+ * + * string parent = 4; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The full resource name of resource's parent.
+     * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The full resource name of resource's parent.
+     * 
+ * + * string parent = 4; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of resource's parent.
+     * 
+ * + * string parent = 4; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The full resource name of resource's parent.
+     * 
+ * + * string parent = 4; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object parentDisplayName_ = ""; + /** + * + * + *
+     * The human readable name of resource's parent.
+     * 
+ * + * string parent_display_name = 5; + * + * @return The parentDisplayName. + */ + public java.lang.String getParentDisplayName() { + java.lang.Object ref = parentDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The human readable name of resource's parent.
+     * 
+ * + * string parent_display_name = 5; + * + * @return The bytes for parentDisplayName. + */ + public com.google.protobuf.ByteString getParentDisplayNameBytes() { + java.lang.Object ref = parentDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The human readable name of resource's parent.
+     * 
+ * + * string parent_display_name = 5; + * + * @param value The parentDisplayName to set. + * @return This builder for chaining. + */ + public Builder setParentDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parentDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The human readable name of resource's parent.
+     * 
+ * + * string parent_display_name = 5; + * + * @return This builder for chaining. + */ + public Builder clearParentDisplayName() { + + parentDisplayName_ = getDefaultInstance().getParentDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The human readable name of resource's parent.
+     * 
+ * + * string parent_display_name = 5; + * + * @param value The bytes for parentDisplayName to set. + * @return This builder for chaining. + */ + public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parentDisplayName_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Resource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Resource) + private static final com.google.cloud.securitycenter.v1p1beta1.Resource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Resource(); + } + + public static com.google.cloud.securitycenter.v1p1beta1.Resource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resource(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.Resource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java new file mode 100644 index 000000000..c3806c69d --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/resource.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public interface ResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Resource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The full resource name of the resource. See:
+   * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The full resource name of the resource. See:
+   * https://cloud.google.com/apis/design/resource_names#full_resource_name
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The full resource name of project that the resource belongs to.
+   * 
+ * + * string project = 2; + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
+   * The full resource name of project that the resource belongs to.
+   * 
+ * + * string project = 2; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The human readable name of project that the resource belongs to.
+   * 
+ * + * string project_display_name = 3; + * + * @return The projectDisplayName. + */ + java.lang.String getProjectDisplayName(); + /** + * + * + *
+   * The human readable name of project that the resource belongs to.
+   * 
+ * + * string project_display_name = 3; + * + * @return The bytes for projectDisplayName. + */ + com.google.protobuf.ByteString getProjectDisplayNameBytes(); + + /** + * + * + *
+   * The full resource name of resource's parent.
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * The full resource name of resource's parent.
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The human readable name of resource's parent.
+   * 
+ * + * string parent_display_name = 5; + * + * @return The parentDisplayName. + */ + java.lang.String getParentDisplayName(); + /** + * + * + *
+   * The human readable name of resource's parent.
+   * 
+ * + * string parent_display_name = 5; + * + * @return The bytes for parentDisplayName. + */ + com.google.protobuf.ByteString getParentDisplayNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java new file mode 100644 index 000000000..29886a593 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java @@ -0,0 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/resource.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class ResourceProto { + private ResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/securitycenter/v1p1beta1/" + + "resource.proto\022%google.cloud.securitycen" + + "ter.v1p1beta1\032\034google/api/annotations.pr" + + "oto\"t\n\010Resource\022\014\n\004name\030\001 \001(\t\022\017\n\007project" + + "\030\002 \001(\t\022\034\n\024project_display_name\030\003 \001(\t\022\016\n\006" + + "parent\030\004 \001(\t\022\033\n\023parent_display_name\030\005 \001(" + + "\tB\214\002\n)com.google.cloud.securitycenter.v1" + + "p1beta1B\rResourceProtoP\001ZSgoogle.golang." + + "org/genproto/googleapis/cloud/securityce" + + "nter/v1p1beta1;securitycenter\252\002%Google.C" + + "loud.SecurityCenter.V1p1Beta1\312\002%Google\\C" + + "loud\\SecurityCenter\\V1p1beta1\352\002(Google::" + + "Cloud::SecurityCenter::V1p1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor, + new java.lang.String[] { + "Name", "Project", "ProjectDisplayName", "Parent", "ParentDisplayName", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java index 2d7307e2b..1553c10ec 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The parent. */ + @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { @@ -152,6 +153,7 @@ public java.lang.String getParent() { * * @return The bytes for parent. */ + @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java index e6c2b46f5..da83aed3e 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java @@ -271,6 +271,10 @@ public State findValueByNumber(int number) { }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } return getDescriptor().getValues().get(ordinal()); } @@ -318,6 +322,7 @@ private State(int value) { * * @return The enum numeric value on the wire for state. */ + @java.lang.Override public int getStateValue() { return state_; } @@ -332,6 +337,7 @@ public int getStateValue() { * * @return The state. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State result = @@ -354,6 +360,7 @@ public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State * * @return Whether the duration field is set. */ + @java.lang.Override public boolean hasDuration() { return duration_ != null; } @@ -368,6 +375,7 @@ public boolean hasDuration() { * * @return The duration. */ + @java.lang.Override public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } @@ -380,6 +388,7 @@ public com.google.protobuf.Duration getDuration() { * * .google.protobuf.Duration duration = 2; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { return getDuration(); } @@ -757,6 +766,7 @@ public Builder mergeFrom( * * @return The enum numeric value on the wire for state. */ + @java.lang.Override public int getStateValue() { return state_; } @@ -774,6 +784,7 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { + state_ = value; onChanged(); return this; @@ -790,6 +801,7 @@ public Builder setStateValue(int value) { * * @return The state. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State result = diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java index 9a6182e02..84f02a8d5 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java @@ -22,9 +22,9 @@ * * *
- * User specified security marks that are attached to the parent Cloud Security
- * Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
- * SCC organization -- they can be modified and viewed by all users who have
+ * User specified security marks that are attached to the parent Security
+ * Command Center resource. Security marks are scoped within a Security Command
+ * Center organization -- they can be modified and viewed by all users who have
  * proper permissions on the organization.
  * 
* @@ -156,6 +156,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -182,6 +183,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -234,6 +236,7 @@ public int getMarksCount() { * * map<string, string> marks = 2; */ + @java.lang.Override public boolean containsMarks(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -241,6 +244,7 @@ public boolean containsMarks(java.lang.String key) { return internalGetMarks().getMap().containsKey(key); } /** Use {@link #getMarksMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getMarks() { return getMarksMap(); @@ -260,6 +264,7 @@ public java.util.Map getMarks() { * * map<string, string> marks = 2; */ + @java.lang.Override public java.util.Map getMarksMap() { return internalGetMarks().getMap(); } @@ -278,6 +283,7 @@ public java.util.Map getMarksMap() { * * map<string, string> marks = 2; */ + @java.lang.Override public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); @@ -300,6 +306,7 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String * * map<string, string> marks = 2; */ + @java.lang.Override public java.lang.String getMarksOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -492,9 +499,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * User specified security marks that are attached to the parent Cloud Security
-   * Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
-   * SCC organization -- they can be modified and viewed by all users who have
+   * User specified security marks that are attached to the parent Security
+   * Command Center resource. Security marks are scoped within a Security Command
+   * Center organization -- they can be modified and viewed by all users who have
    * proper permissions on the organization.
    * 
* @@ -843,6 +850,7 @@ public int getMarksCount() { * * map<string, string> marks = 2; */ + @java.lang.Override public boolean containsMarks(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -850,6 +858,7 @@ public boolean containsMarks(java.lang.String key) { return internalGetMarks().getMap().containsKey(key); } /** Use {@link #getMarksMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getMarks() { return getMarksMap(); @@ -869,6 +878,7 @@ public java.util.Map getMarks() { * * map<string, string> marks = 2; */ + @java.lang.Override public java.util.Map getMarksMap() { return internalGetMarks().getMap(); } @@ -887,6 +897,7 @@ public java.util.Map getMarksMap() { * * map<string, string> marks = 2; */ + @java.lang.Override public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); @@ -909,6 +920,7 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String * * map<string, string> marks = 2; */ + @java.lang.Override public java.lang.String getMarksOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksName.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksName.java index 967432d30..6d7b62b14 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksName.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksName.java @@ -34,10 +34,10 @@ public class SecurityMarksName implements ResourceName { @Deprecated protected SecurityMarksName() {} - private static final PathTemplate ORGANIZATION_ASSET_PATH_TEMPLATE = + private static final PathTemplate ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE = PathTemplate.createWithoutUrlEncoding( "organizations/{organization}/assets/{asset}/securityMarks"); - private static final PathTemplate ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE = + private static final PathTemplate ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE = PathTemplate.createWithoutUrlEncoding( "organizations/{organization}/sources/{source}/findings/{finding}/securityMarks"); @@ -69,14 +69,14 @@ public String getFinding() { private SecurityMarksName(Builder builder) { organization = Preconditions.checkNotNull(builder.getOrganization()); asset = Preconditions.checkNotNull(builder.getAsset()); - pathTemplate = ORGANIZATION_ASSET_PATH_TEMPLATE; + pathTemplate = ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE; } - private SecurityMarksName(OrganizationSourceFindingBuilder builder) { + private SecurityMarksName(OrganizationSourceFindingSecurityMarksBuilder builder) { organization = Preconditions.checkNotNull(builder.getOrganization()); source = Preconditions.checkNotNull(builder.getSource()); finding = Preconditions.checkNotNull(builder.getFinding()); - pathTemplate = ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE; + pathTemplate = ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE; } public static Builder newBuilder() { @@ -84,13 +84,14 @@ public static Builder newBuilder() { } @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static Builder newOrganizationAssetBuilder() { + public static Builder newOrganizationAssetSecurityMarksBuilder() { return new Builder(); } @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static OrganizationSourceFindingBuilder newOrganizationSourceFindingBuilder() { - return new OrganizationSourceFindingBuilder(); + public static OrganizationSourceFindingSecurityMarksBuilder + newOrganizationSourceFindingSecurityMarksBuilder() { + return new OrganizationSourceFindingSecurityMarksBuilder(); } public Builder toBuilder() { @@ -98,18 +99,25 @@ public Builder toBuilder() { } public static SecurityMarksName of(String organization, String asset) { - return newOrganizationAssetBuilder().setOrganization(organization).setAsset(asset).build(); + return newOrganizationAssetSecurityMarksBuilder() + .setOrganization(organization) + .setAsset(asset) + .build(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static SecurityMarksName ofOrganizationAssetName(String organization, String asset) { - return newOrganizationAssetBuilder().setOrganization(organization).setAsset(asset).build(); + public static SecurityMarksName ofOrganizationAssetSecurityMarksName( + String organization, String asset) { + return newOrganizationAssetSecurityMarksBuilder() + .setOrganization(organization) + .setAsset(asset) + .build(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static SecurityMarksName ofOrganizationSourceFindingName( + public static SecurityMarksName ofOrganizationSourceFindingSecurityMarksName( String organization, String source, String finding) { - return newOrganizationSourceFindingBuilder() + return newOrganizationSourceFindingSecurityMarksBuilder() .setOrganization(organization) .setSource(source) .setFinding(finding) @@ -121,14 +129,14 @@ public static String format(String organization, String asset) { } @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatOrganizationAssetName(String organization, String asset) { + public static String formatOrganizationAssetSecurityMarksName(String organization, String asset) { return newBuilder().setOrganization(organization).setAsset(asset).build().toString(); } @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatOrganizationSourceFindingName( + public static String formatOrganizationSourceFindingSecurityMarksName( String organization, String source, String finding) { - return newOrganizationSourceFindingBuilder() + return newOrganizationSourceFindingSecurityMarksBuilder() .setOrganization(organization) .setSource(source) .setFinding(finding) @@ -140,13 +148,15 @@ public static SecurityMarksName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - if (ORGANIZATION_ASSET_PATH_TEMPLATE.matches(formattedString)) { - Map matchMap = ORGANIZATION_ASSET_PATH_TEMPLATE.match(formattedString); - return ofOrganizationAssetName(matchMap.get("organization"), matchMap.get("asset")); - } else if (ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE.matches(formattedString)) { + if (ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE.matches(formattedString)) { + Map matchMap = + ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE.match(formattedString); + return ofOrganizationAssetSecurityMarksName( + matchMap.get("organization"), matchMap.get("asset")); + } else if (ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE.matches(formattedString)) { Map matchMap = - ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE.match(formattedString); - return ofOrganizationSourceFindingName( + ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE.match(formattedString); + return ofOrganizationSourceFindingSecurityMarksName( matchMap.get("organization"), matchMap.get("source"), matchMap.get("finding")); } throw new ValidationException("JobName.parse: formattedString not in valid format"); @@ -173,8 +183,8 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return ORGANIZATION_ASSET_PATH_TEMPLATE.matches(formattedString) - || ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE.matches(formattedString); + return ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE.matches(formattedString) + || ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE.matches(formattedString); } @Override @@ -239,7 +249,7 @@ public Builder setAsset(String asset) { private Builder(SecurityMarksName securityMarksName) { Preconditions.checkArgument( - securityMarksName.pathTemplate == ORGANIZATION_ASSET_PATH_TEMPLATE, + securityMarksName.pathTemplate == ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE, "toBuilder is only supported when SecurityMarksName has the pattern of " + "organizations/{organization}/assets/{asset}/securityMarks."); organization = securityMarksName.organization; @@ -253,13 +263,13 @@ public SecurityMarksName build() { /** Builder for organizations/{organization}/sources/{source}/findings/{finding}/securityMarks. */ @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class OrganizationSourceFindingBuilder { + public static class OrganizationSourceFindingSecurityMarksBuilder { private String organization; private String source; private String finding; - private OrganizationSourceFindingBuilder() {} + private OrganizationSourceFindingSecurityMarksBuilder() {} public String getOrganization() { return organization; @@ -273,17 +283,17 @@ public String getFinding() { return finding; } - public OrganizationSourceFindingBuilder setOrganization(String organization) { + public OrganizationSourceFindingSecurityMarksBuilder setOrganization(String organization) { this.organization = organization; return this; } - public OrganizationSourceFindingBuilder setSource(String source) { + public OrganizationSourceFindingSecurityMarksBuilder setSource(String source) { this.source = source; return this; } - public OrganizationSourceFindingBuilder setFinding(String finding) { + public OrganizationSourceFindingSecurityMarksBuilder setFinding(String finding) { this.finding = finding; return this; } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java index f90bd6ddf..e2ad20d83 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java @@ -206,271 +206,269 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2securitycenter.go" + "ogleapis.com/OrganizationSettings\"N\n\020Get" + "SourceRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$sec" - + "uritycenter.googleapis.com/Source\"\240\002\n\022Gr" + + "uritycenter.googleapis.com/Source\"\220\002\n\022Gr" + "oupAssetsRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2" + "\n0cloudresourcemanager.googleapis.com/Or" + "ganization\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by\030\003" + " \001(\tB\003\340A\002\0223\n\020compare_duration\030\004 \001(\0132\031.go" + "ogle.protobuf.Duration\022-\n\tread_time\030\005 \001(" - + "\0132\032.google.protobuf.Timestamp\022\016\n\006having\030" - + "\006 \001(\t\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_size\030\010" - + " \001(\005\"\277\001\n\023GroupAssetsResponse\022L\n\020group_by" - + "_results\030\001 \003(\01322.google.cloud.securityce" - + "nter.v1p1beta1.GroupResult\022-\n\tread_time\030" - + "\002 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017nex" - + "t_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\226" - + "\002\n\024GroupFindingsRequest\022<\n\006parent\030\001 \001(\tB" - + ",\340A\002\372A&\n$securitycenter.googleapis.com/S" - + "ource\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB" - + "\003\340A\002\022-\n\tread_time\030\004 \001(\0132\032.google.protobu" - + "f.Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031." - + "google.protobuf.Duration\022\016\n\006having\030\006 \001(\t" - + "\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"" - + "\301\001\n\025GroupFindingsResponse\022L\n\020group_by_re" - + "sults\030\001 \003(\01322.google.cloud.securitycente" - + "r.v1p1beta1.GroupResult\022-\n\tread_time\030\002 \001" - + "(\0132\032.google.protobuf.Timestamp\022\027\n\017next_p" - + "age_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\277\001\n\013" - + "GroupResult\022V\n\nproperties\030\001 \003(\0132B.google" - + ".cloud.securitycenter.v1p1beta1.GroupRes" - + "ult.PropertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Pr" - + "opertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(" - + "\0132\026.google.protobuf.Value:\0028\001\"\221\001\n\036ListNo" - + "tificationConfigsRequest\022H\n\006parent\030\001 \001(\t" - + "B8\340A\002\372A2\n0cloudresourcemanager.googleapi" - + "s.com/Organization\022\022\n\npage_token\030\002 \001(\t\022\021" - + "\n\tpage_size\030\003 \001(\005\"\223\001\n\037ListNotificationCo" - + "nfigsResponse\022W\n\024notification_configs\030\001 " - + "\003(\01329.google.cloud.securitycenter.v1p1be" - + "ta1.NotificationConfig\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"\205\001\n\022ListSourcesRequest\022H\n\006parent" - + "\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanager.goo" - + "gleapis.com/Organization\022\022\n\npage_token\030\002" - + " \001(\t\022\021\n\tpage_size\030\007 \001(\005\"n\n\023ListSourcesRe" - + "sponse\022>\n\007sources\030\001 \003(\0132-.google.cloud.s" - + "ecuritycenter.v1p1beta1.Source\022\027\n\017next_p" - + "age_token\030\002 \001(\t\"\317\002\n\021ListAssetsRequest\022H\n" - + "\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemana" - + "ger.googleapis.com/Organization\022\016\n\006filte" - + "r\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004" - + " \001(\0132\032.google.protobuf.Timestamp\0223\n\020comp" - + "are_duration\030\005 \001(\0132\031.google.protobuf.Dur" - + "ation\022\016\n\006having\030\006 \001(\t\0223\n\nfield_mask\030\007 \001(" - + "\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\022\n\npa" - + "ge_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\330\003\n\022Li" - + "stAssetsResponse\022g\n\023list_assets_results\030" - + "\001 \003(\0132J.google.cloud.securitycenter.v1p1" - + "beta1.ListAssetsResponse.ListAssetsResul" - + "t\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf.T" - + "imestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntot" - + "al_size\030\004 \001(\005\032\374\001\n\020ListAssetsResult\022;\n\005as" - + "set\030\001 \001(\0132,.google.cloud.securitycenter." - + "v1p1beta1.Asset\022l\n\014state_change\030\002 \001(\0162V." - + "google.cloud.securitycenter.v1p1beta1.Li" - + "stAssetsResponse.ListAssetsResult.StateC" - + "hange\"=\n\013StateChange\022\n\n\006UNUSED\020\000\022\t\n\005ADDE" - + "D\020\001\022\013\n\007REMOVED\020\002\022\n\n\006ACTIVE\020\003\"\305\002\n\023ListFin" - + "dingsRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$se" - + "curitycenter.googleapis.com/Source\022\016\n\006fi" - + "lter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_tim" + + "\0132\032.google.protobuf.Timestamp\022\022\n\npage_to" + + "ken\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\277\001\n\023GroupAs" + + "setsResponse\022L\n\020group_by_results\030\001 \003(\01322" + + ".google.cloud.securitycenter.v1p1beta1.G" + + "roupResult\022-\n\tread_time\030\002 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022\027\n\017next_page_token\030\003 \001" + + "(\t\022\022\n\ntotal_size\030\004 \001(\005\"\206\002\n\024GroupFindings" + + "Request\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securit" + + "ycenter.googleapis.com/Source\022\016\n\006filter\030" + + "\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340A\002\022-\n\tread_tim" + "e\030\004 \001(\0132\032.google.protobuf.Timestamp\0223\n\020c" + "ompare_duration\030\005 \001(\0132\031.google.protobuf." - + "Duration\022\016\n\006having\030\006 \001(\t\0223\n\nfield_mask\030\007" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\022\n" - + "\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\345\005\n" - + "\024ListFindingsResponse\022m\n\025list_findings_r" - + "esults\030\001 \003(\0132N.google.cloud.securitycent" - + "er.v1p1beta1.ListFindingsResponse.ListFi" - + "ndingsResult\022-\n\tread_time\030\002 \001(\0132\032.google" - + ".protobuf.Timestamp\022\027\n\017next_page_token\030\003" - + " \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032\201\004\n\022ListFinding" - + "sResult\022?\n\007finding\030\001 \001(\0132..google.cloud." - + "securitycenter.v1p1beta1.Finding\022p\n\014stat" - + "e_change\030\002 \001(\0162Z.google.cloud.securityce" - + "nter.v1p1beta1.ListFindingsResponse.List" - + "FindingsResult.StateChange\022i\n\010resource\030\003" - + " \001(\0132W.google.cloud.securitycenter.v1p1b" - + "eta1.ListFindingsResponse.ListFindingsRe" - + "sult.Resource\032~\n\010Resource\022\014\n\004name\030\001 \001(\t\022" - + "\024\n\014project_name\030\002 \001(\t\022\034\n\024project_display" - + "_name\030\003 \001(\t\022\023\n\013parent_name\030\004 \001(\t\022\033\n\023pare" - + "nt_display_name\030\005 \001(\t\"M\n\013StateChange\022\n\n\006" - + "UNUSED\020\000\022\013\n\007CHANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005" - + "ADDED\020\003\022\013\n\007REMOVED\020\004\"\324\001\n\026SetFindingState" - + "Request\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%securityc" - + "enter.googleapis.com/Finding\022H\n\005state\030\002 " - + "\001(\01624.google.cloud.securitycenter.v1p1be" - + "ta1.Finding.StateB\003\340A\002\0223\n\nstart_time\030\003 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\002\"d\n\030R" - + "unAssetDiscoveryRequest\022H\n\006parent\030\001 \001(\tB" - + "8\340A\002\372A2\n0cloudresourcemanager.googleapis" - + ".com/Organization\"\215\001\n\024UpdateFindingReque" - + "st\022D\n\007finding\030\001 \001(\0132..google.cloud.secur" - + "itycenter.v1p1beta1.FindingB\003\340A\002\022/\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "k\"\257\001\n\037UpdateNotificationConfigRequest\022[\n" - + "\023notification_config\030\001 \001(\01329.google.clou" - + "d.securitycenter.v1p1beta1.NotificationC" - + "onfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMask\"\265\001\n!UpdateOrganizati" - + "onSettingsRequest\022_\n\025organization_settin" - + "gs\030\001 \001(\0132;.google.cloud.securitycenter.v" - + "1p1beta1.OrganizationSettingsB\003\340A\002\022/\n\013up" + + "Duration\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_siz" + + "e\030\010 \001(\005\"\301\001\n\025GroupFindingsResponse\022L\n\020gro" + + "up_by_results\030\001 \003(\01322.google.cloud.secur" + + "itycenter.v1p1beta1.GroupResult\022-\n\tread_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\027" + + "\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 " + + "\001(\005\"\277\001\n\013GroupResult\022V\n\nproperties\030\001 \003(\0132" + + "B.google.cloud.securitycenter.v1p1beta1." + + "GroupResult.PropertiesEntry\022\r\n\005count\030\002 \001" + + "(\003\032I\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005va" + + "lue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\221\001" + + "\n\036ListNotificationConfigsRequest\022H\n\006pare" + + "nt\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanager.g" + + "oogleapis.com/Organization\022\022\n\npage_token" + + "\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\223\001\n\037ListNotifi" + + "cationConfigsResponse\022W\n\024notification_co" + + "nfigs\030\001 \003(\01329.google.cloud.securitycente" + + "r.v1p1beta1.NotificationConfig\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"\205\001\n\022ListSourcesRequest\022H" + + "\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourceman" + + "ager.googleapis.com/Organization\022\022\n\npage" + + "_token\030\002 \001(\t\022\021\n\tpage_size\030\007 \001(\005\"n\n\023ListS" + + "ourcesResponse\022>\n\007sources\030\001 \003(\0132-.google" + + ".cloud.securitycenter.v1p1beta1.Source\022\027" + + "\n\017next_page_token\030\002 \001(\t\"\277\002\n\021ListAssetsRe" + + "quest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudreso" + + "urcemanager.googleapis.com/Organization\022" + + "\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\trea" + + "d_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\0223\n\020compare_duration\030\005 \001(\0132\031.google.prot" + + "obuf.Duration\0223\n\nfield_mask\030\007 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\001\022\022\n\npage_token" + + "\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\330\003\n\022ListAssets" + + "Response\022g\n\023list_assets_results\030\001 \003(\0132J." + + "google.cloud.securitycenter.v1p1beta1.Li" + + "stAssetsResponse.ListAssetsResult\022-\n\trea" + + "d_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_size\030" + + "\004 \001(\005\032\374\001\n\020ListAssetsResult\022;\n\005asset\030\001 \001(" + + "\0132,.google.cloud.securitycenter.v1p1beta" + + "1.Asset\022l\n\014state_change\030\002 \001(\0162V.google.c" + + "loud.securitycenter.v1p1beta1.ListAssets" + + "Response.ListAssetsResult.StateChange\"=\n" + + "\013StateChange\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007R" + + "EMOVED\020\002\022\n\n\006ACTIVE\020\003\"\265\002\n\023ListFindingsReq" + + "uest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securityce" + + "nter.googleapis.com/Source\022\016\n\006filter\030\002 \001" + + "(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132" + + "\032.google.protobuf.Timestamp\0223\n\020compare_d" + + "uration\030\005 \001(\0132\031.google.protobuf.Duration" + + "\0223\n\nfield_mask\030\007 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\001\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpag" + + "e_size\030\t \001(\005\"\345\005\n\024ListFindingsResponse\022m\n" + + "\025list_findings_results\030\001 \003(\0132N.google.cl" + + "oud.securitycenter.v1p1beta1.ListFinding" + + "sResponse.ListFindingsResult\022-\n\tread_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017n" + + "ext_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005" + + "\032\201\004\n\022ListFindingsResult\022?\n\007finding\030\001 \001(\013" + + "2..google.cloud.securitycenter.v1p1beta1" + + ".Finding\022p\n\014state_change\030\002 \001(\0162Z.google." + + "cloud.securitycenter.v1p1beta1.ListFindi" + + "ngsResponse.ListFindingsResult.StateChan" + + "ge\022i\n\010resource\030\003 \001(\0132W.google.cloud.secu" + + "ritycenter.v1p1beta1.ListFindingsRespons" + + "e.ListFindingsResult.Resource\032~\n\010Resourc" + + "e\022\014\n\004name\030\001 \001(\t\022\024\n\014project_name\030\002 \001(\t\022\034\n" + + "\024project_display_name\030\003 \001(\t\022\023\n\013parent_na" + + "me\030\004 \001(\t\022\033\n\023parent_display_name\030\005 \001(\t\"M\n" + + "\013StateChange\022\n\n\006UNUSED\020\000\022\013\n\007CHANGED\020\001\022\r\n" + + "\tUNCHANGED\020\002\022\t\n\005ADDED\020\003\022\013\n\007REMOVED\020\004\"\324\001\n" + + "\026SetFindingStateRequest\022;\n\004name\030\001 \001(\tB-\340" + + "A\002\372A\'\n%securitycenter.googleapis.com/Fin" + + "ding\022H\n\005state\030\002 \001(\01624.google.cloud.secur" + + "itycenter.v1p1beta1.Finding.StateB\003\340A\002\0223" + + "\n\nstart_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\002\"d\n\030RunAssetDiscoveryRequest\022" + + "H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcema" + + "nager.googleapis.com/Organization\"\215\001\n\024Up" + + "dateFindingRequest\022D\n\007finding\030\001 \001(\0132..go" + + "ogle.cloud.securitycenter.v1p1beta1.Find" + + "ingB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMask\"\257\001\n\037UpdateNotification" + + "ConfigRequest\022[\n\023notification_config\030\001 \001" + + "(\01329.google.cloud.securitycenter.v1p1bet" + + "a1.NotificationConfigB\003\340A\002\022/\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"\265\001\n!" + + "UpdateOrganizationSettingsRequest\022_\n\025org" + + "anization_settings\030\001 \001(\0132;.google.cloud." + + "securitycenter.v1p1beta1.OrganizationSet" + + "tingsB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMask\"\212\001\n\023UpdateSourceRequ" + + "est\022B\n\006source\030\001 \001(\0132-.google.cloud.secur" + + "itycenter.v1p1beta1.SourceB\003\340A\002\022/\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "\"\320\001\n\032UpdateSecurityMarksRequest\022Q\n\016secur" + + "ity_marks\030\001 \001(\01324.google.cloud.securityc" + + "enter.v1p1beta1.SecurityMarksB\003\340A\002\022/\n\013up" + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "ask\"\212\001\n\023UpdateSourceRequest\022B\n\006source\030\001 " - + "\001(\0132-.google.cloud.securitycenter.v1p1be" - + "ta1.SourceB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMask\"\320\001\n\032UpdateSecur" - + "ityMarksRequest\022Q\n\016security_marks\030\001 \001(\0132" - + "4.google.cloud.securitycenter.v1p1beta1." - + "SecurityMarksB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMask\022.\n\nstart_tim" - + "e\030\003 \001(\0132\032.google.protobuf.Timestamp2\206+\n\016" - + "SecurityCenter\022\306\001\n\014CreateSource\022:.google" - + ".cloud.securitycenter.v1p1beta1.CreateSo" - + "urceRequest\032-.google.cloud.securitycente" - + "r.v1p1beta1.Source\"K\202\323\344\223\0025\"+/v1p1beta1/{" - + "parent=organizations/*}/sources:\006source\332" - + "A\rparent,source\022\375\001\n\rCreateFinding\022;.goog" - + "le.cloud.securitycenter.v1p1beta1.Create" - + "FindingRequest\032..google.cloud.securityce" - + "nter.v1p1beta1.Finding\"\177\202\323\344\223\002A\"6/v1p1bet" - + "a1/{parent=organizations/*/sources/*}/fi" - + "ndings:\007finding\332A\031parent,finding_id,find" - + "ing\332A\031parent,finding,finding_id\022\270\002\n\030Crea" - + "teNotificationConfig\022F.google.cloud.secu" - + "ritycenter.v1p1beta1.CreateNotificationC" - + "onfigRequest\0329.google.cloud.securitycent" - + "er.v1p1beta1.NotificationConfig\"\230\001\202\323\344\223\002N" - + "\"7/v1p1beta1/{parent=organizations/*}/no" - + "tificationConfigs:\023notification_config\332A" - + "$parent,config_id,notification_config\332A\032" - + "parent,notification_config\022\302\001\n\030DeleteNot" - + "ificationConfig\022F.google.cloud.securityc" - + "enter.v1p1beta1.DeleteNotificationConfig" - + "Request\032\026.google.protobuf.Empty\"F\202\323\344\223\0029*" - + "7/v1p1beta1/{name=organizations/*/notifi" - + "cationConfigs/*}\332A\004name\022\235\001\n\014GetIamPolicy" - + "\022\".google.iam.v1.GetIamPolicyRequest\032\025.g" - + "oogle.iam.v1.Policy\"R\202\323\344\223\002A\"/v1p1beta1/{finding.name=organizatio" - + "ns/*/sources/*/findings/*}:\007finding\332A\007fi" - + "nding\332A\023finding,update_mask\022\300\002\n\030UpdateNo" - + "tificationConfig\022F.google.cloud.security" - + "center.v1p1beta1.UpdateNotificationConfi" - + "gRequest\0329.google.cloud.securitycenter.v" - + "1p1beta1.NotificationConfig\"\240\001\202\323\344\223\002b2K/v" - + "1p1beta1/{notification_config.name=organ" - + "izations/*/notificationConfigs/*}:\023notif" - + "ication_config\332A\023notification_config\332A\037n" - + "otification_config,update_mask\022\251\002\n\032Updat" - + "eOrganizationSettings\022H.google.cloud.sec" - + "uritycenter.v1p1beta1.UpdateOrganization" - + "SettingsRequest\032;.google.cloud.securityc" - + "enter.v1p1beta1.OrganizationSettings\"\203\001\202" - + "\323\344\223\002e2L/v1p1beta1/{organization_settings" - + ".name=organizations/*/organizationSettin" - + "gs}:\025organization_settings\332A\025organizatio" - + "n_settings\022\333\001\n\014UpdateSource\022:.google.clo" - + "ud.securitycenter.v1p1beta1.UpdateSource" + + "ask\022.\n\nstart_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp2\206+\n\016SecurityCenter\022\306\001\n\014Creat" + + "eSource\022:.google.cloud.securitycenter.v1" + + "p1beta1.CreateSourceRequest\032-.google.clo" + + "ud.securitycenter.v1p1beta1.Source\"K\202\323\344\223" + + "\0025\"+/v1p1beta1/{parent=organizations/*}/" + + "sources:\006source\332A\rparent,source\022\375\001\n\rCrea" + + "teFinding\022;.google.cloud.securitycenter." + + "v1p1beta1.CreateFindingRequest\032..google." + + "cloud.securitycenter.v1p1beta1.Finding\"\177" + + "\202\323\344\223\002A\"6/v1p1beta1/{parent=organizations" + + "/*/sources/*}/findings:\007finding\332A\031parent" + + ",finding_id,finding\332A\031parent,finding,fin" + + "ding_id\022\270\002\n\030CreateNotificationConfig\022F.g" + + "oogle.cloud.securitycenter.v1p1beta1.Cre" + + "ateNotificationConfigRequest\0329.google.cl" + + "oud.securitycenter.v1p1beta1.Notificatio" + + "nConfig\"\230\001\202\323\344\223\002N\"7/v1p1beta1/{parent=org" + + "anizations/*}/notificationConfigs:\023notif" + + "ication_config\332A$parent,config_id,notifi" + + "cation_config\332A\032parent,notification_conf" + + "ig\022\302\001\n\030DeleteNotificationConfig\022F.google" + + ".cloud.securitycenter.v1p1beta1.DeleteNo" + + "tificationConfigRequest\032\026.google.protobu" + + "f.Empty\"F\202\323\344\223\0029*7/v1p1beta1/{name=organi" + + "zations/*/notificationConfigs/*}\332A\004name\022" + + "\235\001\n\014GetIamPolicy\022\".google.iam.v1.GetIamP" + + "olicyRequest\032\025.google.iam.v1.Policy\"R\202\323\344" + + "\223\002A\"/v1p1beta1/{finding." + + "name=organizations/*/sources/*/findings/" + + "*}:\007finding\332A\007finding\332A\023finding,update_m" + + "ask\022\300\002\n\030UpdateNotificationConfig\022F.googl" + + "e.cloud.securitycenter.v1p1beta1.UpdateN" + + "otificationConfigRequest\0329.google.cloud." + + "securitycenter.v1p1beta1.NotificationCon" + + "fig\"\240\001\202\323\344\223\002b2K/v1p1beta1/{notification_c" + + "onfig.name=organizations/*/notificationC" + + "onfigs/*}:\023notification_config\332A\023notific" + + "ation_config\332A\037notification_config,updat" + + "e_mask\022\251\002\n\032UpdateOrganizationSettings\022H." + + "google.cloud.securitycenter.v1p1beta1.Up" + + "dateOrganizationSettingsRequest\032;.google" + + ".cloud.securitycenter.v1p1beta1.Organiza" + + "tionSettings\"\203\001\202\323\344\223\002e2L/v1p1beta1/{organ" + + "ization_settings.name=organizations/*/or" + + "ganizationSettings}:\025organization_settin" + + "gs\332A\025organization_settings\022\333\001\n\014UpdateSou" + + "rce\022:.google.cloud.securitycenter.v1p1be" + + "ta1.UpdateSourceRequest\032-.google.cloud.s" + + "ecuritycenter.v1p1beta1.Source\"`\202\323\344\223\002<22" + + "/v1p1beta1/{source.name=organizations/*/" + + "sources/*}:\006source\332A\006source\332A\022source,upd" + + "ate_mask\022\206\003\n\023UpdateSecurityMarks\022A.googl" + + "e.cloud.securitycenter.v1p1beta1.UpdateS" + + "ecurityMarksRequest\0324.google.cloud.secur" + + "itycenter.v1p1beta1.SecurityMarks\"\365\001\202\323\344\223" + + "\002\300\0012G/v1p1beta1/{security_marks.name=org" + + "anizations/*/assets/*/securityMarks}:\016se" + + "curity_marksZe2S/v1p1beta1/{security_mar" + + "ks.name=organizations/*/sources/*/findin" + + "gs/*/securityMarks}:\016security_marks\332A\016se" + + "curity_marks\332A\032security_marks,update_mas" + + "k\032Q\312A\035securitycenter.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\375\001\n)com.google.cloud.securitycenter" + + ".v1p1beta1P\001ZSgoogle.golang.org/genproto" + + "/googleapis/cloud/securitycenter/v1p1bet" + + "a1;securitycenter\252\002%Google.Cloud.Securit" + + "yCenter.V1P1Beta1\312\002%Google\\Cloud\\Securit" + + "yCenter\\V1p1beta1\352\002(Google::Cloud::Secur" + + "ityCenter::V1p1beta1P\000b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -561,14 +559,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor, new java.lang.String[] { - "Parent", - "Filter", - "GroupBy", - "CompareDuration", - "ReadTime", - "Having", - "PageToken", - "PageSize", + "Parent", "Filter", "GroupBy", "CompareDuration", "ReadTime", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor = getDescriptor().getMessageTypes().get(8); @@ -584,14 +575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor, new java.lang.String[] { - "Parent", - "Filter", - "GroupBy", - "ReadTime", - "CompareDuration", - "Having", - "PageToken", - "PageSize", + "Parent", "Filter", "GroupBy", "ReadTime", "CompareDuration", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor = getDescriptor().getMessageTypes().get(10); @@ -662,7 +646,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrderBy", "ReadTime", "CompareDuration", - "Having", "FieldMask", "PageToken", "PageSize", @@ -696,7 +679,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrderBy", "ReadTime", "CompareDuration", - "Having", "FieldMask", "PageToken", "PageSize", diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java index c4fbd8d29..3df4d2939 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java @@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -179,6 +180,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -206,6 +208,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The enum numeric value on the wire for state. */ + @java.lang.Override public int getStateValue() { return state_; } @@ -222,6 +225,7 @@ public int getStateValue() { * * @return The state. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1p1beta1.Finding.State result = @@ -245,6 +249,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { * * @return Whether the startTime field is set. */ + @java.lang.Override public boolean hasStartTime() { return startTime_ != null; } @@ -260,6 +265,7 @@ public boolean hasStartTime() { * * @return The startTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } @@ -273,6 +279,7 @@ public com.google.protobuf.Timestamp getStartTime() { * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return getStartTime(); } @@ -790,6 +797,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * @return The enum numeric value on the wire for state. */ + @java.lang.Override public int getStateValue() { return state_; } @@ -808,6 +816,7 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { + state_ = value; onChanged(); return this; @@ -825,6 +834,7 @@ public Builder setStateValue(int value) { * * @return The state. */ + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { @SuppressWarnings("deprecation") com.google.cloud.securitycenter.v1p1beta1.Finding.State result = diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java index 3b7d71c0f..33baea7e1 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java @@ -22,7 +22,7 @@ * * *
- * Cloud Security Command Center's (Cloud SCC) finding source. A finding source
+ * Security Command Center finding source. A finding source
  * is an entity or a mechanism that can produce a finding. A source is like a
  * container of findings that come from the same scanner, logger, monitor, etc.
  * 
@@ -145,6 +145,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -170,6 +171,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -199,6 +201,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The displayName. */ + @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { @@ -225,6 +228,7 @@ public java.lang.String getDisplayName() { * * @return The bytes for displayName. */ + @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { @@ -245,7 +249,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { *
    * The description of the source (max of 1024 characters).
    * Example:
-   * "Cloud Security Scanner is a web security scanner for common
+   * "Web Security Scanner is a web security scanner for common
    * vulnerabilities in App Engine applications. It can automatically
    * scan and detect four common vulnerabilities, including cross-site-scripting
    * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -256,6 +260,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    *
    * @return The description.
    */
+  @java.lang.Override
   public java.lang.String getDescription() {
     java.lang.Object ref = description_;
     if (ref instanceof java.lang.String) {
@@ -273,7 +278,7 @@ public java.lang.String getDescription() {
    * 
    * The description of the source (max of 1024 characters).
    * Example:
-   * "Cloud Security Scanner is a web security scanner for common
+   * "Web Security Scanner is a web security scanner for common
    * vulnerabilities in App Engine applications. It can automatically
    * scan and detect four common vulnerabilities, including cross-site-scripting
    * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -284,6 +289,7 @@ public java.lang.String getDescription() {
    *
    * @return The bytes for description.
    */
+  @java.lang.Override
   public com.google.protobuf.ByteString getDescriptionBytes() {
     java.lang.Object ref = description_;
     if (ref instanceof java.lang.String) {
@@ -477,7 +483,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    *
    * 
-   * Cloud Security Command Center's (Cloud SCC) finding source. A finding source
+   * Security Command Center finding source. A finding source
    * is an entity or a mechanism that can produce a finding. A source is like a
    * container of findings that come from the same scanner, logger, monitor, etc.
    * 
@@ -901,7 +907,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { *
      * The description of the source (max of 1024 characters).
      * Example:
-     * "Cloud Security Scanner is a web security scanner for common
+     * "Web Security Scanner is a web security scanner for common
      * vulnerabilities in App Engine applications. It can automatically
      * scan and detect four common vulnerabilities, including cross-site-scripting
      * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -929,7 +935,7 @@ public java.lang.String getDescription() {
      * 
      * The description of the source (max of 1024 characters).
      * Example:
-     * "Cloud Security Scanner is a web security scanner for common
+     * "Web Security Scanner is a web security scanner for common
      * vulnerabilities in App Engine applications. It can automatically
      * scan and detect four common vulnerabilities, including cross-site-scripting
      * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -957,7 +963,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
      * The description of the source (max of 1024 characters).
      * Example:
-     * "Cloud Security Scanner is a web security scanner for common
+     * "Web Security Scanner is a web security scanner for common
      * vulnerabilities in App Engine applications. It can automatically
      * scan and detect four common vulnerabilities, including cross-site-scripting
      * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -984,7 +990,7 @@ public Builder setDescription(java.lang.String value) {
      * 
      * The description of the source (max of 1024 characters).
      * Example:
-     * "Cloud Security Scanner is a web security scanner for common
+     * "Web Security Scanner is a web security scanner for common
      * vulnerabilities in App Engine applications. It can automatically
      * scan and detect four common vulnerabilities, including cross-site-scripting
      * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -1007,7 +1013,7 @@ public Builder clearDescription() {
      * 
      * The description of the source (max of 1024 characters).
      * Example:
-     * "Cloud Security Scanner is a web security scanner for common
+     * "Web Security Scanner is a web security scanner for common
      * vulnerabilities in App Engine applications. It can automatically
      * scan and detect four common vulnerabilities, including cross-site-scripting
      * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java
index 24588eeea..ec80e91eb 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java
@@ -93,7 +93,7 @@ public interface SourceOrBuilder
    * 
    * The description of the source (max of 1024 characters).
    * Example:
-   * "Cloud Security Scanner is a web security scanner for common
+   * "Web Security Scanner is a web security scanner for common
    * vulnerabilities in App Engine applications. It can automatically
    * scan and detect four common vulnerabilities, including cross-site-scripting
    * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -111,7 +111,7 @@ public interface SourceOrBuilder
    * 
    * The description of the source (max of 1024 characters).
    * Example:
-   * "Cloud Security Scanner is a web security scanner for common
+   * "Web Security Scanner is a web security scanner for common
    * vulnerabilities in App Engine applications. It can automatically
    * scan and detect four common vulnerabilities, including cross-site-scripting
    * (XSS), Flash injection, mixed content (HTTP in HTTPS), and
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java
index 547c1dfcb..939ed7e3a 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java
@@ -153,6 +153,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the finding field is set.
    */
+  @java.lang.Override
   public boolean hasFinding() {
     return finding_ != null;
   }
@@ -173,6 +174,7 @@ public boolean hasFinding() {
    *
    * @return The finding.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
     return finding_ == null
         ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance()
@@ -193,6 +195,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
    * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() {
     return getFinding();
   }
@@ -215,6 +218,7 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -234,6 +238,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -251,6 +256,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
index 100b9b0a9..2994bf955 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
@@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the notificationConfig field is set.
    */
+  @java.lang.Override
   public boolean hasNotificationConfig() {
     return notificationConfig_ != null;
   }
@@ -168,6 +169,7 @@ public boolean hasNotificationConfig() {
    *
    * @return The notificationConfig.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig() {
     return notificationConfig_ == null
         ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()
@@ -184,6 +186,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificat
    * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder
       getNotificationConfigOrBuilder() {
     return getNotificationConfig();
@@ -203,6 +206,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificat
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -218,6 +222,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -231,6 +236,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
index fe2b16072..1b893c660 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
@@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the organizationSettings field is set.
    */
+  @java.lang.Override
   public boolean hasOrganizationSettings() {
     return organizationSettings_ != null;
   }
@@ -168,6 +169,7 @@ public boolean hasOrganizationSettings() {
    *
    * @return The organizationSettings.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings() {
     return organizationSettings_ == null
         ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance()
@@ -184,6 +186,7 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganiz
    * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder
       getOrganizationSettingsOrBuilder() {
     return getOrganizationSettings();
@@ -203,6 +206,7 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganiz
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -218,6 +222,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -231,6 +236,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
index 615fa1bf7..db25bd1a6 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
@@ -164,6 +164,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the securityMarks field is set.
    */
+  @java.lang.Override
   public boolean hasSecurityMarks() {
     return securityMarks_ != null;
   }
@@ -180,6 +181,7 @@ public boolean hasSecurityMarks() {
    *
    * @return The securityMarks.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() {
     return securityMarks_ == null
         ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance()
@@ -196,6 +198,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(
    * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder
       getSecurityMarksOrBuilder() {
     return getSecurityMarks();
@@ -217,6 +220,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -234,6 +238,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -249,6 +254,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
@@ -268,6 +274,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    *
    * @return Whether the startTime field is set.
    */
+  @java.lang.Override
   public boolean hasStartTime() {
     return startTime_ != null;
   }
@@ -284,6 +291,7 @@ public boolean hasStartTime() {
    *
    * @return The startTime.
    */
+  @java.lang.Override
   public com.google.protobuf.Timestamp getStartTime() {
     return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
   }
@@ -298,6 +306,7 @@ public com.google.protobuf.Timestamp getStartTime() {
    *
    * .google.protobuf.Timestamp start_time = 3;
    */
+  @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
     return getStartTime();
   }
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
index 085a1bc52..0efff707f 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
@@ -148,6 +148,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * @return Whether the source field is set.
    */
+  @java.lang.Override
   public boolean hasSource() {
     return source_ != null;
   }
@@ -164,6 +165,7 @@ public boolean hasSource() {
    *
    * @return The source.
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1p1beta1.Source getSource() {
     return source_ == null
         ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()
@@ -180,6 +182,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSource() {
    * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+  @java.lang.Override
   public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder() {
     return getSource();
   }
@@ -198,6 +201,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuil
    *
    * @return Whether the updateMask field is set.
    */
+  @java.lang.Override
   public boolean hasUpdateMask() {
     return updateMask_ != null;
   }
@@ -213,6 +217,7 @@ public boolean hasUpdateMask() {
    *
    * @return The updateMask.
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMask getUpdateMask() {
     return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
@@ -226,6 +231,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    *
    * .google.protobuf.FieldMask update_mask = 2;
    */
+  @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
     return getUpdateMask();
   }
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto
index aaa18bcba..bfcae3688 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
 
 syntax = "proto3";
 
@@ -30,30 +29,31 @@ option java_package = "com.google.cloud.securitycenter.v1p1beta1";
 option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1";
 option ruby_package = "Google::Cloud::SecurityCenter::V1p1beta1";
 
-// Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
-// Platform (GCP) resource.
+// Security Command Center representation of a Google Cloud
+// resource.
 //
-// The Asset is a Cloud SCC resource that captures information about a single
-// GCP resource. All modifications to an Asset are only within the context of
-// Cloud SCC and don't affect the referenced GCP resource.
+// The Asset is a Security Command Center resource that captures information
+// about a single Google Cloud resource. All modifications to an Asset are only
+// within the context of Security Command Center and don't affect the referenced
+// Google Cloud resource.
 message Asset {
   option (google.api.resource) = {
     type: "securitycenter.googleapis.com/Asset"
     pattern: "organizations/{organization}/assets/{asset}"
   };
 
-  // Cloud SCC managed properties. These properties are managed by Cloud SCC and
-  // cannot be modified by the user.
+  // Security Command Center managed properties. These properties are managed by
+  // Security Command Center and cannot be modified by the user.
   message SecurityCenterProperties {
-    // The full resource name of the GCP resource this asset
+    // The full resource name of the Google Cloud resource this asset
     // represents. This field is immutable after create time. See:
     // https://cloud.google.com/apis/design/resource_names#full_resource_name
     string resource_name = 1;
 
-    // The type of the GCP resource. Examples include: APPLICATION,
+    // The type of the Google Cloud resource. Examples include: APPLICATION,
     // PROJECT, and ORGANIZATION. This is a case insensitive field defined by
-    // Cloud SCC and/or the producer of the resource and is immutable
-    // after create time.
+    // Security Command Center and/or the producer of the resource and is
+    // immutable after create time.
     string resource_type = 2;
 
     // The full resource name of the immediate parent of the resource. See:
@@ -77,12 +77,13 @@ message Asset {
     string resource_project_display_name = 8;
   }
 
-  // IAM Policy information associated with the GCP resource described by the
-  // Cloud SCC asset. This information is managed and defined by the GCP
-  // resource and cannot be modified by the user.
+  // Cloud IAM Policy information associated with the Google Cloud resource
+  // described by the Security Command Center asset. This information is managed
+  // and defined by the Google Cloud resource and cannot be modified by the
+  // user.
   message IamPolicy {
     // The JSON representation of the Policy associated with the asset.
-    // See https://cloud.google.com/iam/reference/rest/v1/Policy for
+    // See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
     // format details.
     string policy_blob = 1;
   }
@@ -93,27 +94,28 @@ message Asset {
   // "organizations/{organization_id}/assets/{asset_id}".
   string name = 1;
 
-  // Cloud SCC managed properties. These properties are managed by
-  // Cloud SCC and cannot be modified by the user.
+  // Security Command Center managed properties. These properties are managed by
+  // Security Command Center and cannot be modified by the user.
   SecurityCenterProperties security_center_properties = 2;
 
   // Resource managed properties. These properties are managed and defined by
-  // the GCP resource and cannot be modified by the user.
+  // the Google Cloud resource and cannot be modified by the user.
   map resource_properties = 7;
 
   // User specified security marks. These marks are entirely managed by the user
   // and come from the SecurityMarks resource that belongs to the asset.
   SecurityMarks security_marks = 8;
 
-  // The time at which the asset was created in Cloud SCC.
+  // The time at which the asset was created in Security Command Center.
   google.protobuf.Timestamp create_time = 9;
 
   // The time at which the asset was last updated, added, or deleted in Cloud
   // SCC.
   google.protobuf.Timestamp update_time = 10;
 
-  // IAM Policy information associated with the GCP resource described by the
-  // Cloud SCC asset. This information is managed and defined by the GCP
-  // resource and cannot be modified by the user.
+  // Cloud IAM Policy information associated with the Google Cloud resource
+  // described by the Security Command Center asset. This information is managed
+  // and defined by the Google Cloud resource and cannot be modified by the
+  // user.
   IamPolicy iam_policy = 11;
 }
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto
index 6428027df..21b655362 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
 
 syntax = "proto3";
 
@@ -31,12 +30,12 @@ option java_package = "com.google.cloud.securitycenter.v1p1beta1";
 option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1";
 option ruby_package = "Google::Cloud::SecurityCenter::V1p1beta1";
 
-// Cloud Security Command Center (Cloud SCC) finding.
+// Security Command Center finding.
 //
 // A finding is a record of assessment data (security, risk, health or privacy)
-// ingested into Cloud SCC for presentation, notification, analysis,
-// policy testing, and enforcement. For example, an XSS vulnerability in an
-// App Engine application is a finding.
+// ingested into Security Command Center for presentation, notification,
+// analysis, policy testing, and enforcement. For example, an XSS vulnerability
+// in an App Engine application is a finding.
 message Finding {
   option (google.api.resource) = {
     type: "securitycenter.googleapis.com/Finding"
@@ -69,12 +68,12 @@ message Finding {
   // "organizations/{organization_id}/sources/{source_id}"
   string parent = 2;
 
-  // For findings on Google Cloud Platform (GCP) resources, the full resource
-  // name of the GCP resource this finding is for. See:
+  // For findings on Google Cloud resources, the full resource
+  // name of the Google Cloud resource this finding is for. See:
   // https://cloud.google.com/apis/design/resource_names#full_resource_name
-  // When the finding is for a non-GCP resource, the resourceName can be a
-  // customer or partner defined string.
-  // This field is immutable after creation time.
+  // When the finding is for a non-Google Cloud resource, the resourceName can
+  // be a customer or partner defined string. This field is immutable after
+  // creation time.
   string resource_name = 3;
 
   // The state of the finding.
@@ -85,9 +84,9 @@ message Finding {
   // Example: "XSS_FLASH_INJECTION"
   string category = 5;
 
-  // The URI that, if available, points to a web page outside of Cloud SCC
-  // where additional information about the finding can be found. This field is
-  // guaranteed to be either empty or a well formed URL.
+  // The URI that, if available, points to a web page outside of Security
+  // Command Center where additional information about the finding can be found.
+  // This field is guaranteed to be either empty or a well formed URL.
   string external_uri = 6;
 
   // Source specific properties. These properties are managed by the source
@@ -106,6 +105,6 @@ message Finding {
   // the firewall became open. The accuracy is determined by the detector.
   google.protobuf.Timestamp event_time = 9;
 
-  // The time at which the finding was created in Cloud SCC.
+  // The time at which the finding was created in Security Command Center.
   google.protobuf.Timestamp create_time = 10;
 }
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto
index 7cbb87b24..6f9e59669 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
 
 syntax = "proto3";
 
@@ -27,19 +26,16 @@ option java_multiple_files = true;
 option java_package = "com.google.cloud.securitycenter.v1p1beta1";
 option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1";
 option ruby_package = "Google::Cloud::SecurityCenter::V1p1beta1";
-
-// The Pub/Sub Topic resource definition is in google/cloud/pubsub/v1/,
-// but we do not import that proto directly; therefore, we redefine the
-// pattern here.
 option (google.api.resource_definition) = {
   type: "pubsub.googleapis.com/Topic"
   pattern: "projects/{project}/topics/{topic}"
 };
 
-// Cloud Security Command Center (Cloud SCC) notification configs.
+// Security Command Center notification configs.
 //
-// A notification config is a Cloud SCC resource that contains the configuration
-// to send notifications for create/update events of findings, assets and etc.
+// A notification config is a Security Command Center resource that contains the
+// configuration to send notifications for create/update events of findings,
+// assets and etc.
 message NotificationConfig {
   option (google.api.resource) = {
     type: "securitycenter.googleapis.com/NotificationConfig"
@@ -94,14 +90,14 @@ message NotificationConfig {
   // The type of events the config is for, e.g. FINDING.
   EventType event_type = 3;
 
-  // The PubSub topic to send notifications to. Its format is
+  // The Pub/Sub topic to send notifications to. Its format is
   // "projects/[project_id]/topics/[topic]".
   string pubsub_topic = 4 [
     (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" }
   ];
 
   // Output only. The service account that needs "pubsub.topics.publish"
-  // permission to publish to the PubSub topic.
+  // permission to publish to the Pub/Sub topic.
   string service_account = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
 
   // The config for triggering notifications.
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto
index 3abbcef32..fd3c23b63 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
 
 syntax = "proto3";
 
@@ -20,6 +19,7 @@ package google.cloud.securitycenter.v1p1beta1;
 import "google/api/annotations.proto";
 import "google/cloud/securitycenter/v1p1beta1/asset.proto";
 import "google/cloud/securitycenter/v1p1beta1/finding.proto";
+import "google/cloud/securitycenter/v1p1beta1/resource.proto";
 
 option csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1";
 option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter";
@@ -28,7 +28,7 @@ option java_package = "com.google.cloud.securitycenter.v1p1beta1";
 option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1";
 option ruby_package = "Google::Cloud::SecurityCenter::V1p1beta1";
 
-// Cloud SCC's Notification
+// Security Command Center's Notification
 message NotificationMessage {
   // Name of the notification config that generated current notification.
   string notification_config_name = 1;
@@ -39,4 +39,7 @@ message NotificationMessage {
     // populated.
     Finding finding = 2;
   }
+
+  // The Cloud resource tied to the notification.
+  Resource resource = 3;
 }
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto
index 9c38b87ba..1be72dd7b 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
 
 syntax = "proto3";
 
@@ -27,8 +26,8 @@ option java_package = "com.google.cloud.securitycenter.v1p1beta1";
 option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1";
 option ruby_package = "Google::Cloud::SecurityCenter::V1p1beta1";
 
-// User specified settings that are attached to the Cloud Security Command
-// Center (Cloud SCC) organization.
+// User specified settings that are attached to the Security Command
+// Center organization.
 message OrganizationSettings {
   option (google.api.resource) = {
     type: "securitycenter.googleapis.com/OrganizationSettings"
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto
new file mode 100644
index 000000000..00bb74d80
--- /dev/null
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto
@@ -0,0 +1,46 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.securitycenter.v1p1beta1;
+
+import "google/api/annotations.proto";
+
+option csharp_namespace = "Google.Cloud.SecurityCenter.V1p1Beta1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter";
+option java_multiple_files = true;
+option java_outer_classname = "ResourceProto";
+option java_package = "com.google.cloud.securitycenter.v1p1beta1";
+option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1";
+option ruby_package = "Google::Cloud::SecurityCenter::V1p1beta1";
+
+// Information related to the Google Cloud resource.
+message Resource {
+  // The full resource name of the resource. See:
+  // https://cloud.google.com/apis/design/resource_names#full_resource_name
+  string name = 1;
+
+  // The full resource name of project that the resource belongs to.
+  string project = 2;
+
+  // The human readable name of project that the resource belongs to.
+  string project_display_name = 3;
+
+  // The full resource name of resource's parent.
+  string parent = 4;
+
+  // The human readable name of resource's parent.
+  string parent_display_name = 5;
+}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto
index b8b9ea489..720ffc4fa 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
 
 syntax = "proto3";
 
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto
index ac54bc19a..11a1dd85a 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
 
 syntax = "proto3";
 
@@ -27,9 +26,9 @@ option java_package = "com.google.cloud.securitycenter.v1p1beta1";
 option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1";
 option ruby_package = "Google::Cloud::SecurityCenter::V1p1beta1";
 
-// User specified security marks that are attached to the parent Cloud Security
-// Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
-// SCC organization -- they can be modified and viewed by all users who have
+// User specified security marks that are attached to the parent Security
+// Command Center resource. Security marks are scoped within a Security Command
+// Center organization -- they can be modified and viewed by all users who have
 // proper permissions on the organization.
 message SecurityMarks {
   option (google.api.resource) = {
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
index dcd9af683..7431515bf 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
 
 syntax = "proto3";
 
@@ -236,7 +235,6 @@ service SecurityCenter {
     option (google.api.method_signature) = "resource,permissions";
   }
 
-  //
   // Creates or updates a finding. The corresponding source must exist for a
   // finding creation to succeed.
   rpc UpdateFinding(UpdateFindingRequest) returns (Finding) {
@@ -447,15 +445,15 @@ message GroupAssetsRequest {
   //
   //   Usage: This should be milliseconds since epoch or an RFC3339 string.
   //   Examples:
-  //     "update_time = \"2019-06-10T16:07:18-07:00\""
-  //     "update_time = 1560208038000"
+  //     `update_time = "2019-06-10T16:07:18-07:00"`
+  //     `update_time = 1560208038000`
   //
   // * create_time: `=`, `>`, `<`, `>=`, `<=`
   //
   //   Usage: This should be milliseconds since epoch or an RFC3339 string.
   //   Examples:
-  //     "create_time = \"2019-06-10T16:07:18-07:00\""
-  //     "create_time = 1560208038000"
+  //     `create_time = "2019-06-10T16:07:18-07:00"`
+  //     `create_time = 1560208038000`
   //
   // * iam_policy.policy_blob: `=`, `:`
   // * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
@@ -470,6 +468,12 @@ message GroupAssetsRequest {
   // * security_center_properties.resource_owners: `=`, `:`
   //
   // For example, `resource_properties.size = 100` is a valid filter string.
+  //
+  // Use a partial match on the empty string to filter based on a property
+  // existing: `resource_properties.my_property : ""`
+  //
+  // Use a negated partial match on the empty string to filter based on a
+  // property not existing: `-resource_properties.my_property : ""`
   string filter = 2;
 
   // Required. Expression that defines what assets fields to use for grouping.
@@ -527,11 +531,6 @@ message GroupAssetsRequest {
   // NOW.
   google.protobuf.Timestamp read_time = 5;
 
-  // Filter that specifies what fields to further filter on *after* the query
-  // filter has been executed. Currently only `state_change` is supported and
-  // requires compare_duration to be specified.
-  string having = 6;
-
   // The value returned by the last `GroupAssetsResponse`; indicates
   // that this is a continuation of a prior `GroupAssets` call, and that the
   // system should return the next page of data.
@@ -609,13 +608,19 @@ message GroupFindingsRequest {
   //
   //   Usage: This should be milliseconds since epoch or an RFC3339 string.
   //   Examples:
-  //     "event_time = \"2019-06-10T16:07:18-07:00\""
-  //     "event_time = 1560208038000"
+  //     `event_time = "2019-06-10T16:07:18-07:00"`
+  //     `event_time = 1560208038000`
   //
   // * security_marks.marks: `=`, `:`
   // * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
   //
   // For example, `source_properties.size = 100` is a valid filter string.
+  //
+  // Use a partial match on the empty string to filter based on a property
+  // existing: `source_properties.my_property : ""`
+  //
+  // Use a negated partial match on the empty string to filter based on a
+  // property not existing: `-source_properties.my_property : ""`
   string filter = 2;
 
   // Required. Expression that defines what assets fields to use for grouping
@@ -653,12 +658,18 @@ message GroupFindingsRequest {
   //
   // Possible "state_change" values when compare_duration is specified:
   //
-  // * "CHANGED":   indicates that the finding was present at the start of
-  //                  compare_duration, but changed its state at read_time.
-  // * "UNCHANGED": indicates that the finding was present at the start of
-  //                  compare_duration and did not change state at read_time.
-  // * "ADDED":     indicates that the finding was not present at the start
-  //                  of compare_duration, but was present at read_time.
+  // * "CHANGED":   indicates that the finding was present and matched the given
+  //                  filter at the start of compare_duration, but changed its
+  //                  state at read_time.
+  // * "UNCHANGED": indicates that the finding was present and matched the given
+  //                  filter at the start of compare_duration and did not change
+  //                  state at read_time.
+  // * "ADDED":     indicates that the finding did not match the given filter or
+  //                  was not present at the start of compare_duration, but was
+  //                  present at read_time.
+  // * "REMOVED":   indicates that the finding was present and matched the
+  //                  filter at the start of compare_duration, but did not match
+  //                  the filter at read_time.
   //
   // If compare_duration is not specified, then the only possible state_change
   // is "UNUSED",  which will be the state_change set for all findings present
@@ -668,11 +679,6 @@ message GroupFindingsRequest {
   // `group_by`.
   google.protobuf.Duration compare_duration = 5;
 
-  // Filter that specifies what fields to further filter on *after* the query
-  // filter has been executed. Currently only `finding.state` and `state_change`
-  // are supported and requires compare_duration to be specified.
-  string having = 6;
-
   // The value returned by the last `GroupFindingsResponse`; indicates
   // that this is a continuation of a prior `GroupFindings` call, and
   // that the system should return the next page of data.
@@ -816,15 +822,15 @@ message ListAssetsRequest {
   //
   //   Usage: This should be milliseconds since epoch or an RFC3339 string.
   //   Examples:
-  //     "update_time = \"2019-06-10T16:07:18-07:00\""
-  //     "update_time = 1560208038000"
+  //     `update_time = "2019-06-10T16:07:18-07:00"`
+  //     `update_time = 1560208038000`
   //
   // * create_time: `=`, `>`, `<`, `>=`, `<=`
   //
   //   Usage: This should be milliseconds since epoch or an RFC3339 string.
   //   Examples:
-  //     "create_time = \"2019-06-10T16:07:18-07:00\""
-  //     "create_time = 1560208038000"
+  //     `create_time = "2019-06-10T16:07:18-07:00"`
+  //     `create_time = 1560208038000`
   //
   // * iam_policy.policy_blob: `=`, `:`
   // * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
@@ -839,6 +845,12 @@ message ListAssetsRequest {
   // * security_center_properties.resource_owners: `=`, `:`
   //
   // For example, `resource_properties.size = 100` is a valid filter string.
+  //
+  // Use a partial match on the empty string to filter based on a property
+  // existing: `resource_properties.my_property : ""`
+  //
+  // Use a negated partial match on the empty string to filter based on a
+  // property not existing: `-resource_properties.my_property : ""`
   string filter = 2;
 
   // Expression that defines what fields and order to use for sorting. The
@@ -896,11 +908,6 @@ message ListAssetsRequest {
   // read_time.
   google.protobuf.Duration compare_duration = 5;
 
-  // Filter that specifies what fields to further filter on *after* the query
-  // filter has been executed. Currently only `state_change` is supported and
-  // requires compare_duration to be specified.
-  string having = 6;
-
   // Optional.
   // A field mask to specify the ListAssetsResult fields to be listed in the
   // response.
@@ -1012,13 +1019,19 @@ message ListFindingsRequest {
   //
   //   Usage: This should be milliseconds since epoch or an RFC3339 string.
   //   Examples:
-  //     "event_time = \"2019-06-10T16:07:18-07:00\""
-  //     "event_time = 1560208038000"
+  //     `event_time = "2019-06-10T16:07:18-07:00"`
+  //     `event_time = 1560208038000`
   //
   // security_marks.marks: `=`, `:`
   // source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
   //
   // For example, `source_properties.size = 100` is a valid filter string.
+  //
+  // Use a partial match on the empty string to filter based on a property
+  // existing: `source_properties.my_property : ""`
+  //
+  // Use a negated partial match on the empty string to filter based on a
+  // property not existing: `-source_properties.my_property : ""`
   string filter = 2;
 
   // Expression that defines what fields and order to use for sorting. The
@@ -1061,23 +1074,24 @@ message ListFindingsRequest {
   //
   // Possible "state_change" values when compare_duration is specified:
   //
-  // * "CHANGED":   indicates that the finding was present at the start of
-  //                  compare_duration, but changed its state at read_time.
-  // * "UNCHANGED": indicates that the finding was present at the start of
-  //                  compare_duration and did not change state at read_time.
-  // * "ADDED":     indicates that the finding was not present at the start
-  //                  of compare_duration, but was present at read_time.
+  // * "CHANGED":   indicates that the finding was present and matched the given
+  //                  filter at the start of compare_duration, but changed its
+  //                  state at read_time.
+  // * "UNCHANGED": indicates that the finding was present and matched the given
+  //                  filter at the start of compare_duration and did not change
+  //                  state at read_time.
+  // * "ADDED":     indicates that the finding did not match the given filter or
+  //                  was not present at the start of compare_duration, but was
+  //                  present at read_time.
+  // * "REMOVED":   indicates that the finding was present and matched the
+  //                  filter at the start of compare_duration, but did not match
+  //                  the filter at read_time.
   //
   // If compare_duration is not specified, then the only possible state_change
   // is "UNUSED", which will be the state_change set for all findings present at
   // read_time.
   google.protobuf.Duration compare_duration = 5;
 
-  // Filter that specifies what fields to further filter on *after* the query
-  // filter has been executed. Currently only `finding.state` and `state_change`
-  // are supported and requires compare_duration to be specified.
-  string having = 6;
-
   // Optional.
   // A field mask to specify the Finding fields to be listed in the response.
   // An empty field mask will list all fields.
@@ -1098,7 +1112,7 @@ message ListFindingsRequest {
 message ListFindingsResponse {
   // Result containing the Finding and its StateChange.
   message ListFindingsResult {
-    // Information related to the Google Cloud Platform (GCP) resource that is
+    // Information related to the Google Cloud resource that is
     // associated with this finding.
     message Resource {
       // The full resource name of the resource. See:
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto
index d591a05cc..0e940df62 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
 
 syntax = "proto3";
 
@@ -27,7 +26,7 @@ option java_package = "com.google.cloud.securitycenter.v1p1beta1";
 option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1";
 option ruby_package = "Google::Cloud::SecurityCenter::V1p1beta1";
 
-// Cloud Security Command Center's (Cloud SCC) finding source. A finding source
+// Security Command Center finding source. A finding source
 // is an entity or a mechanism that can produce a finding. A source is like a
 // container of findings that come from the same scanner, logger, monitor, etc.
 message Source {
@@ -51,7 +50,7 @@ message Source {
 
   // The description of the source (max of 1024 characters).
   // Example:
-  // "Cloud Security Scanner is a web security scanner for common
+  // "Web Security Scanner is a web security scanner for common
   // vulnerabilities in App Engine applications. It can automatically
   // scan and detect four common vulnerabilities, including cross-site-scripting
   // (XSS), Flash injection, mixed content (HTTP in HTTPS), and
diff --git a/renovate.json b/renovate.json
index fc5c305a2..f7deb7276 100644
--- a/renovate.json
+++ b/renovate.json
@@ -76,5 +76,6 @@
       "groupName": "jackson dependencies"
     }
   ],
-  "semanticCommits": true
+  "semanticCommits": true,
+  "masterIssue": true
 }
\ No newline at end of file
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 0b746db15..b3fb66e19 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -14,7 +14,7 @@
   
     com.google.cloud.samples
     shared-configuration
-    1.0.15
+    1.0.18
   
 
   
@@ -29,7 +29,7 @@
     
       com.google.cloud
       google-cloud-securitycenter
-      0.120.0
+      0.121.0
     
     
 
diff --git a/samples/pom.xml b/samples/pom.xml
index c83c6f592..6381fd035 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -18,7 +18,7 @@
   
     com.google.cloud.samples
     shared-configuration
-    1.0.15
+    1.0.18
   
 
   
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 350d5948f..12bb7ed75 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -14,7 +14,7 @@
   
     com.google.cloud.samples
     shared-configuration
-    1.0.15
+    1.0.18
   
 
   
@@ -28,7 +28,7 @@
     
       com.google.cloud
       google-cloud-securitycenter
-      0.120.0
+      0.121.0
     
 
     
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index afd6c813d..610a8f125 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -14,7 +14,7 @@
   
     com.google.cloud.samples
     shared-configuration
-    1.0.15
+    1.0.18
   
 
   
@@ -30,7 +30,7 @@
       
         com.google.cloud
         libraries-bom
-        4.4.1
+        5.7.0
         pom
         import
       
diff --git a/synth.metadata b/synth.metadata
index 6383d530b..646c07f72 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -1,44 +1,41 @@
 {
-  "updateTime": "2020-04-09T10:34:59.834230Z",
   "sources": [
     {
       "git": {
         "name": ".",
         "remote": "https://github.com/googleapis/java-securitycenter.git",
-        "sha": "baa3d9a60486c941e9ef0c9386b1741858ace004"
+        "sha": "b97deb90aad2cf0e71480aa91dbe760cd1c5cf70"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "ee4ea76504aa60c2bff9b7c11269c155d8c21e0d",
-        "internalRef": "305619145"
+        "sha": "027e9775e9d3a6f3eb197fb428727b7f17276e7b",
+        "internalRef": "315725809"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "ee4ea76504aa60c2bff9b7c11269c155d8c21e0d",
-        "internalRef": "305619145"
+        "sha": "027e9775e9d3a6f3eb197fb428727b7f17276e7b",
+        "internalRef": "315725809"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "ee4ea76504aa60c2bff9b7c11269c155d8c21e0d",
-        "internalRef": "305619145",
-        "log": "ee4ea76504aa60c2bff9b7c11269c155d8c21e0d\ngapic-generator:\n- feat: Support extra plugin_args for php bazel rules rules (#3165)\n- feat: support '*' in resource definition (#3163)\n- fix: add null check and better error message when referenced resource is not found (#3169)\n\nresource name plugin:\n- support * annotation in resource def (#84)\n\nPiperOrigin-RevId: 305619145\n\ne4f4b23e07315492b533746e6a9255a1e6b3e748\nosconfig v1beta: fix the incorrect pattern for GuestPolicy resource and remove the obsolete history field.\n\nPiperOrigin-RevId: 305617619\n\nd741cd976975c745d0199987aff0e908b8352992\nchore: enable gapicv2 for firestore/v1 API\n\nNote that this contains breaking Java changes:\n  com.google.cloud.firestore.v1.FirestoreClient: Method 'public void deleteDocument(com.google.firestore.v1.AnyPathName)' has been removed\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305561906\n\n0d69cddaa23b556e7299f84ad55a02ec1cad55a9\nchore: enable gapicv2 for firestore/admin/v1 API\n\nCommitter: @miraleung\n\nThere are the following breaking changes due to the collection_id discrepancy between [1] and [2]\n\n1. https://github.com/googleapis/googleapis/blob/6f8350c0df231d7e742fa10dbf929f33047715c9/google/firestore/admin/v1/firestore_gapic.yaml#L24-L29\n2. https://github.com/googleapis/googleapis/blob/6f8350c0df231d7e742fa10dbf929f33047715c9/google/firestore/admin/v1/field.proto#L39\n```\ncom.google.firestore.admin.v1.FieldName: Method 'public java.lang.String getCollectionId()' has been removed\ncom.google.firestore.admin.v1.FieldName: Method 'public java.lang.String getFieldId()' has been removed\ncom.google.firestore.admin.v1.FieldName$Builder: Method 'public java.lang.String getCollectionId()' has been removed\ncom.google.firestore.admin.v1.FieldName$Builder: Method 'public java.lang.String getFieldId()' has been removed\ncom.google.firestore.admin.v1.FieldName$Builder: Method 'public com.google.firestore.admin.v1.FieldName$Builder setCollectionId(java.lang.String)' has been removed\ncom.google.firestore.admin.v1.FieldName$Builder: Method 'public com.google.firestore.admin.v1.FieldName$Builder setFieldId(java.lang.String)' has been removed\ncom.google.firestore.admin.v1.IndexName: Method 'public java.lang.String getCollectionId()' has been removed\ncom.google.firestore.admin.v1.IndexName: Method 'public java.lang.String getIndexId()' has been removed\ncom.google.firestore.admin.v1.IndexName$Builder: Method 'public java.lang.String getCollectionId()' has been removed\ncom.google.firestore.admin.v1.IndexName$Builder: Method 'public java.lang.String getIndexId()' has been removed\ncom.google.firestore.admin.v1.IndexName$Builder: Method 'public com.google.firestore.admin.v1.IndexName$Builder setCollectionId(java.lang.String)' has been removed\ncom.google.firestore.admin.v1.IndexName$Builder: Method 'public com.google.firestore.admin.v1.IndexName$Builder setIndexId(java.lang.String)' has been removed\n```\n\nPiperOrigin-RevId: 305561114\n\n6f8350c0df231d7e742fa10dbf929f33047715c9\nchore: enable gapicv2 for firestore/v1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305537104\n\nd398d687aad9eab4c6ceee9cd5e012fa61f7e28c\ndocs: change relative URLs to absolute URLs to fix broken links.\n\nPiperOrigin-RevId: 305496764\n\n5520cb891a72ab0b0cbe3facaca7b012785f5b49\nchore: update gapic-generator to cd3c9ee7\n\nChanges include:\n* update generated nox file\n* fix generated license text alignment\n\nPiperOrigin-RevId: 305484038\n\nb20965f260d70e57b7dcd312cd356d6a81f31f8e\nUpdating retry configuration settings.\n\nPiperOrigin-RevId: 305431885\n\n83d7f20c06182cb6ada9a3b47daf17b2fd22b020\nMigrate dialogflow from gapic v1 to gapic v2.\nIncluding breaking changes (resource pattern change) introduced in cl/304043500.\n\ncommitter: @hzyi-google\nPiperOrigin-RevId: 305358314\n\nf8a97692250a6c781d87528995a5c72d41ca7762\nchore: enable gapic v2 and proto annotation for Grafeas API.\n\ncommitter: @noahdietz\nPiperOrigin-RevId: 305354660\n\nb1a5ca68468eb1587168972c9d15928e98ba92b0\nEnable gapicv2 for v1/osconfig\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305351235\n\nc803327f9b1dd2583b070645b5b86e5e7ead3161\nEnable gapicv2 for osconfig/agentendpoint/v1beta\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305350472\n\n99dddf1de598f95a71d3536f5c170d84f0c0ef87\nchore: enable gapicv2 for build/v1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305349884\n\nbf85ee3ed64951c14b19ef8577689f43ee6f0f41\nchore: enable gapicv2 for cloudbuild/v1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305349873\n\nf497c7aa912df121e11772767e667fdbc10a63d9\nchore: enable gapic v2 and proto annotation for Web Security Scanner v1alpha API.\n\ncommitter: @noahdietz\nPiperOrigin-RevId: 305349342\n\n0669a37c66d76bd413343da69420bb75c49062e7\nchore: rename unused GAPIC v1 configs for IAM to legacy\n\ncommitter: @noahdietz\nPiperOrigin-RevId: 305340308\n\naf7da29c24814a1c873c22f477e9dd8dd5a17b0b\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 305330079\n\n3f767aa32b4b3313027d05b503aaba63e0c432a3\ndocs: Update an out-of-date external link.\n\nPiperOrigin-RevId: 305329485\n\n9ede34d093b9d786a974448fc7a3a17948c203e2\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 305327985\n\n27daba50281357b676e1ba882422ebeab4ce4f92\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 305327500\n\n82de0f6f04649651958b96fbc5b0b39dd4dbbd01\nFix: Add missing resource name definition (from the Compute API).\n\nPiperOrigin-RevId: 305324763\n\n744591190e828440f72745aef217f883afd1fd71\ndocs: change relative URLs to absolute URLs to fix broken links.\n\nPiperOrigin-RevId: 305323909\n\n1247c135ceaedfe04261d27a64aaecf78ffbae74\nchore: enable gapicv2 for videointelligence/v1beta2 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305321976\n\n633c8b13227b9e3810749964d580e5be504db488\nchore: enable gapicv2 for videointelligence/v1p1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305320877\n\n29aac60f121dc43382b37ff92f2dbb692d94143a\ndocs: fix broken link to policy reference documentation.\n\nPiperOrigin-RevId: 305319540\n\n54ddbbf14c489b8a2f0731aa39408c016f5a8387\nbazel: update gapic-generator-go to v0.13.0\n\nChanges include:\n* add clientHook feature\n\nPiperOrigin-RevId: 305289945\n\n823facb4ca6a4b36b817ce955a790dcb40cf808f\nchore: enable gapicv2 for videointelligence/v1p3beta1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305155214\n\n6b9c969d42bcb0f8206675bd868ed7d1ddcdaef9\nAdd API for bigqueryreservation v1.\n\nPiperOrigin-RevId: 305151484\n\n514f7d27811832a9f58b83d6f6305d894b097cf6\nchore: enable gapicv2 for phishingprotection/v1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305126983\n\nff74d47d47280e6bbcbad1a7c82b1e0959c472ec\nfix: PHP-related fixes in BUILD.bazel and service.yamls\n\nThis PR also adds the rules for all 7 langauges in OsLogin and Kms BUILD.bazel files. Those build files were missing rules for 5 langagues, including PHP.\n\nThis PR is the prerequisite for migrating PHP synth.py scripts from artman to bazel.\n\nThe fixes in service.yaml fix regression made during proto annotation migration. This became visible only during PHP generation, because only PHP depends on the affected sections of the service.yaml config.\n\nPiperOrigin-RevId: 305108224\n\nfdbc7b1f63969307c71143a0c24fdfd02e739df6\nEnable gapicv2 for osconfig/agentendpoint/v1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305086443\n\n1490d30e1ae339570dd7826ba625a603ede91a08\nEnable gapicv2 for osconfig/v1beta\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305069755\n\n7bf824e82e5c3549642b150dc4a9579602000f34\nEnable gapicv2 for iam/credentials/v1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305065283\n\n9ff6fd3b22f99167827e89aae7778408b5e82425\nUpdates Dataproc v1 API:\n- Adds Dataproc Jobs.SubmitJobAsOperation RPC\n- Adds SparkR and Presto job types to WorkflowTemplates\n- Adds new Optional Components\n- Clarifies usage of some APIs\n\nPiperOrigin-RevId: 305053617\n\ncad0f5137a70d0d14a8d9acbfcee98e4cd3e9662\nUpdates to Dataproc v1beta2 API:\n- Adds SparkR and Presto job types to WorkflowTemplates\n- Adds new Optional Components\n- Clarifies usage of some APIs\n\nPiperOrigin-RevId: 305053062\n\na005f045a301535eeb4c4b3fa7bb94eec9d22a8b\nAdd support for Cloud EKM to the Cloud KMS service and resource protos.\n\nPiperOrigin-RevId: 305026790\n\n5077b1e4674afdbbf11dac3f5f43d36285ba53ff\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304836531\n\nd6cb4997910eda04c0c66c0f2fd043eeaa0f660d\nchore: enable gapic v2 and proto annotation for documentai API.\n\ncommitter @summer-ji-eng\n\nPiperOrigin-RevId: 304724866\n\n490bc556608bfa5b1548c9374b06152fa33d657e\nEnable gapicv2 for devtools/remoteworkers/v1test2\n\nCommitter: @miraleung\nPiperOrigin-RevId: 304718691\n\n9f78ce31a5bd7f4a63e3cf0ddf28221557adb7ed\nEnable gapicv2 for managedidentities/v1beta1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 304718676\n\n6e17d259b8e320bc51aa240cefef05ec753e2b83\ndocs: treat a dummy example URL as a string literal instead of a link\n\nPiperOrigin-RevId: 304716376\n\na8d76f99d3073aaccabdcc122c798a63e812c4fe\ndocs: change relative URLs to absolute URLs to fix broken links.\n\nPiperOrigin-RevId: 304702368\n\n65c749bc6a1d240416a0e6979381b67f97aff907\ndocs: fix formatting of some regexes and string literals.\n\nPiperOrigin-RevId: 304701150\n\n9119eefcd2b5ce845a680fa4ec4093ed733498f0\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304698702\n\n62a2a7cc33d3535638d220df238823eefcca930d\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304696461\n\n23848c8f64a5e81a239d6133378468185f1756dc\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304696192\n\n9514fa9e390a4c0715972c5b510cf4c10ad049a1\ndocs: change relative URLs to absolute URLs to fix broken links.\n\nPiperOrigin-RevId: 304695334\n\n0f7b1509a9a452808c3d07fe90fedfcea763d7d5\nfix: change config_schema_version to 2.0.0 for containeranalysis v1 gapic config.\n\ncommitter: @hzyi-google\nPiperOrigin-RevId: 304672648\n\n3d52f3c126fbfc31f067a7f54737b7f0dfbce163\nDialogflow weekly v2 library update:\n- Change `parent` field's resource_reference to specify child_type instead of type per client library generation requirement;\n- Change Session with its child resource pattern to support both projects/{project}/agent/sessions/{session} and projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session};\n- Fix `method_signature`\n- Regular documentation update\n\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 304635286\n\n4a6a01ce0ead505c245d11a2ce156de34800c58f\ndocs: change a relative URL to an absolute URL to fix broken links.\n\nPiperOrigin-RevId: 304633630\n\n1b969c28a6579265e89cd35e6c2ecacc89970e2d\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304620317\n\n5378173a889f9c7d83e36e52d38a6267190de692\nAdd v1beta2 SubmitJobAsOperation RPC to Dataproc.\n\nPiperOrigin-RevId: 304594381\n\n3d5d228a58bdf875e6147b228db3159010c735ee\nEnable visibility on the GetSnapshot and GetTopicSnapshots methods\n\nPiperOrigin-RevId: 304500143\n\n1346f5c11a0376bc82c5c03259b304de52671518\nRefresh public client library for Cloud Monitoring.\nIncrease default ListTimeSeries deadline to 90s.\n\nPiperOrigin-RevId: 304467075\n\n4a6cfccb4a32cb28db7366295d90078c6af3112f\ndocs: Fix link in monitoring summary description.\n\nPiperOrigin-RevId: 304438717\n\n6e2ea9a4b63a264090f1bd4b5b25766a3f634f3a\nfix: add interface name overrides back to logging gapic config.\n\ncommitter: @hzyi-google\nPiperOrigin-RevId: 304438432\n\n01f3ccbaa66cf3ae4e3b9fd140b1ecfbe54a3ed0\nFix: Add package/namespace options for C#, Ruby and PHP in remaining protos.\n\nPiperOrigin-RevId: 304416658\n\nb89abbf12cd3c086abddcd79adb0a653349f960a\nchore(google/maps): Rename nox.py to noxfile.py\n\nupstream wip fix here: https://github.com/googleapis/gapic-generator/pull/3156\n\nPiperOrigin-RevId: 304411146\n\nbbf26d7f11fae7789b13959bf100983c496c9807\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 304409906\n\n75047719f704d61f405cac6d7439637ab36c1232\nfix Dataproc: add missing `REQUIRED` annotation.\n\nPiperOrigin-RevId: 304305096\n\n7e1b880fd5d477176cf9b0bb9b137b9bea56e787\nAdd Ruby/PHP namespace options\n\nPiperOrigin-RevId: 304288402\n\naba342359b6743353195ca53f944fe71e6fb6cd4\nchore: add java assembly target for accesscontextmanager BUILD.bazel\n\nPiperOrigin-RevId: 304207684\n\ndc65f39f33cb139b3a2244199a3e722a4d94b679\nFor Secret Manager v1 and v1beta1, noted Secret ID character limitations.\n\nPiperOrigin-RevId: 304035052\n\n2ee8c4d06db823c29a127709e66c35e38b6e98ab\nchore(deps): Update gax-java dependency\nThis is to integrate java11 incompatibility fix\n\nPiperOrigin-RevId: 304032057\n\nb5c94cec71ea9b840dc0110a0275323313ecc85a\nchore: add java assembly target for orgpolicy BUILD.bazel\n\nPiperOrigin-RevId: 304021854\n\n690f4d6344197fde775230cec165a9db3b3929c7\nchore: use the latest protoc-java-resource-name-plugin in third_party/googleapis WORKSPACE.\n- trace up only one level when calculating parent types with singleton resource names\n\nPiperOrigin-RevId: 304007414\n\n87144228bd9920b824996355f27891310fad5a32\nEnable gapic v2 for DLP.\n\nCommitter: @hzyi-google\nPiperOrigin-RevId: 303999064\n\n17cfae00f2bb51cb1683f017da7e295a1b0f01a8\nAdd a new AuthorizationType for Data Source Definition.\n\nPiperOrigin-RevId: 303992863\n\n6da3d64919c006ef40cad2026f1e39084253afe2\nfix(google/maps): Change importpath to developers.google.com/maps/go.\n\nPiperOrigin-RevId: 303976942\n\n2983dccde54f0ce31793e1e628379616c468aea0\nbuild(google/maps): only modify root build.gradle with ext plugin\n\nPiperOrigin-RevId: 303975876\n\n00f0a285f2716ce57e98afe500e450b17b556ff8\nfix: Integerate gapic-generator java_gapic rules Java11 fix\n\nPiperOrigin-RevId: 303899179\n\na62857d26bd2ae15aec13a9244989e4104195b63\nfix: add proto_package to the artman config of dataproc v1beta2 to make artman smoketest pass.\n\nPiperOrigin-RevId: 303853989\n\nf260ba248df934fd4ddc22950fb529a59d79e0b5\nchore: use the latest gapic-generator in googleapis WORKSPACE.\n- PHP multi-pattern resource name support.\n- Trace up only one level when calculating parent types with singleton resource names\n\nPiperOrigin-RevId: 303836059\n\n89c7d455fffa5d8a7e73c2f4da43a74605ed72a6\nfeat: Add client library options to OsConfigService v1 patch APIs.\n\nPiperOrigin-RevId: 303831150\n\na45b0a2a8f6f497547ab531a4da978c76441d076\ndataproc: add back non-default retry parameters.\ncommitter: @hzyi-google\n\nPiperOrigin-RevId: 303830177\n\nad895ce95f1f6d2261fbbc3e8897958294e4f017\nenable gapic v2 for containeranalysis.\ncommitter: @hzyi-google\n\nPiperOrigin-RevId: 303821111\n\nbaf83e521834b67397839bcbe2d7864b49e38787\nAdding \"resource_reference\" annotations to services.\n\nPiperOrigin-RevId: 303791704\n\n7be2811ad17013a5ea24cd75dfd9e399dd6e18fe\nfix: Update gapic-generator version to pickup discogapic fixes\n\nPiperOrigin-RevId: 303545940\n\nb655808b3481a92f478ae2f828a6ce8220e40f32\ncloudasset: add org policy and access context manager protos to client libraries.\n\nPiperOrigin-RevId: 303527638\n\nd8c5da9a9471659b51d5862dd2ea7ad3c4bc49ef\nPopulate BAZEL.build files for AccessContextManager.\n\nPiperOrigin-RevId: 303526825\n\ncf9db7161cb9d4dbef06cd8bf5354ec485e51e2d\nPopulate BAZEL.build files for OrgPolicy.\n\nPiperOrigin-RevId: 303526702\n\n558b800ed594acc02555cc560fbb39c0e42bc438\nchore: turn on gapic v2 for Dataproc API.\nfix:\n- add missing method signatures\n- remove resource_reference not on a string field\n- adjust resource name pattern orders\n\nPiperOrigin-RevId: 303431167\n\n8eb444cf5ff63f68d826acbb37b2ac3da58655fb\nAdd logging protos for Recommender v1beta1.\n\nPiperOrigin-RevId: 303426030\n\n48a166ce9f6e2a88b10947341b37336fe9dd3478\nPush of PHP, C# and Ruby namespaces\n\nPiperOrigin-RevId: 303302813\n\n42f77489b300df2e27c84a7b65c4e8f04da20981\nThis is first release of the API protos and Bazel BUILD files for the Analytics Management API V1alpha.\n\nPiperOrigin-RevId: 303241805\n\n"
+        "sha": "027e9775e9d3a6f3eb197fb428727b7f17276e7b",
+        "internalRef": "315725809"
       }
     },
     {
       "git": {
         "name": "synthtool",
         "remote": "https://github.com/googleapis/synthtool.git",
-        "sha": "7f8e62aa3edd225f76347a16f92e400661fdfb52",
-        "log": "7f8e62aa3edd225f76347a16f92e400661fdfb52\nchore(java): release-please only updates non maven versions in README (#476)\n\nPrevent release-please and synthtool from fighting over the released library version. Synthtool updates the install snippets from the samples pom.xml files so the bots fight if they are temporarily out of sync after a release.\nc7e0e517d7f46f77bebd27da2e5afcaa6eee7e25\nbuild(java): fix nightly integration test config to run integrations (#465)\n\nThis was only running the units.\nbd69a2aa7b70875f3c988e269706b22fefbef40e\nbuild(java): fix retry_with_backoff when -e option set (#475)\n\n\nd9b173c427bfa0c6cca818233562e7e8841a357c\nfix: record version of working repo in synth.metadata (#473)\n\nPartial revert of b37cf74d12e9a42b9de9e61a4f26133d7cd9c168.\nf73a541770d95a609e5be6bf6b3b220d17cefcbe\nfeat(discogapic): allow local discovery-artifact-manager (#474)\n\n\n8cf0f5d93a70c3dcb0b4999d3152c46d4d9264bf\ndoc: describe the Autosynth & Synthtool protocol (#472)\n\n* doc: describe the Autosynth & Synthtool protocol\n\n* Accommodate review comments.\n980baaa738a1ad8fa02b4fdbd56be075ee77ece5\nfix: pin sphinx to <3.0.0 as new version causes new error (#471)\n\nThe error `toctree contains reference to document changlelog that doesn't have a title: no link will be generated` occurs as of 3.0.0. Pinning to 2.x until we address the docs build issue.\n\nTowards #470\n\nI did this manually for python-datastore https://github.com/googleapis/python-datastore/pull/22\n928b2998ac5023e7c7e254ab935f9ef022455aad\nchore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.15 (#466)\n\nCo-authored-by: Jeffrey Rennie \n188f1b1d53181f739b98f8aa5d40cfe99eb90c47\nfix: allow local and external deps to be specified (#469)\n\nModify noxfile.py to allow local and external dependencies for\nsystem tests to be specified.\n1df68ed6735ddce6797d0f83641a731c3c3f75b4\nfix: apache license URL (#468)\n\n\nf4a59efa54808c4b958263de87bc666ce41e415f\nfeat: Add discogapic support for GAPICBazel generation (#459)\n\n* feat: Add discogapic support for GAPICBazel generation\n\n* reformat with black\n\n* Rename source repository variable\n\nCo-authored-by: Jeffrey Rennie \n99820243d348191bc9c634f2b48ddf65096285ed\nfix: update template files for Node.js libraries (#463)\n\n\n3cbe6bcd5623139ac9834c43818424ddca5430cb\nfix(ruby): remove dead troubleshooting link from generated auth guide (#462)\n\n\na003d8655d3ebec2bbbd5fc3898e91e152265c67\ndocs: remove \"install stable\" instructions (#461)\n\nThe package hasn't been released to PyPI in some time\nf5e8c88d9870d8aa4eb43fa0b39f07e02bfbe4df\nchore(python): add license headers to config files; make small tweaks to templates (#458)\n\n\n"
+        "sha": "987270824bd26f6a8c716d5e2022057b8ae7b26e"
       }
     }
   ],
diff --git a/versions.txt b/versions.txt
index 5ca0e520b..de86c1962 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,10 +1,10 @@
 # Format:
 # module:released-version:current-version
 
-proto-google-cloud-securitycenter-v1:0.86.0:0.86.0
-proto-google-cloud-securitycenter-v1beta1:0.86.0:0.86.0
-proto-google-cloud-securitycenter-v1p1beta1:0.86.0:0.86.0
-grpc-google-cloud-securitycenter-v1:0.86.0:0.86.0
-grpc-google-cloud-securitycenter-v1beta1:0.86.0:0.86.0
-grpc-google-cloud-securitycenter-v1p1beta1:0.86.0:0.86.0
-google-cloud-securitycenter:0.121.0:0.121.0
\ No newline at end of file
+proto-google-cloud-securitycenter-v1:0.87.0:0.87.0
+proto-google-cloud-securitycenter-v1beta1:0.87.0:0.87.0
+proto-google-cloud-securitycenter-v1p1beta1:0.87.0:0.87.0
+grpc-google-cloud-securitycenter-v1:0.87.0:0.87.0
+grpc-google-cloud-securitycenter-v1beta1:0.87.0:0.87.0
+grpc-google-cloud-securitycenter-v1p1beta1:0.87.0:0.87.0
+google-cloud-securitycenter:0.122.0:0.122.0
\ No newline at end of file