From 4318be732f2c49ae18c0c940932170e7bab47dba Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 7 Jan 2022 18:48:13 +0000 Subject: [PATCH 01/20] chore: release 2.3.3-SNAPSHOT (#728) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-securitycenter-bom/pom.xml | 16 ++++++++-------- google-cloud-securitycenter/pom.xml | 4 ++-- grpc-google-cloud-securitycenter-v1/pom.xml | 4 ++-- grpc-google-cloud-securitycenter-v1beta1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-securitycenter-v1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- .../pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-securitycenter-bom/pom.xml b/google-cloud-securitycenter-bom/pom.xml index ad95a26cc..557aa78b9 100644 --- a/google-cloud-securitycenter-bom/pom.xml +++ b/google-cloud-securitycenter-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-bom - 2.3.2 + 2.3.3-SNAPSHOT pom com.google.cloud @@ -53,37 +53,37 @@ com.google.cloud google-cloud-securitycenter - 2.3.2 + 2.3.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.3.2 + 2.3.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.98.2 + 0.98.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.98.2 + 0.98.3-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.3.2 + 2.3.3-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.98.2 + 0.98.3-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.98.2 + 0.98.3-SNAPSHOT diff --git a/google-cloud-securitycenter/pom.xml b/google-cloud-securitycenter/pom.xml index 15c4c3908..473dc14c9 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 - 2.3.2 + 2.3.3-SNAPSHOT jar Google Cloud Security Command Center https://github.com/googleapis/java-securitycenter @@ -11,7 +11,7 @@ com.google.cloud google-cloud-securitycenter-parent - 2.3.2 + 2.3.3-SNAPSHOT google-cloud-securitycenter diff --git a/grpc-google-cloud-securitycenter-v1/pom.xml b/grpc-google-cloud-securitycenter-v1/pom.xml index da8b3ef40..2eb733f51 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 - 2.3.2 + 2.3.3-SNAPSHOT grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/grpc-google-cloud-securitycenter-v1beta1/pom.xml index 450afa9eb..f8805448f 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.98.2 + 0.98.3-SNAPSHOT grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml b/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml index 2450f2a9b..6febb2f7b 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.98.2 + 0.98.3-SNAPSHOT grpc-google-cloud-securitycenter-v1p1beta1 GRPC library for grpc-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0dde2ad53..54be87e3c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-parent pom - 2.3.2 + 2.3.3-SNAPSHOT Google Cloud Security Command Center Parent https://github.com/googleapis/java-securitycenter @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.3.2 + 2.3.3-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.98.2 + 0.98.3-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.98.2 + 0.98.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.3.2 + 2.3.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.98.2 + 0.98.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.98.2 + 0.98.3-SNAPSHOT com.google.cloud google-cloud-securitycenter - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/proto-google-cloud-securitycenter-v1/pom.xml b/proto-google-cloud-securitycenter-v1/pom.xml index bfcc8a969..85a4052d1 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 - 2.3.2 + 2.3.3-SNAPSHOT proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/proto-google-cloud-securitycenter-v1beta1/pom.xml b/proto-google-cloud-securitycenter-v1beta1/pom.xml index 3362b6a38..c04ecd223 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.98.2 + 0.98.3-SNAPSHOT proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/proto-google-cloud-securitycenter-v1p1beta1/pom.xml b/proto-google-cloud-securitycenter-v1p1beta1/pom.xml index dede1d3c7..6823ca3f3 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.98.2 + 0.98.3-SNAPSHOT proto-google-cloud-securitycenter-v1p1beta1 PROTO library for proto-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 89f48ceea..d87c3d1de 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-securitycenter:2.3.2:2.3.2 -grpc-google-cloud-securitycenter-v1:2.3.2:2.3.2 -grpc-google-cloud-securitycenter-v1beta1:0.98.2:0.98.2 -grpc-google-cloud-securitycenter-v1p1beta1:0.98.2:0.98.2 -proto-google-cloud-securitycenter-v1:2.3.2:2.3.2 -proto-google-cloud-securitycenter-v1beta1:0.98.2:0.98.2 -proto-google-cloud-securitycenter-v1p1beta1:0.98.2:0.98.2 +google-cloud-securitycenter:2.3.2:2.3.3-SNAPSHOT +grpc-google-cloud-securitycenter-v1:2.3.2:2.3.3-SNAPSHOT +grpc-google-cloud-securitycenter-v1beta1:0.98.2:0.98.3-SNAPSHOT +grpc-google-cloud-securitycenter-v1p1beta1:0.98.2:0.98.3-SNAPSHOT +proto-google-cloud-securitycenter-v1:2.3.2:2.3.3-SNAPSHOT +proto-google-cloud-securitycenter-v1beta1:0.98.2:0.98.3-SNAPSHOT +proto-google-cloud-securitycenter-v1p1beta1:0.98.2:0.98.3-SNAPSHOT From 20be77efaa6d2ef4aaac3f0b3d860ce6ffb4632a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 Jan 2022 19:20:14 +0000 Subject: [PATCH 02/20] chore(owlbot-java): disable re-writing clirr file in owlbot java post-processor (#1320) (#731) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/build.sh | 10 +++++----- README.md | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 3d2f82824..20c6ee3c3 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a4d7b2cfc6a9d6b378a6b2458740eae15fcab28854bd23dad3a15102d2e47c87 + digest: sha256:efbfc5e9ff713005a037941f8ebcc0c69cc630e3ad934675ee26868705a30897 diff --git a/.kokoro/build.sh b/.kokoro/build.sh index c36c9caf1..3861e4cc1 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -47,15 +47,15 @@ set +e case ${JOB_TYPE} in test) - mvn test -B -Dclirr.skip=true -Denforcer.skip=true + mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true RETURN_CODE=$? ;; lint) - mvn com.coveo:fmt-maven-plugin:check + mvn com.coveo:fmt-maven-plugin:check -B -ntp RETURN_CODE=$? ;; javadoc) - mvn javadoc:javadoc javadoc:test-javadoc + mvn javadoc:javadoc javadoc:test-javadoc -B -ntp RETURN_CODE=$? ;; integration) @@ -71,7 +71,7 @@ integration) ;; graalvm) # Run Unit and Integration Tests with Native Image - mvn -ntp -Pnative -Penable-integration-tests test + mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test RETURN_CODE=$? ;; samples) @@ -104,7 +104,7 @@ samples) fi ;; clirr) - mvn -B -Denforcer.skip=true clirr:check + mvn -B -ntp -Denforcer.skip=true clirr:check RETURN_CODE=$? ;; *) diff --git a/README.md b/README.md index 5248d2ce9..b11bfaefb 100644 --- a/README.md +++ b/README.md @@ -61,13 +61,13 @@ implementation 'com.google.cloud:google-cloud-securitycenter' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.3.1' +implementation 'com.google.cloud:google-cloud-securitycenter:2.3.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.3.1" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.3.2" ``` ## Authentication From eb1031f933c0c704752695722a6210646738fa15 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Mon, 10 Jan 2022 20:24:28 -0500 Subject: [PATCH 03/20] chore: change name to api_shortname in .repo-metadata.json (#732) --- .repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index 6daeec459..b6af05473 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,5 +1,5 @@ { - "name": "securitycenter", + "api_shortname": "securitycenter", "name_pretty": "Security Command Center", "product_documentation": "https://cloud.google.com/security-command-center", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-securitycenter/latest/history", From e329e8149f5f0b659880e04bc203d86fe6aeb741 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 11 Jan 2022 18:50:16 +0000 Subject: [PATCH 04/20] chore(java): update variable name to api_shortname in README template (#1323) (#733) --- .github/.OwlBot.lock.yaml | 2 +- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 20c6ee3c3..dddb13b84 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:efbfc5e9ff713005a037941f8ebcc0c69cc630e3ad934675ee26868705a30897 + digest: sha256:7f737996c88586c499f7b0c25294c760f9f5eec092289a0e08d2d3f42a069ebb diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 93c0f8858..8adfc50bc 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -21,7 +21,7 @@ If you are still having issues, please include as much information as possible: General, Core, and Other are also allowed as types 2. OS type and version: 3. Java version: -4. securitycenter version(s): +4. version(s): #### Steps to reproduce diff --git a/README.md b/README.md index b11bfaefb..071a5fd52 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.1.2') +implementation platform('com.google.cloud:libraries-bom:24.2.0') implementation 'com.google.cloud:google-cloud-securitycenter' ``` From 1b8987a2d487c08651bee08c2a6ce7b86a6c21a9 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 13 Jan 2022 17:48:21 -0500 Subject: [PATCH 05/20] chore: update release-level in .repo-metadata.json (#735) --- .repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index b6af05473..bad3321de 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -4,7 +4,7 @@ "product_documentation": "https://cloud.google.com/security-command-center", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-securitycenter/latest/history", "issue_tracker": "https://issuetracker.google.com/savedsearches/559748", - "release_level": "ga", + "release_level": "stable", "language": "java", "repo": "googleapis/java-securitycenter", "repo_short": "java-securitycenter", From 768e65298294e556249deb093d8c9d397c9c466f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 17 Jan 2022 19:20:23 +0100 Subject: [PATCH 06/20] chore(deps): update dependency com.google.cloud:google-cloud-securitycenter to v2.3.2 (#729) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-securitycenter](https://togithub.com/googleapis/java-securitycenter) | `2.3.1` -> `2.3.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-securitycenter/2.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-securitycenter/2.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-securitycenter/2.3.2/compatibility-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-securitycenter/2.3.2/confidence-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-securitycenter ### [`v2.3.2`](https://togithub.com/googleapis/java-securitycenter/blob/HEAD/CHANGELOG.md#​232-httpswwwgithubcomgoogleapisjava-securitycentercomparev231v232-2022-01-07) [Compare Source](https://togithub.com/googleapis/java-securitycenter/compare/v2.3.1...v2.3.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-securitycenter). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 071a5fd52..fae5db239 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter - 2.3.1 + 2.3.2 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 030a8dd2f..834b761cb 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-securitycenter - 2.3.1 + 2.3.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index cb34861d4..5840d7995 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-securitycenter - 2.3.1 + 2.3.2 From 8c12b45d08c510f62cab752caaf7b9fdcdbfb445 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 17 Jan 2022 21:06:25 +0000 Subject: [PATCH 07/20] chore(java): update release_type choices to stable and preview (#1331) (#736) --- .github/.OwlBot.lock.yaml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index dddb13b84..dcdda8c6d 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7f737996c88586c499f7b0c25294c760f9f5eec092289a0e08d2d3f42a069ebb + digest: sha256:9669c169d0582f13d6b2d319a43a78fc49f296a883aa48519bd0e5c7d34087c4 diff --git a/README.md b/README.md index fae5db239..94e7bc08c 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-securitycenter/java8-win.html [kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-securitycenter/java11.svg [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-securitycenter/java11.html -[stability-image]: https://img.shields.io/badge/stability-ga-green +[stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-securitycenter&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication From 7ecf201d1937fd3b61857e546f6c57f7c9fcc899 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Jan 2022 20:06:35 +0100 Subject: [PATCH 08/20] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.3.0 (#727) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.codehaus.mojo:build-helper-maven-plugin](http://www.mojohaus.org/build-helper-maven-plugin/) ([source](https://togithub.com/mojohaus/build-helper-maven-plugin)) | `3.2.0` -> `3.3.0` | [![age](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/compatibility-slim/3.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/confidence-slim/3.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-securitycenter). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 834b761cb..4283089c1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -65,7 +65,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 add-snippets-source diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5840d7995..5d33f55ac 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -64,7 +64,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 add-snippets-source From 2a0b4cda8fd1c489cd983db02e3452623e8c7e3c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 19 Jan 2022 00:16:24 +0100 Subject: [PATCH 09/20] deps: update dependency com.google.cloud:google-cloud-pubsub to v1.115.1 (#730) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.115.0` -> `1.115.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.1/compatibility-slim/1.115.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.1/confidence-slim/1.115.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-pubsub ### [`v1.115.1`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​11151-httpswwwgithubcomgoogleapisjava-pubsubcomparev11150v11151-2022-01-07) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.115.0...v1.115.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-securitycenter). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4283089c1..472e5cb11 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -36,7 +36,7 @@ com.google.cloud google-cloud-pubsub - 1.115.0 + 1.115.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5d33f55ac..dc096d707 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-pubsub - 1.115.0 + 1.115.1 From 171d4786b25cf8c3930aca2a57cb6a5a246abe72 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 20 Jan 2022 00:52:15 +0100 Subject: [PATCH 10/20] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.3 (#723) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.2` -> `1.2.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.3/compatibility-slim/1.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.3/confidence-slim/1.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​123-httpswwwgithubcomgoogleapisjava-shared-configcomparev122v123-2022-01-04) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.2...v1.2.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-securitycenter). --- google-cloud-securitycenter-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-securitycenter-bom/pom.xml b/google-cloud-securitycenter-bom/pom.xml index 557aa78b9..e7c19e1ab 100644 --- a/google-cloud-securitycenter-bom/pom.xml +++ b/google-cloud-securitycenter-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.2 + 1.2.3 Google Cloud Security Command Center BOM From 655389404d36458a49f3f5c7b601a3c77409588a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 20 Jan 2022 00:54:35 +0100 Subject: [PATCH 11/20] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.1 (#720) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.0` -> `24.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/compatibility-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/confidence-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-securitycenter). --- README.md | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94e7bc08c..277b3b95d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.1.0 + 24.1.1 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index c0c5fa478..5d47bc642 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.0 + 24.1.1 pom import From a4ea1ef9a999feefccfd311011816b0fdda785f7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 20 Jan 2022 02:23:55 +0100 Subject: [PATCH 12/20] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.5 (#738) --- google-cloud-securitycenter-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-securitycenter-bom/pom.xml b/google-cloud-securitycenter-bom/pom.xml index e7c19e1ab..5bee3547a 100644 --- a/google-cloud-securitycenter-bom/pom.xml +++ b/google-cloud-securitycenter-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.3 + 1.2.5 Google Cloud Security Command Center BOM diff --git a/pom.xml b/pom.xml index 54be87e3c..ea53af644 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.4 + 1.2.5 From 69e0a102a04223e3582babc13d8a7c58e5a2d776 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 20 Jan 2022 02:24:29 +0100 Subject: [PATCH 13/20] chore(deps): update dependency com.google.cloud:libraries-bom to v24.2.0 (#739) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v24.2.0 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- README.md | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 277b3b95d..736e30d01 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.1.1 + 24.2.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5d47bc642..2b65bb25b 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.1 + 24.2.0 pom import From 7ce5fd704f5b8dae95806a0620f762bbfdee3575 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 21 Jan 2022 21:32:31 +0100 Subject: [PATCH 14/20] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.6 (#740) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.5` -> `1.2.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/compatibility-slim/1.2.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/confidence-slim/1.2.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.6`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​126-httpsgithubcomgoogleapisjava-shared-configcomparev125v126-2022-01-19) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.5...v1.2.6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-securitycenter). --- google-cloud-securitycenter-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-securitycenter-bom/pom.xml b/google-cloud-securitycenter-bom/pom.xml index 5bee3547a..4aa9eec64 100644 --- a/google-cloud-securitycenter-bom/pom.xml +++ b/google-cloud-securitycenter-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.5 + 1.2.6 Google Cloud Security Command Center BOM diff --git a/pom.xml b/pom.xml index ea53af644..07e1edcea 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.5 + 1.2.6 From 3138f0c8f0369782decaed49164588862c855908 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 Jan 2022 00:08:23 +0100 Subject: [PATCH 15/20] deps: update actions/github-script action to v5 (#741) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/github-script](https://togithub.com/actions/github-script) | action | major | `v3` -> `v5` | --- ### Release Notes
actions/github-script ### [`v5`](https://togithub.com/actions/github-script/compare/v4...v5) [Compare Source](https://togithub.com/actions/github-script/compare/v4...v5) ### [`v4`](https://togithub.com/actions/github-script/compare/v3...v4) [Compare Source](https://togithub.com/actions/github-script/compare/v3...v4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-securitycenter). From b2c717e843f795ca7fd2b910ba55c5e74eb33b0e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Feb 2022 04:58:45 +0100 Subject: [PATCH 16/20] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 (#743) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.6.0` -> `2.7.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/compatibility-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/confidence-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.7.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​270-httpsgithubcomgoogleapisjava-shared-dependenciescomparev260v270-2022-01-28) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.6.0...v2.7.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.13.1 ([#​555](https://togithub.com/googleapis/java-shared-dependencies/issues/555)) ([67b5663](https://togithub.com/googleapis/java-shared-dependencies/commit/67b56635509215fd132b2ffbcaed995a6de93879)) - update dependency com.google.api-client:google-api-client-bom to v1.33.1 ([#​580](https://togithub.com/googleapis/java-shared-dependencies/issues/580)) ([895dba2](https://togithub.com/googleapis/java-shared-dependencies/commit/895dba2afef6c295b0e21a4ccd27feee1b6af8e2)) - update dependency com.google.api:api-common to v2.1.3 ([#​587](https://togithub.com/googleapis/java-shared-dependencies/issues/587)) ([5dbbce8](https://togithub.com/googleapis/java-shared-dependencies/commit/5dbbce80baa045818757912e6db4f222c12b75f6)) - update dependency com.google.auth:google-auth-library-bom to v1.4.0 ([#​578](https://togithub.com/googleapis/java-shared-dependencies/issues/578)) ([c274c62](https://togithub.com/googleapis/java-shared-dependencies/commit/c274c62905192bcc48c82104bf50cbeaa1894c2b)) - update dependency com.google.errorprone:error_prone_annotations to v2.11.0 ([#​582](https://togithub.com/googleapis/java-shared-dependencies/issues/582)) ([314da38](https://togithub.com/googleapis/java-shared-dependencies/commit/314da38c9f12cf425b5d1be8297e9f2a78d13948)) - update dependency com.google.http-client:google-http-client-bom to v1.41.2 ([#​579](https://togithub.com/googleapis/java-shared-dependencies/issues/579)) ([c8df06d](https://togithub.com/googleapis/java-shared-dependencies/commit/c8df06ddb3f4a975e928bbdd9dfae293e81efa39)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.0 ([#​576](https://togithub.com/googleapis/java-shared-dependencies/issues/576)) ([3315988](https://togithub.com/googleapis/java-shared-dependencies/commit/3315988059ca0223f078b0f760960674bfa8c04a)) - update dependency com.google.protobuf:protobuf-bom to v3.19.3 ([#​571](https://togithub.com/googleapis/java-shared-dependencies/issues/571)) ([c1931e1](https://togithub.com/googleapis/java-shared-dependencies/commit/c1931e1c4611ca3d1e2afac1c9e983cf1ec4a7de)) - update dependency io.grpc:grpc-bom to v1.44.0 ([#​586](https://togithub.com/googleapis/java-shared-dependencies/issues/586)) ([52c47b7](https://togithub.com/googleapis/java-shared-dependencies/commit/52c47b7425af438ba1a82dac87f9002353a6a87a)) - update dependency org.checkerframework:checker-qual to v3.21.1 ([#​554](https://togithub.com/googleapis/java-shared-dependencies/issues/554)) ([81bbb91](https://togithub.com/googleapis/java-shared-dependencies/commit/81bbb91774ab67161371bfd0dfd143de89dee4c9)) - update gax.version to v2.11.0 ([#​581](https://togithub.com/googleapis/java-shared-dependencies/issues/581)) ([1899612](https://togithub.com/googleapis/java-shared-dependencies/commit/189961226f84cdd4e283780d2c7d4a4dffc3e00c)) - update gax.version to v2.9.0 ([#​573](https://togithub.com/googleapis/java-shared-dependencies/issues/573)) ([ee5e38e](https://togithub.com/googleapis/java-shared-dependencies/commit/ee5e38efea574eeb2b5803192da98ba1ce1c8e6e)) - update google.common-protos.version to v2.7.2 ([#​588](https://togithub.com/googleapis/java-shared-dependencies/issues/588)) ([caac0e6](https://togithub.com/googleapis/java-shared-dependencies/commit/caac0e68e336b801becb6322b5b81fce1824ad8a)) - update google.core.version to v2.4.0 ([#​589](https://togithub.com/googleapis/java-shared-dependencies/issues/589)) ([6a292e3](https://togithub.com/googleapis/java-shared-dependencies/commit/6a292e3530a06d6b228f3154ed4e979ef68d7aeb)) - update iam.version to v1.2.1 ([#​569](https://togithub.com/googleapis/java-shared-dependencies/issues/569)) ([62dd270](https://togithub.com/googleapis/java-shared-dependencies/commit/62dd2705b257c4bb539bfe619234f38d0e13b138)) - update opencensus.version to v0.30.0 ([#​552](https://togithub.com/googleapis/java-shared-dependencies/issues/552)) ([ebae62e](https://togithub.com/googleapis/java-shared-dependencies/commit/ebae62eca75234db4fd571f42b8ed0f6ce1bd1f7)) - update opencensus.version to v0.31.0 ([#​585](https://togithub.com/googleapis/java-shared-dependencies/issues/585)) ([021b066](https://togithub.com/googleapis/java-shared-dependencies/commit/021b066a833af1629c89fcca593d16b9786ee0bf))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-securitycenter). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 07e1edcea..1457215db 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.6.0 + 2.7.0 pom import From 7361505b7fd4021daf33a7472458c17c97ed6c2e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 2 Feb 2022 04:56:33 +0000 Subject: [PATCH 17/20] deps(java): update actions/github-script action to v5 (#1339) (#742) --- .github/.OwlBot.lock.yaml | 15 ++++++++++++++- .github/workflows/approve-readme.yaml | 2 +- .github/workflows/auto-release.yaml | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index dcdda8c6d..be3b9bde4 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,16 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:9669c169d0582f13d6b2d319a43a78fc49f296a883aa48519bd0e5c7d34087c4 + digest: sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index 7513acaeb..c51324279 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v3 + - uses: actions/github-script@v5 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 9b4fd4d83..59c7cadde 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v3 + - uses: actions/github-script@v5 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true From 2837db2e222cbd455bb54ff51eb9bae9051fc0e7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 19:54:42 +0000 Subject: [PATCH 18/20] chore: add kokoro config to run nightly integration test on java11.0.14 (#1347) (#745) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/nightly/java11-integration.cfg | 37 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .kokoro/nightly/java11-integration.cfg diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index be3b9bde4..8807efcad 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 + digest: sha256:7c853edc4136ae8f19f9d46d4569d38de2e446db2eea057f32e412bdba255846 diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg new file mode 100644 index 000000000..58049cc38 --- /dev/null +++ b/.kokoro/nightly/java11-integration.cfg @@ -0,0 +1,37 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-public-resources/java11014" +} + +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_FLAKYBOT" + value: "true" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} From 94f600dd9b5adf1990c6ba8789e391700a7ca4ad Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 20:02:48 +0000 Subject: [PATCH 19/20] feat: Release the access field in the v1 finding proto, which represents an access event tied to the finding (#744) - [ ] Regenerate this pull request now. docs: added more clarification around what event_time means on a v1 finding PiperOrigin-RevId: 425659764 Source-Link: https://github.com/googleapis/googleapis/commit/fa6793b316b97519fa9ea21960233096421710c5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/254190611d11e7f0d271222cf64487de9ffbd5d9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjU0MTkwNjExZDExZTdmMGQyNzEyMjJjZjY0NDg3ZGU5ZmZiZDVkOSJ9 --- .../v1/SecurityCenterClientTest.java | 7 + .../cloud/securitycenter/v1/Access.java | 1642 +++++++++++++++++ .../securitycenter/v1/AccessOrBuilder.java | 189 ++ .../cloud/securitycenter/v1/AccessProto.java | 94 + .../cloud/securitycenter/v1/Finding.java | 421 ++++- .../securitycenter/v1/FindingOrBuilder.java | 71 +- .../securitycenter/v1/FindingOuterClass.java | 127 +- .../cloud/securitycenter/v1/Geolocation.java | 634 +++++++ .../v1/GeolocationOrBuilder.java | 50 + .../v1/SecuritycenterService.java | 36 +- .../v1/UpdateSecurityMarksRequest.java | 36 +- .../UpdateSecurityMarksRequestOrBuilder.java | 9 +- .../cloud/securitycenter/v1/access.proto | 56 + .../cloud/securitycenter/v1/finding.proto | 18 +- .../v1/securitycenter_service.proto | 61 +- 15 files changed, 3246 insertions(+), 205 deletions(-) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java create mode 100644 proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto 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 eacc92718..160593bc2 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 @@ -298,6 +298,7 @@ public void createFindingTest() throws Exception { .setVulnerability(Vulnerability.newBuilder().build()) .setMuteUpdateTime(Timestamp.newBuilder().build()) .putAllExternalSystems(new HashMap()) + .setAccess(Access.newBuilder().build()) .setMuteInitiator("muteInitiator1395645462") .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -359,6 +360,7 @@ public void createFindingTest2() throws Exception { .setVulnerability(Vulnerability.newBuilder().build()) .setMuteUpdateTime(Timestamp.newBuilder().build()) .putAllExternalSystems(new HashMap()) + .setAccess(Access.newBuilder().build()) .setMuteInitiator("muteInitiator1395645462") .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2423,6 +2425,7 @@ public void setFindingStateTest() throws Exception { .setVulnerability(Vulnerability.newBuilder().build()) .setMuteUpdateTime(Timestamp.newBuilder().build()) .putAllExternalSystems(new HashMap()) + .setAccess(Access.newBuilder().build()) .setMuteInitiator("muteInitiator1395645462") .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2486,6 +2489,7 @@ public void setFindingStateTest2() throws Exception { .setVulnerability(Vulnerability.newBuilder().build()) .setMuteUpdateTime(Timestamp.newBuilder().build()) .putAllExternalSystems(new HashMap()) + .setAccess(Access.newBuilder().build()) .setMuteInitiator("muteInitiator1395645462") .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2547,6 +2551,7 @@ public void setMuteTest() throws Exception { .setVulnerability(Vulnerability.newBuilder().build()) .setMuteUpdateTime(Timestamp.newBuilder().build()) .putAllExternalSystems(new HashMap()) + .setAccess(Access.newBuilder().build()) .setMuteInitiator("muteInitiator1395645462") .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2607,6 +2612,7 @@ public void setMuteTest2() throws Exception { .setVulnerability(Vulnerability.newBuilder().build()) .setMuteUpdateTime(Timestamp.newBuilder().build()) .putAllExternalSystems(new HashMap()) + .setAccess(Access.newBuilder().build()) .setMuteInitiator("muteInitiator1395645462") .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2875,6 +2881,7 @@ public void updateFindingTest() throws Exception { .setVulnerability(Vulnerability.newBuilder().build()) .setMuteUpdateTime(Timestamp.newBuilder().build()) .putAllExternalSystems(new HashMap()) + .setAccess(Access.newBuilder().build()) .setMuteInitiator("muteInitiator1395645462") .build(); mockSecurityCenter.addResponse(expectedResponse); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java new file mode 100644 index 000000000..acc2ea887 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java @@ -0,0 +1,1642 @@ +/* + * 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/access.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Represents an access event.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Access} + */ +public final class Access extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Access) + AccessOrBuilder { + private static final long serialVersionUID = 0L; + // Use Access.newBuilder() to construct. + private Access(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Access() { + principalEmail_ = ""; + callerIp_ = ""; + userAgentFamily_ = ""; + serviceName_ = ""; + methodName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Access(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Access( + 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(); + + principalEmail_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + callerIp_ = s; + break; + } + case 26: + { + com.google.cloud.securitycenter.v1.Geolocation.Builder subBuilder = null; + if (callerIpGeo_ != null) { + subBuilder = callerIpGeo_.toBuilder(); + } + callerIpGeo_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Geolocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(callerIpGeo_); + callerIpGeo_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + userAgentFamily_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + serviceName_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + methodName_ = 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.AccessProto + .internal_static_google_cloud_securitycenter_v1_Access_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Access.class, + com.google.cloud.securitycenter.v1.Access.Builder.class); + } + + public static final int PRINCIPAL_EMAIL_FIELD_NUMBER = 1; + private volatile java.lang.Object principalEmail_; + /** + * + * + *
+   * Associated email, such as "foo@google.com".
+   * 
+ * + * string principal_email = 1; + * + * @return The principalEmail. + */ + @java.lang.Override + public java.lang.String getPrincipalEmail() { + java.lang.Object ref = principalEmail_; + 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(); + principalEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Associated email, such as "foo@google.com".
+   * 
+ * + * string principal_email = 1; + * + * @return The bytes for principalEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrincipalEmailBytes() { + java.lang.Object ref = principalEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + principalEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CALLER_IP_FIELD_NUMBER = 2; + private volatile java.lang.Object callerIp_; + /** + * + * + *
+   * Caller's IP address, such as "1.1.1.1".
+   * 
+ * + * string caller_ip = 2; + * + * @return The callerIp. + */ + @java.lang.Override + public java.lang.String getCallerIp() { + java.lang.Object ref = callerIp_; + 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(); + callerIp_ = s; + return s; + } + } + /** + * + * + *
+   * Caller's IP address, such as "1.1.1.1".
+   * 
+ * + * string caller_ip = 2; + * + * @return The bytes for callerIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCallerIpBytes() { + java.lang.Object ref = callerIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + callerIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CALLER_IP_GEO_FIELD_NUMBER = 3; + private com.google.cloud.securitycenter.v1.Geolocation callerIpGeo_; + /** + * + * + *
+   * The caller IP's geolocation, which identifies where the call came from.
+   * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + * + * @return Whether the callerIpGeo field is set. + */ + @java.lang.Override + public boolean hasCallerIpGeo() { + return callerIpGeo_ != null; + } + /** + * + * + *
+   * The caller IP's geolocation, which identifies where the call came from.
+   * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + * + * @return The callerIpGeo. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.Geolocation getCallerIpGeo() { + return callerIpGeo_ == null + ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() + : callerIpGeo_; + } + /** + * + * + *
+   * The caller IP's geolocation, which identifies where the call came from.
+   * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrBuilder() { + return getCallerIpGeo(); + } + + public static final int USER_AGENT_FAMILY_FIELD_NUMBER = 4; + private volatile java.lang.Object userAgentFamily_; + /** + * + * + *
+   * What kind of user agent is associated, e.g. operating system shells,
+   * embedded or stand-alone applications, etc.
+   * 
+ * + * string user_agent_family = 4; + * + * @return The userAgentFamily. + */ + @java.lang.Override + public java.lang.String getUserAgentFamily() { + java.lang.Object ref = userAgentFamily_; + 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(); + userAgentFamily_ = s; + return s; + } + } + /** + * + * + *
+   * What kind of user agent is associated, e.g. operating system shells,
+   * embedded or stand-alone applications, etc.
+   * 
+ * + * string user_agent_family = 4; + * + * @return The bytes for userAgentFamily. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserAgentFamilyBytes() { + java.lang.Object ref = userAgentFamily_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userAgentFamily_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object serviceName_; + /** + * + * + *
+   * This is the API service that the service account made a call to, e.g.
+   * "iam.googleapis.com"
+   * 
+ * + * string service_name = 5; + * + * @return The serviceName. + */ + @java.lang.Override + public java.lang.String getServiceName() { + java.lang.Object ref = serviceName_; + 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(); + serviceName_ = s; + return s; + } + } + /** + * + * + *
+   * This is the API service that the service account made a call to, e.g.
+   * "iam.googleapis.com"
+   * 
+ * + * string service_name = 5; + * + * @return The bytes for serviceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceNameBytes() { + java.lang.Object ref = serviceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METHOD_NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object methodName_; + /** + * + * + *
+   * The method that the service account called, e.g. "SetIamPolicy".
+   * 
+ * + * string method_name = 6; + * + * @return The methodName. + */ + @java.lang.Override + public java.lang.String getMethodName() { + java.lang.Object ref = methodName_; + 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(); + methodName_ = s; + return s; + } + } + /** + * + * + *
+   * The method that the service account called, e.g. "SetIamPolicy".
+   * 
+ * + * string method_name = 6; + * + * @return The bytes for methodName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMethodNameBytes() { + java.lang.Object ref = methodName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + methodName_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(principalEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principalEmail_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, callerIp_); + } + if (callerIpGeo_ != null) { + output.writeMessage(3, getCallerIpGeo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgentFamily_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userAgentFamily_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(methodName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, methodName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(principalEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principalEmail_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, callerIp_); + } + if (callerIpGeo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCallerIpGeo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgentFamily_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userAgentFamily_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(methodName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, methodName_); + } + 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.Access)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.Access other = + (com.google.cloud.securitycenter.v1.Access) obj; + + if (!getPrincipalEmail().equals(other.getPrincipalEmail())) return false; + if (!getCallerIp().equals(other.getCallerIp())) return false; + if (hasCallerIpGeo() != other.hasCallerIpGeo()) return false; + if (hasCallerIpGeo()) { + if (!getCallerIpGeo().equals(other.getCallerIpGeo())) return false; + } + if (!getUserAgentFamily().equals(other.getUserAgentFamily())) return false; + if (!getServiceName().equals(other.getServiceName())) return false; + if (!getMethodName().equals(other.getMethodName())) 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) + PRINCIPAL_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipalEmail().hashCode(); + hash = (37 * hash) + CALLER_IP_FIELD_NUMBER; + hash = (53 * hash) + getCallerIp().hashCode(); + if (hasCallerIpGeo()) { + hash = (37 * hash) + CALLER_IP_GEO_FIELD_NUMBER; + hash = (53 * hash) + getCallerIpGeo().hashCode(); + } + hash = (37 * hash) + USER_AGENT_FAMILY_FIELD_NUMBER; + hash = (53 * hash) + getUserAgentFamily().hashCode(); + hash = (37 * hash) + SERVICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getServiceName().hashCode(); + hash = (37 * hash) + METHOD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMethodName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.Access parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Access 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.Access parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Access 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.Access parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Access 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.Access parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Access 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.Access parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Access 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.Access 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.Access 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.Access 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; + } + /** + * + * + *
+   * Represents an access event.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Access} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Access) + com.google.cloud.securitycenter.v1.AccessOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Access_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Access.class, + com.google.cloud.securitycenter.v1.Access.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.Access.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(); + principalEmail_ = ""; + + callerIp_ = ""; + + if (callerIpGeoBuilder_ == null) { + callerIpGeo_ = null; + } else { + callerIpGeo_ = null; + callerIpGeoBuilder_ = null; + } + userAgentFamily_ = ""; + + serviceName_ = ""; + + methodName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Access_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Access getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.Access.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Access build() { + com.google.cloud.securitycenter.v1.Access result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Access buildPartial() { + com.google.cloud.securitycenter.v1.Access result = + new com.google.cloud.securitycenter.v1.Access(this); + result.principalEmail_ = principalEmail_; + result.callerIp_ = callerIp_; + if (callerIpGeoBuilder_ == null) { + result.callerIpGeo_ = callerIpGeo_; + } else { + result.callerIpGeo_ = callerIpGeoBuilder_.build(); + } + result.userAgentFamily_ = userAgentFamily_; + result.serviceName_ = serviceName_; + result.methodName_ = methodName_; + 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.Access) { + return mergeFrom((com.google.cloud.securitycenter.v1.Access) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.Access other) { + if (other == com.google.cloud.securitycenter.v1.Access.getDefaultInstance()) return this; + if (!other.getPrincipalEmail().isEmpty()) { + principalEmail_ = other.principalEmail_; + onChanged(); + } + if (!other.getCallerIp().isEmpty()) { + callerIp_ = other.callerIp_; + onChanged(); + } + if (other.hasCallerIpGeo()) { + mergeCallerIpGeo(other.getCallerIpGeo()); + } + if (!other.getUserAgentFamily().isEmpty()) { + userAgentFamily_ = other.userAgentFamily_; + onChanged(); + } + if (!other.getServiceName().isEmpty()) { + serviceName_ = other.serviceName_; + onChanged(); + } + if (!other.getMethodName().isEmpty()) { + methodName_ = other.methodName_; + 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.Access parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.securitycenter.v1.Access) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object principalEmail_ = ""; + /** + * + * + *
+     * Associated email, such as "foo@google.com".
+     * 
+ * + * string principal_email = 1; + * + * @return The principalEmail. + */ + public java.lang.String getPrincipalEmail() { + java.lang.Object ref = principalEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principalEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Associated email, such as "foo@google.com".
+     * 
+ * + * string principal_email = 1; + * + * @return The bytes for principalEmail. + */ + public com.google.protobuf.ByteString getPrincipalEmailBytes() { + java.lang.Object ref = principalEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + principalEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Associated email, such as "foo@google.com".
+     * 
+ * + * string principal_email = 1; + * + * @param value The principalEmail to set. + * @return This builder for chaining. + */ + public Builder setPrincipalEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principalEmail_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Associated email, such as "foo@google.com".
+     * 
+ * + * string principal_email = 1; + * + * @return This builder for chaining. + */ + public Builder clearPrincipalEmail() { + + principalEmail_ = getDefaultInstance().getPrincipalEmail(); + onChanged(); + return this; + } + /** + * + * + *
+     * Associated email, such as "foo@google.com".
+     * 
+ * + * string principal_email = 1; + * + * @param value The bytes for principalEmail to set. + * @return This builder for chaining. + */ + public Builder setPrincipalEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principalEmail_ = value; + onChanged(); + return this; + } + + private java.lang.Object callerIp_ = ""; + /** + * + * + *
+     * Caller's IP address, such as "1.1.1.1".
+     * 
+ * + * string caller_ip = 2; + * + * @return The callerIp. + */ + public java.lang.String getCallerIp() { + java.lang.Object ref = callerIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + callerIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Caller's IP address, such as "1.1.1.1".
+     * 
+ * + * string caller_ip = 2; + * + * @return The bytes for callerIp. + */ + public com.google.protobuf.ByteString getCallerIpBytes() { + java.lang.Object ref = callerIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + callerIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Caller's IP address, such as "1.1.1.1".
+     * 
+ * + * string caller_ip = 2; + * + * @param value The callerIp to set. + * @return This builder for chaining. + */ + public Builder setCallerIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + callerIp_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Caller's IP address, such as "1.1.1.1".
+     * 
+ * + * string caller_ip = 2; + * + * @return This builder for chaining. + */ + public Builder clearCallerIp() { + + callerIp_ = getDefaultInstance().getCallerIp(); + onChanged(); + return this; + } + /** + * + * + *
+     * Caller's IP address, such as "1.1.1.1".
+     * 
+ * + * string caller_ip = 2; + * + * @param value The bytes for callerIp to set. + * @return This builder for chaining. + */ + public Builder setCallerIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + callerIp_ = value; + onChanged(); + return this; + } + + private com.google.cloud.securitycenter.v1.Geolocation callerIpGeo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Geolocation, + com.google.cloud.securitycenter.v1.Geolocation.Builder, + com.google.cloud.securitycenter.v1.GeolocationOrBuilder> + callerIpGeoBuilder_; + /** + * + * + *
+     * The caller IP's geolocation, which identifies where the call came from.
+     * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + * + * @return Whether the callerIpGeo field is set. + */ + public boolean hasCallerIpGeo() { + return callerIpGeoBuilder_ != null || callerIpGeo_ != null; + } + /** + * + * + *
+     * The caller IP's geolocation, which identifies where the call came from.
+     * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + * + * @return The callerIpGeo. + */ + public com.google.cloud.securitycenter.v1.Geolocation getCallerIpGeo() { + if (callerIpGeoBuilder_ == null) { + return callerIpGeo_ == null + ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() + : callerIpGeo_; + } else { + return callerIpGeoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The caller IP's geolocation, which identifies where the call came from.
+     * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + */ + public Builder setCallerIpGeo(com.google.cloud.securitycenter.v1.Geolocation value) { + if (callerIpGeoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + callerIpGeo_ = value; + onChanged(); + } else { + callerIpGeoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The caller IP's geolocation, which identifies where the call came from.
+     * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + */ + public Builder setCallerIpGeo( + com.google.cloud.securitycenter.v1.Geolocation.Builder builderForValue) { + if (callerIpGeoBuilder_ == null) { + callerIpGeo_ = builderForValue.build(); + onChanged(); + } else { + callerIpGeoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The caller IP's geolocation, which identifies where the call came from.
+     * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + */ + public Builder mergeCallerIpGeo(com.google.cloud.securitycenter.v1.Geolocation value) { + if (callerIpGeoBuilder_ == null) { + if (callerIpGeo_ != null) { + callerIpGeo_ = + com.google.cloud.securitycenter.v1.Geolocation.newBuilder(callerIpGeo_) + .mergeFrom(value) + .buildPartial(); + } else { + callerIpGeo_ = value; + } + onChanged(); + } else { + callerIpGeoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The caller IP's geolocation, which identifies where the call came from.
+     * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + */ + public Builder clearCallerIpGeo() { + if (callerIpGeoBuilder_ == null) { + callerIpGeo_ = null; + onChanged(); + } else { + callerIpGeo_ = null; + callerIpGeoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The caller IP's geolocation, which identifies where the call came from.
+     * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + */ + public com.google.cloud.securitycenter.v1.Geolocation.Builder getCallerIpGeoBuilder() { + + onChanged(); + return getCallerIpGeoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The caller IP's geolocation, which identifies where the call came from.
+     * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + */ + public com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrBuilder() { + if (callerIpGeoBuilder_ != null) { + return callerIpGeoBuilder_.getMessageOrBuilder(); + } else { + return callerIpGeo_ == null + ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() + : callerIpGeo_; + } + } + /** + * + * + *
+     * The caller IP's geolocation, which identifies where the call came from.
+     * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Geolocation, + com.google.cloud.securitycenter.v1.Geolocation.Builder, + com.google.cloud.securitycenter.v1.GeolocationOrBuilder> + getCallerIpGeoFieldBuilder() { + if (callerIpGeoBuilder_ == null) { + callerIpGeoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Geolocation, + com.google.cloud.securitycenter.v1.Geolocation.Builder, + com.google.cloud.securitycenter.v1.GeolocationOrBuilder>( + getCallerIpGeo(), getParentForChildren(), isClean()); + callerIpGeo_ = null; + } + return callerIpGeoBuilder_; + } + + private java.lang.Object userAgentFamily_ = ""; + /** + * + * + *
+     * What kind of user agent is associated, e.g. operating system shells,
+     * embedded or stand-alone applications, etc.
+     * 
+ * + * string user_agent_family = 4; + * + * @return The userAgentFamily. + */ + public java.lang.String getUserAgentFamily() { + java.lang.Object ref = userAgentFamily_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userAgentFamily_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * What kind of user agent is associated, e.g. operating system shells,
+     * embedded or stand-alone applications, etc.
+     * 
+ * + * string user_agent_family = 4; + * + * @return The bytes for userAgentFamily. + */ + public com.google.protobuf.ByteString getUserAgentFamilyBytes() { + java.lang.Object ref = userAgentFamily_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userAgentFamily_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * What kind of user agent is associated, e.g. operating system shells,
+     * embedded or stand-alone applications, etc.
+     * 
+ * + * string user_agent_family = 4; + * + * @param value The userAgentFamily to set. + * @return This builder for chaining. + */ + public Builder setUserAgentFamily(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userAgentFamily_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * What kind of user agent is associated, e.g. operating system shells,
+     * embedded or stand-alone applications, etc.
+     * 
+ * + * string user_agent_family = 4; + * + * @return This builder for chaining. + */ + public Builder clearUserAgentFamily() { + + userAgentFamily_ = getDefaultInstance().getUserAgentFamily(); + onChanged(); + return this; + } + /** + * + * + *
+     * What kind of user agent is associated, e.g. operating system shells,
+     * embedded or stand-alone applications, etc.
+     * 
+ * + * string user_agent_family = 4; + * + * @param value The bytes for userAgentFamily to set. + * @return This builder for chaining. + */ + public Builder setUserAgentFamilyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userAgentFamily_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceName_ = ""; + /** + * + * + *
+     * This is the API service that the service account made a call to, e.g.
+     * "iam.googleapis.com"
+     * 
+ * + * string service_name = 5; + * + * @return The serviceName. + */ + public java.lang.String getServiceName() { + java.lang.Object ref = serviceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This is the API service that the service account made a call to, e.g.
+     * "iam.googleapis.com"
+     * 
+ * + * string service_name = 5; + * + * @return The bytes for serviceName. + */ + public com.google.protobuf.ByteString getServiceNameBytes() { + java.lang.Object ref = serviceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This is the API service that the service account made a call to, e.g.
+     * "iam.googleapis.com"
+     * 
+ * + * string service_name = 5; + * + * @param value The serviceName to set. + * @return This builder for chaining. + */ + public Builder setServiceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This is the API service that the service account made a call to, e.g.
+     * "iam.googleapis.com"
+     * 
+ * + * string service_name = 5; + * + * @return This builder for chaining. + */ + public Builder clearServiceName() { + + serviceName_ = getDefaultInstance().getServiceName(); + onChanged(); + return this; + } + /** + * + * + *
+     * This is the API service that the service account made a call to, e.g.
+     * "iam.googleapis.com"
+     * 
+ * + * string service_name = 5; + * + * @param value The bytes for serviceName to set. + * @return This builder for chaining. + */ + public Builder setServiceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceName_ = value; + onChanged(); + return this; + } + + private java.lang.Object methodName_ = ""; + /** + * + * + *
+     * The method that the service account called, e.g. "SetIamPolicy".
+     * 
+ * + * string method_name = 6; + * + * @return The methodName. + */ + public java.lang.String getMethodName() { + java.lang.Object ref = methodName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + methodName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The method that the service account called, e.g. "SetIamPolicy".
+     * 
+ * + * string method_name = 6; + * + * @return The bytes for methodName. + */ + public com.google.protobuf.ByteString getMethodNameBytes() { + java.lang.Object ref = methodName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + methodName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The method that the service account called, e.g. "SetIamPolicy".
+     * 
+ * + * string method_name = 6; + * + * @param value The methodName to set. + * @return This builder for chaining. + */ + public Builder setMethodName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + methodName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The method that the service account called, e.g. "SetIamPolicy".
+     * 
+ * + * string method_name = 6; + * + * @return This builder for chaining. + */ + public Builder clearMethodName() { + + methodName_ = getDefaultInstance().getMethodName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The method that the service account called, e.g. "SetIamPolicy".
+     * 
+ * + * string method_name = 6; + * + * @param value The bytes for methodName to set. + * @return This builder for chaining. + */ + public Builder setMethodNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + methodName_ = 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.Access) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Access) + private static final com.google.cloud.securitycenter.v1.Access DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Access(); + } + + public static com.google.cloud.securitycenter.v1.Access getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Access parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Access(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.Access getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java new file mode 100644 index 000000000..d30c7599c --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java @@ -0,0 +1,189 @@ +/* + * 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/access.proto + +package com.google.cloud.securitycenter.v1; + +public interface AccessOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Access) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Associated email, such as "foo@google.com".
+   * 
+ * + * string principal_email = 1; + * + * @return The principalEmail. + */ + java.lang.String getPrincipalEmail(); + /** + * + * + *
+   * Associated email, such as "foo@google.com".
+   * 
+ * + * string principal_email = 1; + * + * @return The bytes for principalEmail. + */ + com.google.protobuf.ByteString getPrincipalEmailBytes(); + + /** + * + * + *
+   * Caller's IP address, such as "1.1.1.1".
+   * 
+ * + * string caller_ip = 2; + * + * @return The callerIp. + */ + java.lang.String getCallerIp(); + /** + * + * + *
+   * Caller's IP address, such as "1.1.1.1".
+   * 
+ * + * string caller_ip = 2; + * + * @return The bytes for callerIp. + */ + com.google.protobuf.ByteString getCallerIpBytes(); + + /** + * + * + *
+   * The caller IP's geolocation, which identifies where the call came from.
+   * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + * + * @return Whether the callerIpGeo field is set. + */ + boolean hasCallerIpGeo(); + /** + * + * + *
+   * The caller IP's geolocation, which identifies where the call came from.
+   * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + * + * @return The callerIpGeo. + */ + com.google.cloud.securitycenter.v1.Geolocation getCallerIpGeo(); + /** + * + * + *
+   * The caller IP's geolocation, which identifies where the call came from.
+   * 
+ * + * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + */ + com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrBuilder(); + + /** + * + * + *
+   * What kind of user agent is associated, e.g. operating system shells,
+   * embedded or stand-alone applications, etc.
+   * 
+ * + * string user_agent_family = 4; + * + * @return The userAgentFamily. + */ + java.lang.String getUserAgentFamily(); + /** + * + * + *
+   * What kind of user agent is associated, e.g. operating system shells,
+   * embedded or stand-alone applications, etc.
+   * 
+ * + * string user_agent_family = 4; + * + * @return The bytes for userAgentFamily. + */ + com.google.protobuf.ByteString getUserAgentFamilyBytes(); + + /** + * + * + *
+   * This is the API service that the service account made a call to, e.g.
+   * "iam.googleapis.com"
+   * 
+ * + * string service_name = 5; + * + * @return The serviceName. + */ + java.lang.String getServiceName(); + /** + * + * + *
+   * This is the API service that the service account made a call to, e.g.
+   * "iam.googleapis.com"
+   * 
+ * + * string service_name = 5; + * + * @return The bytes for serviceName. + */ + com.google.protobuf.ByteString getServiceNameBytes(); + + /** + * + * + *
+   * The method that the service account called, e.g. "SetIamPolicy".
+   * 
+ * + * string method_name = 6; + * + * @return The methodName. + */ + java.lang.String getMethodName(); + /** + * + * + *
+   * The method that the service account called, e.g. "SetIamPolicy".
+   * 
+ * + * string method_name = 6; + * + * @return The bytes for methodName. + */ + com.google.protobuf.ByteString getMethodNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java new file mode 100644 index 000000000..825e49cab --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java @@ -0,0 +1,94 @@ +/* + * 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/access.proto + +package com.google.cloud.securitycenter.v1; + +public final class AccessProto { + private AccessProto() {} + + 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_Access_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Geolocation_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/access." + + "proto\022\036google.cloud.securitycenter.v1\032\034g" + + "oogle/api/annotations.proto\"\276\001\n\006Access\022\027" + + "\n\017principal_email\030\001 \001(\t\022\021\n\tcaller_ip\030\002 \001" + + "(\t\022B\n\rcaller_ip_geo\030\003 \001(\0132+.google.cloud" + + ".securitycenter.v1.Geolocation\022\031\n\021user_a" + + "gent_family\030\004 \001(\t\022\024\n\014service_name\030\005 \001(\t\022" + + "\023\n\013method_name\030\006 \001(\t\"\"\n\013Geolocation\022\023\n\013r" + + "egion_code\030\001 \001(\tB\347\001\n\"com.google.cloud.se" + + "curitycenter.v1B\013AccessProtoP\001ZLgoogle.g" + + "olang.org/genproto/googleapis/cloud/secu" + + "ritycenter/v1;securitycenter\252\002\036Google.Cl" + + "oud.SecurityCenter.V1\312\002\036Google\\Cloud\\Sec" + + "urityCenter\\V1\352\002!Google::Cloud::Security" + + "Center::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_Access_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Access_descriptor, + new java.lang.String[] { + "PrincipalEmail", + "CallerIp", + "CallerIpGeo", + "UserAgentFamily", + "ServiceName", + "MethodName", + }); + internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor, + new java.lang.String[] { + "RegionCode", + }); + 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/Finding.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java index 7f578034c..17d53e2ff 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 @@ -286,6 +286,22 @@ private Finding( .put(externalSystems__.getKey(), externalSystems__.getValue()); break; } + case 210: + { + com.google.cloud.securitycenter.v1.Access.Builder subBuilder = null; + if (access_ != null) { + subBuilder = access_.toBuilder(); + } + access_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Access.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(access_); + access_ = subBuilder.buildPartial(); + } + + break; + } case 226: { java.lang.String s = input.readStringRequireUtf8(); @@ -1655,11 +1671,12 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * * *
-   * The time at which the event took place, or when an update to the finding
-   * occurred. For example, if the finding represents an open firewall it would
-   * capture the time the detector believes the firewall became open. The
-   * accuracy is determined by the detector. If the finding were to be resolved
-   * afterward, this time would reflect when the finding was resolved. Must not
+   * The time the finding was first detected. If an existing finding is updated,
+   * then this is the time the update occurred.
+   * For example, if the finding represents an open firewall, this property
+   * captures the time the detector believes the firewall became open. The
+   * accuracy is determined by the detector. If the finding is later resolved,
+   * then this time reflects when the finding was resolved. This must not
    * be set to a value greater than the current timestamp.
    * 
* @@ -1675,11 +1692,12 @@ public boolean hasEventTime() { * * *
-   * The time at which the event took place, or when an update to the finding
-   * occurred. For example, if the finding represents an open firewall it would
-   * capture the time the detector believes the firewall became open. The
-   * accuracy is determined by the detector. If the finding were to be resolved
-   * afterward, this time would reflect when the finding was resolved. Must not
+   * The time the finding was first detected. If an existing finding is updated,
+   * then this is the time the update occurred.
+   * For example, if the finding represents an open firewall, this property
+   * captures the time the detector believes the firewall became open. The
+   * accuracy is determined by the detector. If the finding is later resolved,
+   * then this time reflects when the finding was resolved. This must not
    * be set to a value greater than the current timestamp.
    * 
* @@ -1695,11 +1713,12 @@ public com.google.protobuf.Timestamp getEventTime() { * * *
-   * The time at which the event took place, or when an update to the finding
-   * occurred. For example, if the finding represents an open firewall it would
-   * capture the time the detector believes the firewall became open. The
-   * accuracy is determined by the detector. If the finding were to be resolved
-   * afterward, this time would reflect when the finding was resolved. Must not
+   * The time the finding was first detected. If an existing finding is updated,
+   * then this is the time the update occurred.
+   * For example, if the finding represents an open firewall, this property
+   * captures the time the detector believes the firewall became open. The
+   * accuracy is determined by the detector. If the finding is later resolved,
+   * then this time reflects when the finding was resolved. This must not
    * be set to a value greater than the current timestamp.
    * 
* @@ -2224,6 +2243,57 @@ public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThr return map.get(key); } + public static final int ACCESS_FIELD_NUMBER = 26; + private com.google.cloud.securitycenter.v1.Access access_; + /** + * + * + *
+   * Access details associated to the Finding, such as more information on the
+   * caller, which method was accessed, from where, etc.
+   * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + * + * @return Whether the access field is set. + */ + @java.lang.Override + public boolean hasAccess() { + return access_ != null; + } + /** + * + * + *
+   * Access details associated to the Finding, such as more information on the
+   * caller, which method was accessed, from where, etc.
+   * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + * + * @return The access. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.Access getAccess() { + return access_ == null + ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance() + : access_; + } + /** + * + * + *
+   * Access details associated to the Finding, such as more information on the
+   * caller, which method was accessed, from where, etc.
+   * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.AccessOrBuilder getAccessOrBuilder() { + return getAccess(); + } + public static final int MUTE_INITIATOR_FIELD_NUMBER = 28; private volatile java.lang.Object muteInitiator_; /** @@ -2346,6 +2416,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetExternalSystems(), ExternalSystemsDefaultEntryHolder.defaultEntry, 22); + if (access_ != null) { + output.writeMessage(26, getAccess()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(muteInitiator_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 28, muteInitiator_); } @@ -2431,6 +2504,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, externalSystems__); } + if (access_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getAccess()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(muteInitiator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, muteInitiator_); } @@ -2486,6 +2562,10 @@ public boolean equals(final java.lang.Object obj) { if (!getMuteUpdateTime().equals(other.getMuteUpdateTime())) return false; } if (!internalGetExternalSystems().equals(other.internalGetExternalSystems())) return false; + if (hasAccess() != other.hasAccess()) return false; + if (hasAccess()) { + if (!getAccess().equals(other.getAccess())) return false; + } if (!getMuteInitiator().equals(other.getMuteInitiator())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2550,6 +2630,10 @@ public int hashCode() { hash = (37 * hash) + EXTERNAL_SYSTEMS_FIELD_NUMBER; hash = (53 * hash) + internalGetExternalSystems().hashCode(); } + if (hasAccess()) { + hash = (37 * hash) + ACCESS_FIELD_NUMBER; + hash = (53 * hash) + getAccess().hashCode(); + } hash = (37 * hash) + MUTE_INITIATOR_FIELD_NUMBER; hash = (53 * hash) + getMuteInitiator().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -2784,6 +2868,12 @@ public Builder clear() { muteUpdateTimeBuilder_ = null; } internalGetMutableExternalSystems().clear(); + if (accessBuilder_ == null) { + access_ = null; + } else { + access_ = null; + accessBuilder_ = null; + } muteInitiator_ = ""; return this; @@ -2858,6 +2948,11 @@ public com.google.cloud.securitycenter.v1.Finding buildPartial() { } result.externalSystems_ = internalGetExternalSystems(); result.externalSystems_.makeImmutable(); + if (accessBuilder_ == null) { + result.access_ = access_; + } else { + result.access_ = accessBuilder_.build(); + } result.muteInitiator_ = muteInitiator_; onBuilt(); return result; @@ -2964,6 +3059,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { mergeMuteUpdateTime(other.getMuteUpdateTime()); } internalGetMutableExternalSystems().mergeFrom(other.internalGetExternalSystems()); + if (other.hasAccess()) { + mergeAccess(other.getAccess()); + } if (!other.getMuteInitiator().isEmpty()) { muteInitiator_ = other.muteInitiator_; onChanged(); @@ -4120,11 +4218,12 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark * * *
-     * The time at which the event took place, or when an update to the finding
-     * occurred. For example, if the finding represents an open firewall it would
-     * capture the time the detector believes the firewall became open. The
-     * accuracy is determined by the detector. If the finding were to be resolved
-     * afterward, this time would reflect when the finding was resolved. Must not
+     * The time the finding was first detected. If an existing finding is updated,
+     * then this is the time the update occurred.
+     * For example, if the finding represents an open firewall, this property
+     * captures the time the detector believes the firewall became open. The
+     * accuracy is determined by the detector. If the finding is later resolved,
+     * then this time reflects when the finding was resolved. This must not
      * be set to a value greater than the current timestamp.
      * 
* @@ -4139,11 +4238,12 @@ public boolean hasEventTime() { * * *
-     * The time at which the event took place, or when an update to the finding
-     * occurred. For example, if the finding represents an open firewall it would
-     * capture the time the detector believes the firewall became open. The
-     * accuracy is determined by the detector. If the finding were to be resolved
-     * afterward, this time would reflect when the finding was resolved. Must not
+     * The time the finding was first detected. If an existing finding is updated,
+     * then this is the time the update occurred.
+     * For example, if the finding represents an open firewall, this property
+     * captures the time the detector believes the firewall became open. The
+     * accuracy is determined by the detector. If the finding is later resolved,
+     * then this time reflects when the finding was resolved. This must not
      * be set to a value greater than the current timestamp.
      * 
* @@ -4162,11 +4262,12 @@ public com.google.protobuf.Timestamp getEventTime() { * * *
-     * The time at which the event took place, or when an update to the finding
-     * occurred. For example, if the finding represents an open firewall it would
-     * capture the time the detector believes the firewall became open. The
-     * accuracy is determined by the detector. If the finding were to be resolved
-     * afterward, this time would reflect when the finding was resolved. Must not
+     * The time the finding was first detected. If an existing finding is updated,
+     * then this is the time the update occurred.
+     * For example, if the finding represents an open firewall, this property
+     * captures the time the detector believes the firewall became open. The
+     * accuracy is determined by the detector. If the finding is later resolved,
+     * then this time reflects when the finding was resolved. This must not
      * be set to a value greater than the current timestamp.
      * 
* @@ -4189,11 +4290,12 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the event took place, or when an update to the finding
-     * occurred. For example, if the finding represents an open firewall it would
-     * capture the time the detector believes the firewall became open. The
-     * accuracy is determined by the detector. If the finding were to be resolved
-     * afterward, this time would reflect when the finding was resolved. Must not
+     * The time the finding was first detected. If an existing finding is updated,
+     * then this is the time the update occurred.
+     * For example, if the finding represents an open firewall, this property
+     * captures the time the detector believes the firewall became open. The
+     * accuracy is determined by the detector. If the finding is later resolved,
+     * then this time reflects when the finding was resolved. This must not
      * be set to a value greater than the current timestamp.
      * 
* @@ -4213,11 +4315,12 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu * * *
-     * The time at which the event took place, or when an update to the finding
-     * occurred. For example, if the finding represents an open firewall it would
-     * capture the time the detector believes the firewall became open. The
-     * accuracy is determined by the detector. If the finding were to be resolved
-     * afterward, this time would reflect when the finding was resolved. Must not
+     * The time the finding was first detected. If an existing finding is updated,
+     * then this is the time the update occurred.
+     * For example, if the finding represents an open firewall, this property
+     * captures the time the detector believes the firewall became open. The
+     * accuracy is determined by the detector. If the finding is later resolved,
+     * then this time reflects when the finding was resolved. This must not
      * be set to a value greater than the current timestamp.
      * 
* @@ -4242,11 +4345,12 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which the event took place, or when an update to the finding
-     * occurred. For example, if the finding represents an open firewall it would
-     * capture the time the detector believes the firewall became open. The
-     * accuracy is determined by the detector. If the finding were to be resolved
-     * afterward, this time would reflect when the finding was resolved. Must not
+     * The time the finding was first detected. If an existing finding is updated,
+     * then this is the time the update occurred.
+     * For example, if the finding represents an open firewall, this property
+     * captures the time the detector believes the firewall became open. The
+     * accuracy is determined by the detector. If the finding is later resolved,
+     * then this time reflects when the finding was resolved. This must not
      * be set to a value greater than the current timestamp.
      * 
* @@ -4267,11 +4371,12 @@ public Builder clearEventTime() { * * *
-     * The time at which the event took place, or when an update to the finding
-     * occurred. For example, if the finding represents an open firewall it would
-     * capture the time the detector believes the firewall became open. The
-     * accuracy is determined by the detector. If the finding were to be resolved
-     * afterward, this time would reflect when the finding was resolved. Must not
+     * The time the finding was first detected. If an existing finding is updated,
+     * then this is the time the update occurred.
+     * For example, if the finding represents an open firewall, this property
+     * captures the time the detector believes the firewall became open. The
+     * accuracy is determined by the detector. If the finding is later resolved,
+     * then this time reflects when the finding was resolved. This must not
      * be set to a value greater than the current timestamp.
      * 
* @@ -4286,11 +4391,12 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { * * *
-     * The time at which the event took place, or when an update to the finding
-     * occurred. For example, if the finding represents an open firewall it would
-     * capture the time the detector believes the firewall became open. The
-     * accuracy is determined by the detector. If the finding were to be resolved
-     * afterward, this time would reflect when the finding was resolved. Must not
+     * The time the finding was first detected. If an existing finding is updated,
+     * then this is the time the update occurred.
+     * For example, if the finding represents an open firewall, this property
+     * captures the time the detector believes the firewall became open. The
+     * accuracy is determined by the detector. If the finding is later resolved,
+     * then this time reflects when the finding was resolved. This must not
      * be set to a value greater than the current timestamp.
      * 
* @@ -4307,11 +4413,12 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * * *
-     * The time at which the event took place, or when an update to the finding
-     * occurred. For example, if the finding represents an open firewall it would
-     * capture the time the detector believes the firewall became open. The
-     * accuracy is determined by the detector. If the finding were to be resolved
-     * afterward, this time would reflect when the finding was resolved. Must not
+     * The time the finding was first detected. If an existing finding is updated,
+     * then this is the time the update occurred.
+     * For example, if the finding represents an open firewall, this property
+     * captures the time the detector believes the firewall became open. The
+     * accuracy is determined by the detector. If the finding is later resolved,
+     * then this time reflects when the finding was resolved. This must not
      * be set to a value greater than the current timestamp.
      * 
* @@ -5758,6 +5865,200 @@ public Builder putAllExternalSystems( return this; } + private com.google.cloud.securitycenter.v1.Access access_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Access, + com.google.cloud.securitycenter.v1.Access.Builder, + com.google.cloud.securitycenter.v1.AccessOrBuilder> + accessBuilder_; + /** + * + * + *
+     * Access details associated to the Finding, such as more information on the
+     * caller, which method was accessed, from where, etc.
+     * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + * + * @return Whether the access field is set. + */ + public boolean hasAccess() { + return accessBuilder_ != null || access_ != null; + } + /** + * + * + *
+     * Access details associated to the Finding, such as more information on the
+     * caller, which method was accessed, from where, etc.
+     * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + * + * @return The access. + */ + public com.google.cloud.securitycenter.v1.Access getAccess() { + if (accessBuilder_ == null) { + return access_ == null + ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance() + : access_; + } else { + return accessBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Access details associated to the Finding, such as more information on the
+     * caller, which method was accessed, from where, etc.
+     * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + */ + public Builder setAccess(com.google.cloud.securitycenter.v1.Access value) { + if (accessBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + access_ = value; + onChanged(); + } else { + accessBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Access details associated to the Finding, such as more information on the
+     * caller, which method was accessed, from where, etc.
+     * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + */ + public Builder setAccess(com.google.cloud.securitycenter.v1.Access.Builder builderForValue) { + if (accessBuilder_ == null) { + access_ = builderForValue.build(); + onChanged(); + } else { + accessBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Access details associated to the Finding, such as more information on the
+     * caller, which method was accessed, from where, etc.
+     * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + */ + public Builder mergeAccess(com.google.cloud.securitycenter.v1.Access value) { + if (accessBuilder_ == null) { + if (access_ != null) { + access_ = + com.google.cloud.securitycenter.v1.Access.newBuilder(access_) + .mergeFrom(value) + .buildPartial(); + } else { + access_ = value; + } + onChanged(); + } else { + accessBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Access details associated to the Finding, such as more information on the
+     * caller, which method was accessed, from where, etc.
+     * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + */ + public Builder clearAccess() { + if (accessBuilder_ == null) { + access_ = null; + onChanged(); + } else { + access_ = null; + accessBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Access details associated to the Finding, such as more information on the
+     * caller, which method was accessed, from where, etc.
+     * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + */ + public com.google.cloud.securitycenter.v1.Access.Builder getAccessBuilder() { + + onChanged(); + return getAccessFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Access details associated to the Finding, such as more information on the
+     * caller, which method was accessed, from where, etc.
+     * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + */ + public com.google.cloud.securitycenter.v1.AccessOrBuilder getAccessOrBuilder() { + if (accessBuilder_ != null) { + return accessBuilder_.getMessageOrBuilder(); + } else { + return access_ == null + ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance() + : access_; + } + } + /** + * + * + *
+     * Access details associated to the Finding, such as more information on the
+     * caller, which method was accessed, from where, etc.
+     * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Access, + com.google.cloud.securitycenter.v1.Access.Builder, + com.google.cloud.securitycenter.v1.AccessOrBuilder> + getAccessFieldBuilder() { + if (accessBuilder_ == null) { + accessBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Access, + com.google.cloud.securitycenter.v1.Access.Builder, + com.google.cloud.securitycenter.v1.AccessOrBuilder>( + getAccess(), getParentForChildren(), isClean()); + access_ = null; + } + return accessBuilder_; + } + private java.lang.Object muteInitiator_ = ""; /** * 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 6fa251540..206f463c0 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 @@ -326,11 +326,12 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * The time at which the event took place, or when an update to the finding
-   * occurred. For example, if the finding represents an open firewall it would
-   * capture the time the detector believes the firewall became open. The
-   * accuracy is determined by the detector. If the finding were to be resolved
-   * afterward, this time would reflect when the finding was resolved. Must not
+   * The time the finding was first detected. If an existing finding is updated,
+   * then this is the time the update occurred.
+   * For example, if the finding represents an open firewall, this property
+   * captures the time the detector believes the firewall became open. The
+   * accuracy is determined by the detector. If the finding is later resolved,
+   * then this time reflects when the finding was resolved. This must not
    * be set to a value greater than the current timestamp.
    * 
* @@ -343,11 +344,12 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * The time at which the event took place, or when an update to the finding
-   * occurred. For example, if the finding represents an open firewall it would
-   * capture the time the detector believes the firewall became open. The
-   * accuracy is determined by the detector. If the finding were to be resolved
-   * afterward, this time would reflect when the finding was resolved. Must not
+   * The time the finding was first detected. If an existing finding is updated,
+   * then this is the time the update occurred.
+   * For example, if the finding represents an open firewall, this property
+   * captures the time the detector believes the firewall became open. The
+   * accuracy is determined by the detector. If the finding is later resolved,
+   * then this time reflects when the finding was resolved. This must not
    * be set to a value greater than the current timestamp.
    * 
* @@ -360,11 +362,12 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * The time at which the event took place, or when an update to the finding
-   * occurred. For example, if the finding represents an open firewall it would
-   * capture the time the detector believes the firewall became open. The
-   * accuracy is determined by the detector. If the finding were to be resolved
-   * afterward, this time would reflect when the finding was resolved. Must not
+   * The time the finding was first detected. If an existing finding is updated,
+   * then this is the time the update occurred.
+   * For example, if the finding represents an open firewall, this property
+   * captures the time the detector believes the firewall became open. The
+   * accuracy is determined by the detector. If the finding is later resolved,
+   * then this time reflects when the finding was resolved. This must not
    * be set to a value greater than the current timestamp.
    * 
* @@ -722,6 +725,44 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( */ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow(java.lang.String key); + /** + * + * + *
+   * Access details associated to the Finding, such as more information on the
+   * caller, which method was accessed, from where, etc.
+   * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + * + * @return Whether the access field is set. + */ + boolean hasAccess(); + /** + * + * + *
+   * Access details associated to the Finding, such as more information on the
+   * caller, which method was accessed, from where, etc.
+   * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + * + * @return The access. + */ + com.google.cloud.securitycenter.v1.Access getAccess(); + /** + * + * + *
+   * Access details associated to the Finding, such as more information on the
+   * caller, which method was accessed, from where, etc.
+   * 
+ * + * .google.cloud.securitycenter.v1.Access access = 26; + */ + com.google.cloud.securitycenter.v1.AccessOrBuilder getAccessOrBuilder(); + /** * * diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java index bb9e4b374..0ff3e0d8a 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java @@ -49,79 +49,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n,google/cloud/securitycenter/v1/finding" - + ".proto\022\036google.cloud.securitycenter.v1\032\037" - + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\0324google/cloud/securit" - + "ycenter/v1/external_system.proto\032.google" - + "/cloud/securitycenter/v1/indicator.proto" - + "\0323google/cloud/securitycenter/v1/securit" - + "y_marks.proto\0322google/cloud/securitycent" - + "er/v1/vulnerability.proto\032\034google/protob" - + "uf/struct.proto\032\037google/protobuf/timesta" - + "mp.proto\032\034google/api/annotations.proto\"\242" - + "\r\n\007Finding\022\014\n\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t" - + "\022\025\n\rresource_name\030\003 \001(\t\022<\n\005state\030\004 \001(\0162-" - + ".google.cloud.securitycenter.v1.Finding." - + "State\022\020\n\010category\030\005 \001(\t\022\024\n\014external_uri\030" - + "\006 \001(\t\022X\n\021source_properties\030\007 \003(\0132=.googl" - + "e.cloud.securitycenter.v1.Finding.Source" - + "PropertiesEntry\022J\n\016security_marks\030\010 \001(\0132" - + "-.google.cloud.securitycenter.v1.Securit" - + "yMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132\032.google" - + ".protobuf.Timestamp\022/\n\013create_time\030\n \001(\013" - + "2\032.google.protobuf.Timestamp\022B\n\010severity" - + "\030\014 \001(\01620.google.cloud.securitycenter.v1." - + "Finding.Severity\022\026\n\016canonical_name\030\016 \001(\t" - + "\022:\n\004mute\030\017 \001(\0162,.google.cloud.securityce" - + "nter.v1.Finding.Mute\022K\n\rfinding_class\030\021 " - + "\001(\01624.google.cloud.securitycenter.v1.Fin" - + "ding.FindingClass\022<\n\tindicator\030\022 \001(\0132).g" - + "oogle.cloud.securitycenter.v1.Indicator\022" - + "D\n\rvulnerability\030\024 \001(\0132-.google.cloud.se" - + "curitycenter.v1.Vulnerability\0229\n\020mute_up" - + "date_time\030\025 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022[\n\020external_systems\030\026 \003(\0132<.goo" - + "gle.cloud.securitycenter.v1.Finding.Exte" - + "rnalSystemsEntryB\003\340A\003\022\026\n\016mute_initiator\030" - + "\034 \001(\t\032O\n\025SourcePropertiesEntry\022\013\n\003key\030\001 " - + "\001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Val" - + "ue:\0028\001\032f\n\024ExternalSystemsEntry\022\013\n\003key\030\001 " - + "\001(\t\022=\n\005value\030\002 \001(\0132..google.cloud.securi" - + "tycenter.v1.ExternalSystem:\0028\001\"8\n\005State\022" - + "\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010IN" - + "ACTIVE\020\002\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECI" - + "FIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM" - + "\020\003\022\007\n\003LOW\020\004\"C\n\004Mute\022\024\n\020MUTE_UNSPECIFIED\020" - + "\000\022\t\n\005MUTED\020\001\022\013\n\007UNMUTED\020\002\022\r\n\tUNDEFINED\020\004" - + "\"s\n\014FindingClass\022\035\n\031FINDING_CLASS_UNSPEC" - + "IFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY\020\002\022\024" - + "\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERVATION\020\004:\333\001" - + "\352A\327\001\n%securitycenter.googleapis.com/Find" - + "ing\022@organizations/{organization}/source" - + "s/{source}/findings/{finding}\0224folders/{" - + "folder}/sources/{source}/findings/{findi" - + "ng}\0226projects/{project}/sources/{source}" - + "/findings/{finding}B\332\001\n\"com.google.cloud" - + ".securitycenter.v1P\001ZLgoogle.golang.org/" - + "genproto/googleapis/cloud/securitycenter" - + "/v1;securitycenter\252\002\036Google.Cloud.Securi" - + "tyCenter.V1\312\002\036Google\\Cloud\\SecurityCente" - + "r\\V1\352\002!Google::Cloud::SecurityCenter::V1" - + "b\006proto3" + + ".proto\022\036google.cloud.securitycenter.v1\032\034" + + "google/api/annotations.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032+google/cloud/securitycenter/v1" + + "/access.proto\0324google/cloud/securitycent" + + "er/v1/external_system.proto\032.google/clou" + + "d/securitycenter/v1/indicator.proto\0323goo" + + "gle/cloud/securitycenter/v1/security_mar" + + "ks.proto\0322google/cloud/securitycenter/v1" + + "/vulnerability.proto\032\034google/protobuf/st" + + "ruct.proto\032\037google/protobuf/timestamp.pr" + + "oto\"\332\r\n\007Finding\022\014\n\004name\030\001 \001(\t\022\016\n\006parent\030" + + "\002 \001(\t\022\025\n\rresource_name\030\003 \001(\t\022<\n\005state\030\004 " + + "\001(\0162-.google.cloud.securitycenter.v1.Fin" + + "ding.State\022\020\n\010category\030\005 \001(\t\022\024\n\014external" + + "_uri\030\006 \001(\t\022X\n\021source_properties\030\007 \003(\0132=." + + "google.cloud.securitycenter.v1.Finding.S" + + "ourcePropertiesEntry\022J\n\016security_marks\030\010" + + " \001(\0132-.google.cloud.securitycenter.v1.Se" + + "curityMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022/\n\013create_time\030" + + "\n \001(\0132\032.google.protobuf.Timestamp\022B\n\010sev" + + "erity\030\014 \001(\01620.google.cloud.securitycente" + + "r.v1.Finding.Severity\022\026\n\016canonical_name\030" + + "\016 \001(\t\022:\n\004mute\030\017 \001(\0162,.google.cloud.secur" + + "itycenter.v1.Finding.Mute\022K\n\rfinding_cla" + + "ss\030\021 \001(\01624.google.cloud.securitycenter.v" + + "1.Finding.FindingClass\022<\n\tindicator\030\022 \001(" + + "\0132).google.cloud.securitycenter.v1.Indic" + + "ator\022D\n\rvulnerability\030\024 \001(\0132-.google.clo" + + "ud.securitycenter.v1.Vulnerability\0229\n\020mu" + + "te_update_time\030\025 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022[\n\020external_systems\030\026 \003(\0132" + + "<.google.cloud.securitycenter.v1.Finding" + + ".ExternalSystemsEntryB\003\340A\003\0226\n\006access\030\032 \001" + + "(\0132&.google.cloud.securitycenter.v1.Acce" + + "ss\022\026\n\016mute_initiator\030\034 \001(\t\032O\n\025SourceProp" + + "ertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132" + + "\026.google.protobuf.Value:\0028\001\032f\n\024ExternalS" + + "ystemsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132" + + "..google.cloud.securitycenter.v1.Externa" + + "lSystem:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010Severit" + + "y\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020" + + "\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"C\n\004Mute" + + "\022\024\n\020MUTE_UNSPECIFIED\020\000\022\t\n\005MUTED\020\001\022\013\n\007UNM" + + "UTED\020\002\022\r\n\tUNDEFINED\020\004\"s\n\014FindingClass\022\035\n" + + "\031FINDING_CLASS_UNSPECIFIED\020\000\022\n\n\006THREAT\020\001" + + "\022\021\n\rVULNERABILITY\020\002\022\024\n\020MISCONFIGURATION\020" + + "\003\022\017\n\013OBSERVATION\020\004:\333\001\352A\327\001\n%securitycente" + + "r.googleapis.com/Finding\022@organizations/" + + "{organization}/sources/{source}/findings" + + "/{finding}\0224folders/{folder}/sources/{so" + + "urce}/findings/{finding}\0226projects/{proj" + + "ect}/sources/{source}/findings/{finding}" + + "B\332\001\n\"com.google.cloud.securitycenter.v1P" + + "\001ZLgoogle.golang.org/genproto/googleapis" + + "/cloud/securitycenter/v1;securitycenter\252" + + "\002\036Google.Cloud.SecurityCenter.V1\312\002\036Googl" + + "e\\Cloud\\SecurityCenter\\V1\352\002!Google::Clou" + + "d::SecurityCenter::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.AccessProto.getDescriptor(), com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(), com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(), com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_securitycenter_v1_Finding_descriptor = getDescriptor().getMessageTypes().get(0); @@ -147,6 +150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Vulnerability", "MuteUpdateTime", "ExternalSystems", + "Access", "MuteInitiator", }); internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor = @@ -171,15 +175,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1.AccessProto.getDescriptor(); com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(); com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(); com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - 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/Geolocation.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java new file mode 100644 index 000000000..b2b8d5d1d --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java @@ -0,0 +1,634 @@ +/* + * 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/access.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Represents a geographical location for a given access.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Geolocation} + */ +public final class Geolocation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Geolocation) + GeolocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Geolocation.newBuilder() to construct. + private Geolocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Geolocation() { + regionCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Geolocation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Geolocation( + 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(); + + regionCode_ = 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.AccessProto + .internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Geolocation.class, + com.google.cloud.securitycenter.v1.Geolocation.Builder.class); + } + + public static final int REGION_CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object regionCode_; + /** + * + * + *
+   * A CLDR.
+   * 
+ * + * string region_code = 1; + * + * @return The regionCode. + */ + @java.lang.Override + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + 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(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
+   * A CLDR.
+   * 
+ * + * string region_code = 1; + * + * @return The bytes for regionCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regionCode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, regionCode_); + } + 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.Geolocation)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.Geolocation other = + (com.google.cloud.securitycenter.v1.Geolocation) obj; + + if (!getRegionCode().equals(other.getRegionCode())) 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) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.Geolocation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Geolocation 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.Geolocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Geolocation 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.Geolocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.Geolocation 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.Geolocation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Geolocation 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.Geolocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.Geolocation 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.Geolocation 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.Geolocation 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.Geolocation 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; + } + /** + * + * + *
+   * Represents a geographical location for a given access.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.Geolocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Geolocation) + com.google.cloud.securitycenter.v1.GeolocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.Geolocation.class, + com.google.cloud.securitycenter.v1.Geolocation.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.Geolocation.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(); + regionCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Geolocation getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Geolocation build() { + com.google.cloud.securitycenter.v1.Geolocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.Geolocation buildPartial() { + com.google.cloud.securitycenter.v1.Geolocation result = + new com.google.cloud.securitycenter.v1.Geolocation(this); + result.regionCode_ = regionCode_; + 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.Geolocation) { + return mergeFrom((com.google.cloud.securitycenter.v1.Geolocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.Geolocation other) { + if (other == com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance()) return this; + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + 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.Geolocation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.securitycenter.v1.Geolocation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
+     * A CLDR.
+     * 
+ * + * string region_code = 1; + * + * @return The regionCode. + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A CLDR.
+     * 
+ * + * string region_code = 1; + * + * @return The bytes for regionCode. + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A CLDR.
+     * 
+ * + * string region_code = 1; + * + * @param value The regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regionCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A CLDR.
+     * 
+ * + * string region_code = 1; + * + * @return This builder for chaining. + */ + public Builder clearRegionCode() { + + regionCode_ = getDefaultInstance().getRegionCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * A CLDR.
+     * 
+ * + * string region_code = 1; + * + * @param value The bytes for regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regionCode_ = 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.Geolocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Geolocation) + private static final com.google.cloud.securitycenter.v1.Geolocation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Geolocation(); + } + + public static com.google.cloud.securitycenter.v1.Geolocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Geolocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Geolocation(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.Geolocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java new file mode 100644 index 000000000..4a8e58cad --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/access.proto + +package com.google.cloud.securitycenter.v1; + +public interface GeolocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Geolocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A CLDR.
+   * 
+ * + * string region_code = 1; + * + * @return The regionCode. + */ + java.lang.String getRegionCode(); + /** + * + * + *
+   * A CLDR.
+   * 
+ * + * string region_code = 1; + * + * @return The bytes for regionCode. + */ + com.google.protobuf.ByteString getRegionCodeBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java index aa4d5d849..81444fbb8 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java @@ -202,20 +202,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n;google/cloud/securitycenter/v1/securit" + "ycenter_service.proto\022\036google.cloud.secu" - + "ritycenter.v1\032Agoogle/cloud/securitycent" - + "er/v1/run_asset_discovery_response.proto" - + "\032\034google/api/annotations.proto\032\027google/a" - + "pi/client.proto\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032*goo" - + "gle/cloud/securitycenter/v1/asset.proto\032" - + "4google/cloud/securitycenter/v1/external" - + "_system.proto\032,google/cloud/securitycent" - + "er/v1/finding.proto\032+google/cloud/securi" - + "tycenter/v1/folder.proto\0320google/cloud/s" - + "ecuritycenter/v1/mute_config.proto\0328goog" - + "le/cloud/securitycenter/v1/notification_" - + "config.proto\032:google/cloud/securitycente" - + "r/v1/organization_settings.proto\0323google" + + "ritycenter.v1\032\034google/api/annotations.pr" + + "oto\032\027google/api/client.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032*google/cloud/securitycenter/v1" + + "/asset.proto\0324google/cloud/securitycente" + + "r/v1/external_system.proto\032,google/cloud" + + "/securitycenter/v1/finding.proto\032+google" + + "/cloud/securitycenter/v1/folder.proto\0320g" + + "oogle/cloud/securitycenter/v1/mute_confi" + + "g.proto\0328google/cloud/securitycenter/v1/" + + "notification_config.proto\032:google/cloud/" + + "securitycenter/v1/organization_settings." + + "proto\032Agoogle/cloud/securitycenter/v1/ru" + + "n_asset_discovery_response.proto\0323google" + "/cloud/securitycenter/v1/security_marks." + "proto\032+google/cloud/securitycenter/v1/so" + "urce.proto\032\036google/iam/v1/iam_policy.pro" @@ -613,14 +613,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/v1;securitycenter\252\002\036Google.Cloud.Securi" + "tyCenter.V1\312\002\036Google\\Cloud\\SecurityCente" + "r\\V1\352\002!Google::Cloud::SecurityCenter::V1" - + "P\000b\006proto3" + + "P\013b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass - .getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), @@ -632,6 +630,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v1.MuteConfigProto.getDescriptor(), com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor(), com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass + .getDescriptor(), com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(), com.google.iam.v1.IamPolicyProto.getDescriptor(), @@ -1009,7 +1009,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); @@ -1021,6 +1020,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v1.MuteConfigProto.getDescriptor(); com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor(); com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(); com.google.iam.v1.IamPolicyProto.getDescriptor(); 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 2032f08be..74292a27b 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 @@ -265,7 +265,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
-   * SecurityMarks that are active immediately preceding this time.
+   * SecurityMarks that are active immediately preceding this time. Must be
+   * smaller or equal to the server time.
    * 
* * .google.protobuf.Timestamp start_time = 3; @@ -282,7 +283,8 @@ public boolean hasStartTime() { *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
-   * SecurityMarks that are active immediately preceding this time.
+   * SecurityMarks that are active immediately preceding this time. Must be
+   * smaller or equal to the server time.
    * 
* * .google.protobuf.Timestamp start_time = 3; @@ -299,7 +301,8 @@ public com.google.protobuf.Timestamp getStartTime() { *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
-   * SecurityMarks that are active immediately preceding this time.
+   * SecurityMarks that are active immediately preceding this time. Must be
+   * smaller or equal to the server time.
    * 
* * .google.protobuf.Timestamp start_time = 3; @@ -1125,7 +1128,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
-     * SecurityMarks that are active immediately preceding this time.
+     * SecurityMarks that are active immediately preceding this time. Must be
+     * smaller or equal to the server time.
      * 
* * .google.protobuf.Timestamp start_time = 3; @@ -1141,7 +1145,8 @@ public boolean hasStartTime() { *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
-     * SecurityMarks that are active immediately preceding this time.
+     * SecurityMarks that are active immediately preceding this time. Must be
+     * smaller or equal to the server time.
      * 
* * .google.protobuf.Timestamp start_time = 3; @@ -1161,7 +1166,8 @@ public com.google.protobuf.Timestamp getStartTime() { *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
-     * SecurityMarks that are active immediately preceding this time.
+     * SecurityMarks that are active immediately preceding this time. Must be
+     * smaller or equal to the server time.
      * 
* * .google.protobuf.Timestamp start_time = 3; @@ -1185,7 +1191,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
-     * SecurityMarks that are active immediately preceding this time.
+     * SecurityMarks that are active immediately preceding this time. Must be
+     * smaller or equal to the server time.
      * 
* * .google.protobuf.Timestamp start_time = 3; @@ -1206,7 +1213,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
-     * SecurityMarks that are active immediately preceding this time.
+     * SecurityMarks that are active immediately preceding this time. Must be
+     * smaller or equal to the server time.
      * 
* * .google.protobuf.Timestamp start_time = 3; @@ -1232,7 +1240,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
-     * SecurityMarks that are active immediately preceding this time.
+     * SecurityMarks that are active immediately preceding this time. Must be
+     * smaller or equal to the server time.
      * 
* * .google.protobuf.Timestamp start_time = 3; @@ -1254,7 +1263,8 @@ public Builder clearStartTime() { *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
-     * SecurityMarks that are active immediately preceding this time.
+     * SecurityMarks that are active immediately preceding this time. Must be
+     * smaller or equal to the server time.
      * 
* * .google.protobuf.Timestamp start_time = 3; @@ -1270,7 +1280,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
-     * SecurityMarks that are active immediately preceding this time.
+     * SecurityMarks that are active immediately preceding this time. Must be
+     * smaller or equal to the server time.
      * 
* * .google.protobuf.Timestamp start_time = 3; @@ -1288,7 +1299,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
-     * SecurityMarks that are active immediately preceding this time.
+     * SecurityMarks that are active immediately preceding this time. Must be
+     * smaller or equal to the server time.
      * 
* * .google.protobuf.Timestamp start_time = 3; diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java index 97d2c9012..5c02f88bb 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java @@ -114,7 +114,8 @@ public interface UpdateSecurityMarksRequestOrBuilder *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
-   * SecurityMarks that are active immediately preceding this time.
+   * SecurityMarks that are active immediately preceding this time. Must be
+   * smaller or equal to the server time.
    * 
* * .google.protobuf.Timestamp start_time = 3; @@ -128,7 +129,8 @@ public interface UpdateSecurityMarksRequestOrBuilder *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
-   * SecurityMarks that are active immediately preceding this time.
+   * SecurityMarks that are active immediately preceding this time. Must be
+   * smaller or equal to the server time.
    * 
* * .google.protobuf.Timestamp start_time = 3; @@ -142,7 +144,8 @@ public interface UpdateSecurityMarksRequestOrBuilder *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
-   * SecurityMarks that are active immediately preceding this time.
+   * SecurityMarks that are active immediately preceding this time. Must be
+   * smaller or equal to the server time.
    * 
* * .google.protobuf.Timestamp start_time = 3; diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto new file mode 100644 index 000000000..f348313a9 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option java_multiple_files = true; +option java_outer_classname = "AccessProto"; +option java_package = "com.google.cloud.securitycenter.v1"; +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; +option ruby_package = "Google::Cloud::SecurityCenter::V1"; + +// Represents an access event. +message Access { + // Associated email, such as "foo@google.com". + string principal_email = 1; + + // Caller's IP address, such as "1.1.1.1". + string caller_ip = 2; + + // The caller IP's geolocation, which identifies where the call came from. + Geolocation caller_ip_geo = 3; + + // What kind of user agent is associated, e.g. operating system shells, + // embedded or stand-alone applications, etc. + string user_agent_family = 4; + + // This is the API service that the service account made a call to, e.g. + // "iam.googleapis.com" + string service_name = 5; + + // The method that the service account called, e.g. "SetIamPolicy". + string method_name = 6; +} + +// Represents a geographical location for a given access. +message Geolocation { + // A CLDR. + string region_code = 1; +} 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 5556b5249..611716ec0 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 @@ -16,15 +16,16 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; +import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/securitycenter/v1/access.proto"; import "google/cloud/securitycenter/v1/external_system.proto"; import "google/cloud/securitycenter/v1/indicator.proto"; import "google/cloud/securitycenter/v1/security_marks.proto"; import "google/cloud/securitycenter/v1/vulnerability.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; @@ -200,11 +201,12 @@ message Finding { // to the finding. SecurityMarks security_marks = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The time at which the event took place, or when an update to the finding - // occurred. For example, if the finding represents an open firewall it would - // capture the time the detector believes the firewall became open. The - // accuracy is determined by the detector. If the finding were to be resolved - // afterward, this time would reflect when the finding was resolved. Must not + // The time the finding was first detected. If an existing finding is updated, + // then this is the time the update occurred. + // For example, if the finding represents an open firewall, this property + // captures the time the detector believes the firewall became open. The + // accuracy is determined by the detector. If the finding is later resolved, + // then this time reflects when the finding was resolved. This must not // be set to a value greater than the current timestamp. google.protobuf.Timestamp event_time = 9; @@ -249,6 +251,10 @@ message Finding { // information and external system finding fields. map external_systems = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Access details associated to the Finding, such as more information on the + // caller, which method was accessed, from where, etc. + Access access = 26; + // First known as mute_annotation. Records additional information about the // mute operation e.g. mute config that muted the finding, user who muted the // finding, etc. 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 9c8446c2f..973ded26e 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 @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; -import public "google/cloud/securitycenter/v1/run_asset_discovery_response.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; @@ -28,6 +27,7 @@ import "google/cloud/securitycenter/v1/folder.proto"; import "google/cloud/securitycenter/v1/mute_config.proto"; import "google/cloud/securitycenter/v1/notification_config.proto"; import "google/cloud/securitycenter/v1/organization_settings.proto"; +import public "google/cloud/securitycenter/v1/run_asset_discovery_response.proto"; import "google/cloud/securitycenter/v1/security_marks.proto"; import "google/cloud/securitycenter/v1/source.proto"; import "google/iam/v1/iam_policy.proto"; @@ -1459,6 +1459,34 @@ message ListFindingsRequest { message ListFindingsResponse { // Result containing the Finding and its StateChange. message ListFindingsResult { + // The change in state of the finding. + // + // When querying across two points in time this describes + // the change in the finding between the two points: CHANGED, UNCHANGED, + // ADDED, or REMOVED. Findings can not be deleted, so REMOVED implies that + // the finding at timestamp does not match the filter specified, but it did + // at timestamp - compare_duration. If there was no compare_duration + // supplied in the request the state change will be: UNUSED + enum StateChange { + // State change is unused, this is the canonical default for this enum. + UNUSED = 0; + + // The finding has changed state in some way between the points in time + // and existed at both points. + CHANGED = 1; + + // The finding has not changed state between the points in time and + // existed at both points. + UNCHANGED = 2; + + // The finding was created between the points in time. + ADDED = 3; + + // The finding at timestamp does not match the filter specified, but it + // did at timestamp - compare_duration. + REMOVED = 4; + } + // Information related to the Google Cloud resource that is // associated with this finding. message Resource { @@ -1490,34 +1518,6 @@ message ListFindingsResponse { string display_name = 8; } - // The change in state of the finding. - // - // When querying across two points in time this describes - // the change in the finding between the two points: CHANGED, UNCHANGED, - // ADDED, or REMOVED. Findings can not be deleted, so REMOVED implies that - // the finding at timestamp does not match the filter specified, but it did - // at timestamp - compare_duration. If there was no compare_duration - // supplied in the request the state change will be: UNUSED - enum StateChange { - // State change is unused, this is the canonical default for this enum. - UNUSED = 0; - - // The finding has changed state in some way between the points in time - // and existed at both points. - CHANGED = 1; - - // The finding has not changed state between the points in time and - // existed at both points. - UNCHANGED = 2; - - // The finding was created between the points in time. - ADDED = 3; - - // The finding at timestamp does not match the filter specified, but it - // did at timestamp - compare_duration. - REMOVED = 4; - } - // Finding matching the search request. Finding finding = 1; @@ -1681,6 +1681,7 @@ message UpdateSecurityMarksRequest { // The time at which the updated SecurityMarks take effect. // If not set uses current server time. Updates will be applied to the - // SecurityMarks that are active immediately preceding this time. + // SecurityMarks that are active immediately preceding this time. Must be + // smaller or equal to the server time. google.protobuf.Timestamp start_time = 3; } From 0bb0800346834545dea3aca8275d063851f29789 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 21:12:37 +0000 Subject: [PATCH 20/20] chore(main): release 2.4.0 (#737) :robot: I have created a release *beep* *boop* --- ## [2.4.0](https://github.com/googleapis/java-securitycenter/compare/v2.3.2...v2.4.0) (2022-02-03) ### Features * Release the access field in the v1 finding proto, which represents an access event tied to the finding ([#744](https://github.com/googleapis/java-securitycenter/issues/744)) ([94f600d](https://github.com/googleapis/java-securitycenter/commit/94f600dd9b5adf1990c6ba8789e391700a7ca4ad)) ### Dependencies * **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-securitycenter/issues/1339)) ([#742](https://github.com/googleapis/java-securitycenter/issues/742)) ([7361505](https://github.com/googleapis/java-securitycenter/commit/7361505b7fd4021daf33a7472458c17c97ed6c2e)) * update actions/github-script action to v5 ([#741](https://github.com/googleapis/java-securitycenter/issues/741)) ([3138f0c](https://github.com/googleapis/java-securitycenter/commit/3138f0c8f0369782decaed49164588862c855908)) * update dependency com.google.cloud:google-cloud-pubsub to v1.115.1 ([#730](https://github.com/googleapis/java-securitycenter/issues/730)) ([2a0b4cd](https://github.com/googleapis/java-securitycenter/commit/2a0b4cda8fd1c489cd983db02e3452623e8c7e3c)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#743](https://github.com/googleapis/java-securitycenter/issues/743)) ([b2c717e](https://github.com/googleapis/java-securitycenter/commit/b2c717e843f795ca7fd2b910ba55c5e74eb33b0e)) ### Documentation * added more clarification around what event_time means on a v1 finding ([94f600d](https://github.com/googleapis/java-securitycenter/commit/94f600dd9b5adf1990c6ba8789e391700a7ca4ad)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 20 +++++++++++++++++++ google-cloud-securitycenter-bom/pom.xml | 16 +++++++-------- google-cloud-securitycenter/pom.xml | 4 ++-- grpc-google-cloud-securitycenter-v1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- .../pom.xml | 4 ++-- pom.xml | 16 +++++++-------- proto-google-cloud-securitycenter-v1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- .../pom.xml | 4 ++-- versions.txt | 14 ++++++------- 11 files changed, 57 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6502301d..9bd73db7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [2.4.0](https://github.com/googleapis/java-securitycenter/compare/v2.3.2...v2.4.0) (2022-02-03) + + +### Features + +* Release the access field in the v1 finding proto, which represents an access event tied to the finding ([#744](https://github.com/googleapis/java-securitycenter/issues/744)) ([94f600d](https://github.com/googleapis/java-securitycenter/commit/94f600dd9b5adf1990c6ba8789e391700a7ca4ad)) + + +### Dependencies + +* **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-securitycenter/issues/1339)) ([#742](https://github.com/googleapis/java-securitycenter/issues/742)) ([7361505](https://github.com/googleapis/java-securitycenter/commit/7361505b7fd4021daf33a7472458c17c97ed6c2e)) +* update actions/github-script action to v5 ([#741](https://github.com/googleapis/java-securitycenter/issues/741)) ([3138f0c](https://github.com/googleapis/java-securitycenter/commit/3138f0c8f0369782decaed49164588862c855908)) +* update dependency com.google.cloud:google-cloud-pubsub to v1.115.1 ([#730](https://github.com/googleapis/java-securitycenter/issues/730)) ([2a0b4cd](https://github.com/googleapis/java-securitycenter/commit/2a0b4cda8fd1c489cd983db02e3452623e8c7e3c)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#743](https://github.com/googleapis/java-securitycenter/issues/743)) ([b2c717e](https://github.com/googleapis/java-securitycenter/commit/b2c717e843f795ca7fd2b910ba55c5e74eb33b0e)) + + +### Documentation + +* added more clarification around what event_time means on a v1 finding ([94f600d](https://github.com/googleapis/java-securitycenter/commit/94f600dd9b5adf1990c6ba8789e391700a7ca4ad)) + ### [2.3.2](https://www.github.com/googleapis/java-securitycenter/compare/v2.3.1...v2.3.2) (2022-01-07) diff --git a/google-cloud-securitycenter-bom/pom.xml b/google-cloud-securitycenter-bom/pom.xml index 4aa9eec64..9fc254fa1 100644 --- a/google-cloud-securitycenter-bom/pom.xml +++ b/google-cloud-securitycenter-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-bom - 2.3.3-SNAPSHOT + 2.4.0 pom com.google.cloud @@ -53,37 +53,37 @@ com.google.cloud google-cloud-securitycenter - 2.3.3-SNAPSHOT + 2.4.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.3.3-SNAPSHOT + 2.4.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.98.3-SNAPSHOT + 0.99.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.98.3-SNAPSHOT + 0.99.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.3.3-SNAPSHOT + 2.4.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.98.3-SNAPSHOT + 0.99.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.98.3-SNAPSHOT + 0.99.0
diff --git a/google-cloud-securitycenter/pom.xml b/google-cloud-securitycenter/pom.xml index 473dc14c9..47113f069 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 - 2.3.3-SNAPSHOT + 2.4.0 jar Google Cloud Security Command Center https://github.com/googleapis/java-securitycenter @@ -11,7 +11,7 @@ com.google.cloud google-cloud-securitycenter-parent - 2.3.3-SNAPSHOT + 2.4.0 google-cloud-securitycenter diff --git a/grpc-google-cloud-securitycenter-v1/pom.xml b/grpc-google-cloud-securitycenter-v1/pom.xml index 2eb733f51..4468e0fca 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 - 2.3.3-SNAPSHOT + 2.4.0 grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.3.3-SNAPSHOT + 2.4.0 diff --git a/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/grpc-google-cloud-securitycenter-v1beta1/pom.xml index f8805448f..dab4b052c 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.98.3-SNAPSHOT + 0.99.0 grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.3.3-SNAPSHOT + 2.4.0 diff --git a/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml b/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml index 6febb2f7b..f0e460cb1 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.98.3-SNAPSHOT + 0.99.0 grpc-google-cloud-securitycenter-v1p1beta1 GRPC library for grpc-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.3.3-SNAPSHOT + 2.4.0 diff --git a/pom.xml b/pom.xml index 1457215db..0bd25bf40 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-parent pom - 2.3.3-SNAPSHOT + 2.4.0 Google Cloud Security Command Center Parent https://github.com/googleapis/java-securitycenter @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.3.3-SNAPSHOT + 2.4.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.98.3-SNAPSHOT + 0.99.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.98.3-SNAPSHOT + 0.99.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.3.3-SNAPSHOT + 2.4.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.98.3-SNAPSHOT + 0.99.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.98.3-SNAPSHOT + 0.99.0 com.google.cloud google-cloud-securitycenter - 2.3.3-SNAPSHOT + 2.4.0 diff --git a/proto-google-cloud-securitycenter-v1/pom.xml b/proto-google-cloud-securitycenter-v1/pom.xml index 85a4052d1..e2476feda 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 - 2.3.3-SNAPSHOT + 2.4.0 proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.3.3-SNAPSHOT + 2.4.0 diff --git a/proto-google-cloud-securitycenter-v1beta1/pom.xml b/proto-google-cloud-securitycenter-v1beta1/pom.xml index c04ecd223..a44983c4b 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.98.3-SNAPSHOT + 0.99.0 proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.3.3-SNAPSHOT + 2.4.0 diff --git a/proto-google-cloud-securitycenter-v1p1beta1/pom.xml b/proto-google-cloud-securitycenter-v1p1beta1/pom.xml index 6823ca3f3..266bae2dc 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.98.3-SNAPSHOT + 0.99.0 proto-google-cloud-securitycenter-v1p1beta1 PROTO library for proto-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.3.3-SNAPSHOT + 2.4.0 diff --git a/versions.txt b/versions.txt index d87c3d1de..9f359d3c6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-securitycenter:2.3.2:2.3.3-SNAPSHOT -grpc-google-cloud-securitycenter-v1:2.3.2:2.3.3-SNAPSHOT -grpc-google-cloud-securitycenter-v1beta1:0.98.2:0.98.3-SNAPSHOT -grpc-google-cloud-securitycenter-v1p1beta1:0.98.2:0.98.3-SNAPSHOT -proto-google-cloud-securitycenter-v1:2.3.2:2.3.3-SNAPSHOT -proto-google-cloud-securitycenter-v1beta1:0.98.2:0.98.3-SNAPSHOT -proto-google-cloud-securitycenter-v1p1beta1:0.98.2:0.98.3-SNAPSHOT +google-cloud-securitycenter:2.4.0:2.4.0 +grpc-google-cloud-securitycenter-v1:2.4.0:2.4.0 +grpc-google-cloud-securitycenter-v1beta1:0.99.0:0.99.0 +grpc-google-cloud-securitycenter-v1p1beta1:0.99.0:0.99.0 +proto-google-cloud-securitycenter-v1:2.4.0:2.4.0 +proto-google-cloud-securitycenter-v1beta1:0.99.0:0.99.0 +proto-google-cloud-securitycenter-v1p1beta1:0.99.0:0.99.0