From 4fe4dcdf24707e2586ff4d7f3110b609cf415925 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 19 Sep 2022 11:33:46 -0400 Subject: [PATCH] feat: [securitycenter] Added parent display name i.e. source display name for a finding as one of the finding attributes (#8400) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Added parent display name i.e. source display name for a finding as one of the finding attributes PiperOrigin-RevId: 474319054 Source-Link: https://github.com/googleapis/googleapis/commit/862f99facd3b670eda5bd17fd367a93111381326 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bfc34971e1d16b179ffab8cb6779bc64f7378c09 Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlci8uT3dsQm90LnlhbWwiLCJoIjoiYmZjMzQ5NzFlMWQxNmIxNzlmZmFiOGNiNjc3OWJjNjRmNzM3OGMwOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-securitycenter/README.md | 6 +- .../v1/SecurityCenterClientHttpJsonTest.java | 9 + .../v1/SecurityCenterClientTest.java | 7 + .../cloud/securitycenter/v1/Finding.java | 296 ++++++++++++++---- .../securitycenter/v1/FindingOrBuilder.java | 77 +++-- .../securitycenter/v1/FindingOuterClass.java | 78 ++--- .../cloud/securitycenter/v1/finding.proto | 23 +- java-securitycenter/renovate.json | 74 +++++ 8 files changed, 438 insertions(+), 132 deletions(-) create mode 100644 java-securitycenter/renovate.json diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index bd08a2ea4d68..39c12b5c24c5 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/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 - 26.1.1 + 26.1.0 pom import @@ -67,13 +67,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.9.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.10.0" ``` ## Authentication diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java index 4571c8c77e39..035032fd3a7a 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java @@ -316,6 +316,7 @@ public void createFindingTest() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -394,6 +395,7 @@ public void createFindingTest2() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -2785,6 +2787,7 @@ public void setFindingStateTest() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -2865,6 +2868,7 @@ public void setFindingStateTest2() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -2943,6 +2947,7 @@ public void setMuteTest() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -3021,6 +3026,7 @@ public void setMuteTest2() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -3349,6 +3355,7 @@ public void updateFindingTest() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -3385,6 +3392,7 @@ public void updateFindingTest() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -3446,6 +3454,7 @@ public void updateFindingExceptionTest() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java index e06c74740a66..c1d09ff5af2d 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java @@ -307,6 +307,7 @@ public void createFindingTest() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -381,6 +382,7 @@ public void createFindingTest2() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -2556,6 +2558,7 @@ public void setFindingStateTest() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -2632,6 +2635,7 @@ public void setFindingStateTest2() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -2706,6 +2710,7 @@ public void setMuteTest() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -2779,6 +2784,7 @@ public void setMuteTest2() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) @@ -3062,6 +3068,7 @@ public void updateFindingTest() throws Exception { .addAllProcesses(new ArrayList()) .putAllContacts(new HashMap()) .addAllCompliances(new ArrayList()) + .setParentDisplayName("parentDisplayName-1523759261") .setDescription("description-1724546052") .setExfiltration(Exfiltration.newBuilder().build()) .addAllIamBindings(new ArrayList()) diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java index 831ecdc5588b..f692e5ea2c1f 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java @@ -57,6 +57,7 @@ private Finding() { muteInitiator_ = ""; processes_ = java.util.Collections.emptyList(); compliances_ = java.util.Collections.emptyList(); + parentDisplayName_ = ""; description_ = ""; iamBindings_ = java.util.Collections.emptyList(); nextSteps_ = ""; @@ -384,6 +385,13 @@ private Finding( com.google.cloud.securitycenter.v1.Compliance.parser(), extensionRegistry)); break; } + case 290: + { + java.lang.String s = input.readStringRequireUtf8(); + + parentDisplayName_ = s; + break; + } case 298: { java.lang.String s = input.readStringRequireUtf8(); @@ -2360,8 +2368,8 @@ public int getExternalSystemsCount() { * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external
-   * system information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+   * information and external system finding fields.
    * 
* * @@ -2386,8 +2394,8 @@ public boolean containsExternalSystems(java.lang.String key) { * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external
-   * system information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+   * information and external system finding fields.
    * 
* * @@ -2403,8 +2411,8 @@ public boolean containsExternalSystems(java.lang.String key) { * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external
-   * system information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+   * information and external system finding fields.
    * 
* * @@ -2425,8 +2433,8 @@ public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDef * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external
-   * system information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+   * information and external system finding fields.
    * 
* * @@ -2779,9 +2787,9 @@ public int getContactsCount() { * * *
-   * Output only. Map containing the point of contacts for the given finding.
-   * The key represents the type of contact, while the value contains a list of
-   * all the contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding. The key
+   * represents the type of contact, while the value contains a list of all the
+   * contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -2819,9 +2827,9 @@ public boolean containsContacts(java.lang.String key) {
    *
    *
    * 
-   * Output only. Map containing the point of contacts for the given finding.
-   * The key represents the type of contact, while the value contains a list of
-   * all the contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding. The key
+   * represents the type of contact, while the value contains a list of all the
+   * contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -2850,9 +2858,9 @@ public boolean containsContacts(java.lang.String key) {
    *
    *
    * 
-   * Output only. Map containing the point of contacts for the given finding.
-   * The key represents the type of contact, while the value contains a list of
-   * all the contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding. The key
+   * represents the type of contact, while the value contains a list of all the
+   * contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -2886,9 +2894,9 @@ public com.google.cloud.securitycenter.v1.ContactDetails getContactsOrDefault(
    *
    *
    * 
-   * Output only. Map containing the point of contacts for the given finding.
-   * The key represents the type of contact, while the value contains a list of
-   * all the contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding. The key
+   * represents the type of contact, while the value contains a list of all the
+   * contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -2996,6 +3004,57 @@ public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBu
     return compliances_.get(index);
   }
 
+  public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 36;
+  private volatile java.lang.Object parentDisplayName_;
+  /**
+   *
+   *
+   * 
+   * Output only. The human readable display name of the finding source such as
+   * "Event Threat Detection" or "Security Health Analytics".
+   * 
+ * + * string parent_display_name = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The parentDisplayName. + */ + @java.lang.Override + public java.lang.String getParentDisplayName() { + java.lang.Object ref = parentDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The human readable display name of the finding source such as
+   * "Event Threat Detection" or "Security Health Analytics".
+   * 
+ * + * string parent_display_name = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for parentDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentDisplayNameBytes() { + java.lang.Object ref = parentDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int DESCRIPTION_FIELD_NUMBER = 37; private volatile java.lang.Object description_; /** @@ -3470,6 +3529,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < compliances_.size(); i++) { output.writeMessage(34, compliances_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 36, parentDisplayName_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 37, description_); } @@ -3603,6 +3665,9 @@ public int getSerializedSize() { for (int i = 0; i < compliances_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, compliances_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, parentDisplayName_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, description_); } @@ -3689,6 +3754,7 @@ public boolean equals(final java.lang.Object obj) { if (!getProcessesList().equals(other.getProcessesList())) return false; if (!internalGetContacts().equals(other.internalGetContacts())) return false; if (!getCompliancesList().equals(other.getCompliancesList())) return false; + if (!getParentDisplayName().equals(other.getParentDisplayName())) return false; if (!getDescription().equals(other.getDescription())) return false; if (hasExfiltration() != other.hasExfiltration()) return false; if (hasExfiltration()) { @@ -3794,6 +3860,8 @@ public int hashCode() { hash = (37 * hash) + COMPLIANCES_FIELD_NUMBER; hash = (53 * hash) + getCompliancesList().hashCode(); } + hash = (37 * hash) + PARENT_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParentDisplayName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasExfiltration()) { @@ -4093,6 +4161,8 @@ public Builder clear() { } else { compliancesBuilder_.clear(); } + parentDisplayName_ = ""; + description_ = ""; if (exfiltrationBuilder_ == null) { @@ -4239,6 +4309,7 @@ public com.google.cloud.securitycenter.v1.Finding buildPartial() { } else { result.compliances_ = compliancesBuilder_.build(); } + result.parentDisplayName_ = parentDisplayName_; result.description_ = description_; if (exfiltrationBuilder_ == null) { result.exfiltration_ = exfiltration_; @@ -4471,6 +4542,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { } } } + if (!other.getParentDisplayName().isEmpty()) { + parentDisplayName_ = other.parentDisplayName_; + onChanged(); + } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); @@ -7190,8 +7265,8 @@ public int getExternalSystemsCount() { * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external
-     * system information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+     * information and external system finding fields.
      * 
* * @@ -7216,8 +7291,8 @@ public boolean containsExternalSystems(java.lang.String key) { * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external
-     * system information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+     * information and external system finding fields.
      * 
* * @@ -7233,8 +7308,8 @@ public boolean containsExternalSystems(java.lang.String key) { * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external
-     * system information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+     * information and external system finding fields.
      * 
* * @@ -7255,8 +7330,8 @@ public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDef * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external
-     * system information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+     * information and external system finding fields.
      * 
* * @@ -7285,8 +7360,8 @@ public Builder clearExternalSystems() { * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external
-     * system information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+     * information and external system finding fields.
      * 
* * @@ -7310,8 +7385,8 @@ public Builder removeExternalSystems(java.lang.String key) { * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external
-     * system information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+     * information and external system finding fields.
      * 
* * @@ -7334,8 +7409,8 @@ public Builder putExternalSystems( * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external
-     * system information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+     * information and external system finding fields.
      * 
* * @@ -8596,9 +8671,9 @@ public int getContactsCount() { * * *
-     * Output only. Map containing the point of contacts for the given finding.
-     * The key represents the type of contact, while the value contains a list of
-     * all the contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding. The key
+     * represents the type of contact, while the value contains a list of all the
+     * contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -8636,9 +8711,9 @@ public boolean containsContacts(java.lang.String key) {
      *
      *
      * 
-     * Output only. Map containing the point of contacts for the given finding.
-     * The key represents the type of contact, while the value contains a list of
-     * all the contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding. The key
+     * represents the type of contact, while the value contains a list of all the
+     * contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -8667,9 +8742,9 @@ public boolean containsContacts(java.lang.String key) {
      *
      *
      * 
-     * Output only. Map containing the point of contacts for the given finding.
-     * The key represents the type of contact, while the value contains a list of
-     * all the contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding. The key
+     * represents the type of contact, while the value contains a list of all the
+     * contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -8703,9 +8778,9 @@ public com.google.cloud.securitycenter.v1.ContactDetails getContactsOrDefault(
      *
      *
      * 
-     * Output only. Map containing the point of contacts for the given finding.
-     * The key represents the type of contact, while the value contains a list of
-     * all the contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding. The key
+     * represents the type of contact, while the value contains a list of all the
+     * contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -8747,9 +8822,9 @@ public Builder clearContacts() {
      *
      *
      * 
-     * Output only. Map containing the point of contacts for the given finding.
-     * The key represents the type of contact, while the value contains a list of
-     * all the contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding. The key
+     * represents the type of contact, while the value contains a list of all the
+     * contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -8786,9 +8861,9 @@ public Builder removeContacts(java.lang.String key) {
      *
      *
      * 
-     * Output only. Map containing the point of contacts for the given finding.
-     * The key represents the type of contact, while the value contains a list of
-     * all the contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding. The key
+     * represents the type of contact, while the value contains a list of all the
+     * contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -8824,9 +8899,9 @@ public Builder putContacts(
      *
      *
      * 
-     * Output only. Map containing the point of contacts for the given finding.
-     * The key represents the type of contact, while the value contains a list of
-     * all the contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding. The key
+     * represents the type of contact, while the value contains a list of all the
+     * contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -9222,6 +9297,117 @@ public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuild
       return compliancesBuilder_;
     }
 
+    private java.lang.Object parentDisplayName_ = "";
+    /**
+     *
+     *
+     * 
+     * Output only. The human readable display name of the finding source such as
+     * "Event Threat Detection" or "Security Health Analytics".
+     * 
+ * + * string parent_display_name = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The parentDisplayName. + */ + public java.lang.String getParentDisplayName() { + java.lang.Object ref = parentDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The human readable display name of the finding source such as
+     * "Event Threat Detection" or "Security Health Analytics".
+     * 
+ * + * string parent_display_name = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for parentDisplayName. + */ + public com.google.protobuf.ByteString getParentDisplayNameBytes() { + java.lang.Object ref = parentDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The human readable display name of the finding source such as
+     * "Event Threat Detection" or "Security Health Analytics".
+     * 
+ * + * string parent_display_name = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The parentDisplayName to set. + * @return This builder for chaining. + */ + public Builder setParentDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parentDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The human readable display name of the finding source such as
+     * "Event Threat Detection" or "Security Health Analytics".
+     * 
+ * + * string parent_display_name = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearParentDisplayName() { + + parentDisplayName_ = getDefaultInstance().getParentDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The human readable display name of the finding source such as
+     * "Event Threat Detection" or "Security Health Analytics".
+     * 
+ * + * string parent_display_name = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for parentDisplayName to set. + * @return This builder for chaining. + */ + public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parentDisplayName_ = value; + onChanged(); + return this; + } + private java.lang.Object description_ = ""; /** * diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java index 81c48623ab54..b03a7eec0506 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java @@ -663,8 +663,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external
-   * system information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+   * information and external system finding fields.
    * 
* * @@ -676,8 +676,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external
-   * system information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+   * information and external system finding fields.
    * 
* * @@ -693,8 +693,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external
-   * system information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+   * information and external system finding fields.
    * 
* * @@ -707,8 +707,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external
-   * system information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+   * information and external system finding fields.
    * 
* * @@ -725,8 +725,8 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external
-   * system information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
+   * information and external system finding fields.
    * 
* * @@ -950,9 +950,9 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( * * *
-   * Output only. Map containing the point of contacts for the given finding.
-   * The key represents the type of contact, while the value contains a list of
-   * all the contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding. The key
+   * represents the type of contact, while the value contains a list of all the
+   * contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -977,9 +977,9 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    *
    *
    * 
-   * Output only. Map containing the point of contacts for the given finding.
-   * The key represents the type of contact, while the value contains a list of
-   * all the contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding. The key
+   * represents the type of contact, while the value contains a list of all the
+   * contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -1007,9 +1007,9 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    *
    *
    * 
-   * Output only. Map containing the point of contacts for the given finding.
-   * The key represents the type of contact, while the value contains a list of
-   * all the contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding. The key
+   * represents the type of contact, while the value contains a list of all the
+   * contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -1035,9 +1035,9 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    *
    *
    * 
-   * Output only. Map containing the point of contacts for the given finding.
-   * The key represents the type of contact, while the value contains a list of
-   * all the contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding. The key
+   * represents the type of contact, while the value contains a list of all the
+   * contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -1067,9 +1067,9 @@ com.google.cloud.securitycenter.v1.ContactDetails getContactsOrDefault(
    *
    *
    * 
-   * Output only. Map containing the point of contacts for the given finding.
-   * The key represents the type of contact, while the value contains a list of
-   * all the contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding. The key
+   * represents the type of contact, while the value contains a list of all the
+   * contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -1148,6 +1148,33 @@ com.google.cloud.securitycenter.v1.ContactDetails getContactsOrDefault(
    */
   com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder(int index);
 
+  /**
+   *
+   *
+   * 
+   * Output only. The human readable display name of the finding source such as
+   * "Event Threat Detection" or "Security Health Analytics".
+   * 
+ * + * string parent_display_name = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The parentDisplayName. + */ + java.lang.String getParentDisplayName(); + /** + * + * + *
+   * Output only. The human readable display name of the finding source such as
+   * "Event Threat Detection" or "Security Health Analytics".
+   * 
+ * + * string parent_display_name = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for parentDisplayName. + */ + com.google.protobuf.ByteString getParentDisplayNameBytes(); + /** * * diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java index 633246196611..98b291537b7d 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java @@ -75,7 +75,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tycenter/v1/security_marks.proto\0322google" + "/cloud/securitycenter/v1/vulnerability.p" + "roto\032\034google/protobuf/struct.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\204\024\n\007Finding\022" + + "le/protobuf/timestamp.proto\"\246\024\n\007Finding\022" + "\014\n\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresourc" + "e_name\030\003 \001(\t\022<\n\005state\030\004 \001(\0162-.google.clo" + "ud.securitycenter.v1.Finding.State\022\020\n\010ca" @@ -109,43 +109,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ss\022L\n\010contacts\030! \003(\01325.google.cloud.secu" + "ritycenter.v1.Finding.ContactsEntryB\003\340A\003" + "\022?\n\013compliances\030\" \003(\0132*.google.cloud.sec" - + "uritycenter.v1.Compliance\022\023\n\013description" - + "\030% \001(\t\022B\n\014exfiltration\030& \001(\0132,.google.cl" - + "oud.securitycenter.v1.Exfiltration\022@\n\014ia" - + "m_bindings\030\' \003(\0132*.google.cloud.security" - + "center.v1.IamBinding\022\022\n\nnext_steps\030( \001(\t" - + "\022=\n\ncontainers\030* \003(\0132).google.cloud.secu" - + "ritycenter.v1.Container\022>\n\nkubernetes\030+ " - + "\001(\0132*.google.cloud.securitycenter.v1.Kub" - + "ernetes\022:\n\010database\030, \001(\0132(.google.cloud" - + ".securitycenter.v1.Database\032O\n\025SourcePro" - + "pertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\013" - + "2\026.google.protobuf.Value:\0028\001\032f\n\024External" - + "SystemsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\013" - + "2..google.cloud.securitycenter.v1.Extern" - + "alSystem:\0028\001\032_\n\rContactsEntry\022\013\n\003key\030\001 \001" - + "(\t\022=\n\005value\030\002 \001(\0132..google.cloud.securit" - + "ycenter.v1.ContactDetails:\0028\001\"8\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INA" - + "CTIVE\020\002\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIF" - + "IED\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\"" - + "\202\001\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\022\r\n" - + "\tSCC_ERROR\020\005:\333\001\352A\327\001\n%securitycenter.goog" - + "leapis.com/Finding\022@organizations/{organ" - + "ization}/sources/{source}/findings/{find" - + "ing}\0224folders/{folder}/sources/{source}/" - + "findings/{finding}\0226projects/{project}/s" - + "ources/{source}/findings/{finding}B\332\001\n\"c" - + "om.google.cloud.securitycenter.v1P\001ZLgoo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/securitycenter/v1;securitycenter\252\002\036Goog" - + "le.Cloud.SecurityCenter.V1\312\002\036Google\\Clou" - + "d\\SecurityCenter\\V1\352\002!Google::Cloud::Sec" - + "urityCenter::V1b\006proto3" + + "uritycenter.v1.Compliance\022 \n\023parent_disp" + + "lay_name\030$ \001(\tB\003\340A\003\022\023\n\013description\030% \001(\t" + + "\022B\n\014exfiltration\030& \001(\0132,.google.cloud.se" + + "curitycenter.v1.Exfiltration\022@\n\014iam_bind" + + "ings\030\' \003(\0132*.google.cloud.securitycenter" + + ".v1.IamBinding\022\022\n\nnext_steps\030( \001(\t\022=\n\nco" + + "ntainers\030* \003(\0132).google.cloud.securityce" + + "nter.v1.Container\022>\n\nkubernetes\030+ \001(\0132*." + + "google.cloud.securitycenter.v1.Kubernete" + + "s\022:\n\010database\030, \001(\0132(.google.cloud.secur" + + "itycenter.v1.Database\032O\n\025SourcePropertie" + + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + + "gle.protobuf.Value:\0028\001\032f\n\024ExternalSystem" + + "sEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..goo" + + "gle.cloud.securitycenter.v1.ExternalSyst" + + "em:\0028\001\032_\n\rContactsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005" + + "value\030\002 \001(\0132..google.cloud.securitycente" + + "r.v1.ContactDetails:\0028\001\"8\n\005State\022\025\n\021STAT" + + "E_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020" + + "\002\"Q\n\010Severity\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\003L" + + "OW\020\004\"C\n\004Mute\022\024\n\020MUTE_UNSPECIFIED\020\000\022\t\n\005MU" + + "TED\020\001\022\013\n\007UNMUTED\020\002\022\r\n\tUNDEFINED\020\004\"\202\001\n\014Fi" + + "ndingClass\022\035\n\031FINDING_CLASS_UNSPECIFIED\020" + + "\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY\020\002\022\024\n\020MISC" + + "ONFIGURATION\020\003\022\017\n\013OBSERVATION\020\004\022\r\n\tSCC_E" + + "RROR\020\005:\333\001\352A\327\001\n%securitycenter.googleapis" + + ".com/Finding\022@organizations/{organizatio" + + "n}/sources/{source}/findings/{finding}\0224" + + "folders/{folder}/sources/{source}/findin" + + "gs/{finding}\0226projects/{project}/sources" + + "/{source}/findings/{finding}B\332\001\n\"com.goo" + + "gle.cloud.securitycenter.v1P\001ZLgoogle.go" + + "lang.org/genproto/googleapis/cloud/secur" + + "itycenter/v1;securitycenter\252\002\036Google.Clo" + + "ud.SecurityCenter.V1\312\002\036Google\\Cloud\\Secu" + + "rityCenter\\V1\352\002!Google::Cloud::SecurityC" + + "enter::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -202,6 +203,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Processes", "Contacts", "Compliances", + "ParentDisplayName", "Description", "Exfiltration", "IamBindings", diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto index 8fbd9421f55d..126d5e59feb4 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto @@ -258,13 +258,11 @@ message Finding { Vulnerability vulnerability = 20; // Output only. The most recent time this finding was muted or unmuted. - google.protobuf.Timestamp mute_update_time = 21 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp mute_update_time = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Third party SIEM/SOAR fields within SCC, contains external - // system information and external system finding fields. - map external_systems = 22 - [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Third party SIEM/SOAR fields within SCC, contains external system + // information and external system finding fields. + map external_systems = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; // MITRE ATT&CK tactics and techniques related to this finding. // See: https://attack.mitre.org @@ -286,9 +284,9 @@ message Finding { // Represents operating system processes associated with the Finding. repeated Process processes = 30; - // Output only. Map containing the point of contacts for the given finding. - // The key represents the type of contact, while the value contains a list of - // all the contacts that pertain. Please refer to: + // Output only. Map containing the points of contact for the given finding. The key + // represents the type of contact, while the value contains a list of all the + // contacts that pertain. Please refer to: // https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories // // { @@ -303,13 +301,16 @@ message Finding { // ] // } // } - map contacts = 33 - [(google.api.field_behavior) = OUTPUT_ONLY]; + map contacts = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; // Contains compliance information for security standards associated to the // finding. repeated Compliance compliances = 34; + // Output only. The human readable display name of the finding source such as + // "Event Threat Detection" or "Security Health Analytics". + string parent_display_name = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Contains more detail about the finding. string description = 37; diff --git a/java-securitycenter/renovate.json b/java-securitycenter/renovate.json new file mode 100644 index 000000000000..cfba95bdf790 --- /dev/null +++ b/java-securitycenter/renovate.json @@ -0,0 +1,74 @@ +{ + "extends": [ + ":separateMajorReleases", + ":combinePatchMinorReleases", + ":ignoreUnstable", + ":prImmediately", + ":updateNotScheduled", + ":automergeDisabled", + ":ignoreModulesAndTests", + ":maintainLockFilesDisabled", + ":autodetectPinVersions" + ], + "packageRules": [ + { + "packagePatterns": [ + "^com.google.guava:" + ], + "versionScheme": "docker" + }, + { + "packagePatterns": [ + "*" + ], + "semanticCommitType": "deps", + "semanticCommitScope": null + }, + { + "packagePatterns": [ + "^org.apache.maven", + "^org.jacoco:", + "^org.codehaus.mojo:", + "^org.sonatype.plugins:", + "^com.coveo:", + "^com.google.cloud:google-cloud-shared-config" + ], + "semanticCommitType": "build", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^com.google.cloud:google-cloud-securitycenter", + "^com.google.cloud:libraries-bom", + "^com.google.cloud.samples:shared-configuration" + ], + "semanticCommitType": "chore", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^junit:junit", + "^com.google.truth:truth", + "^org.mockito:mockito-core", + "^org.objenesis:objenesis", + "^com.google.cloud:google-cloud-conformance-tests" + ], + "semanticCommitType": "test", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^com.google.cloud:google-cloud-" + ], + "ignoreUnstable": false + }, + { + "packagePatterns": [ + "^com.fasterxml.jackson.core" + ], + "groupName": "jackson dependencies" + } + ], + "semanticCommits": true, + "dependencyDashboard": true +}