diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index e37598bd27e2..b4398a21015b 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-securitycenter - 2.13.0 + 2.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.13.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.14.0" ``` ## Authentication @@ -159,16 +159,16 @@ Java is a registered trademark of Oracle and/or its affiliates. [product-docs]: https://cloud.google.com/security-command-center [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycenter/latest/overview -[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-securitycenter/java7.svg -[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-securitycenter/java7.html -[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-securitycenter/java8.svg -[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-securitycenter/java8.html -[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-securitycenter/java8-osx.svg -[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-securitycenter/java8-osx.html -[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-securitycenter/java8-win.svg -[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 +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [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 @@ -180,9 +180,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ [troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting -[contributing]: https://github.com/googleapis/java-securitycenter/blob/main/CONTRIBUTING.md -[code-of-conduct]: https://github.com/googleapis/java-securitycenter/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-securitycenter/blob/main/LICENSE +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=securitycenter.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java index aa0577366687..05ad83ed3bce 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java @@ -3794,7 +3794,7 @@ public final UnaryCallable runAssetDiscover * * @param name Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". * @param state Required. The desired State of the finding. * @param startTime Required. The time at which the updated state takes effect. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -3833,7 +3833,7 @@ public final Finding setFindingState(FindingName name, Finding.State state, Time * * @param name Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". * @param state Required. The desired State of the finding. * @param startTime Required. The time at which the updated state takes effect. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -3934,9 +3934,9 @@ public final UnaryCallable setFindingStateCalla * * @param name Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/finding/{finding_id}", - * "projects/{project_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". * @param mute Required. The desired state of the Mute. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -3972,9 +3972,9 @@ public final Finding setMute(FindingName name, Finding.Mute mute) { * * @param name Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/finding/{finding_id}", - * "projects/{project_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". * @param mute Required. The desired state of the Mute. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ 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 9c7736ab7eb6..c35e6f50c787 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 @@ -324,6 +324,7 @@ public void createFindingTest() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -403,6 +404,7 @@ public void createFindingTest2() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -3125,6 +3127,7 @@ public void setFindingStateTest() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -3206,6 +3209,7 @@ public void setFindingStateTest2() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -3285,6 +3289,7 @@ public void setMuteTest() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -3364,6 +3369,7 @@ public void setMuteTest2() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -3693,6 +3699,7 @@ public void updateFindingTest() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -3730,6 +3737,7 @@ public void updateFindingTest() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); Finding actualResponse = client.updateFinding(finding); @@ -3792,6 +3800,7 @@ public void updateFindingExceptionTest() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); client.updateFinding(finding); Assert.fail("No exception raised"); 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 f6835e6eaeae..20a990ffd381 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 @@ -315,6 +315,7 @@ public void createFindingTest() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -390,6 +391,7 @@ public void createFindingTest2() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2872,6 +2874,7 @@ public void setFindingStateTest() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2949,6 +2952,7 @@ public void setFindingStateTest2() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -3024,6 +3028,7 @@ public void setMuteTest() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -3098,6 +3103,7 @@ public void setMuteTest2() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -3382,6 +3388,7 @@ public void updateFindingTest() throws Exception { .addAllContainers(new ArrayList()) .setKubernetes(Kubernetes.newBuilder().build()) .setDatabase(Database.newBuilder().build()) + .addAllFiles(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); 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 80015a72b3ca..1006db97f023 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 @@ -62,6 +62,7 @@ private Finding() { iamBindings_ = java.util.Collections.emptyList(); nextSteps_ = ""; containers_ = java.util.Collections.emptyList(); + files_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -3001,6 +3002,75 @@ public com.google.cloud.securitycenter.v1.DatabaseOrBuilder getDatabaseOrBuilder return getDatabase(); } + public static final int FILES_FIELD_NUMBER = 46; + private java.util.List files_; + /** + * + * + *
+   * File associated with the finding.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + /** + * + * + *
+   * File associated with the finding.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + /** + * + * + *
+   * File associated with the finding.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + /** + * + * + *
+   * File associated with the finding.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.File getFiles(int index) { + return files_.get(index); + } + /** + * + * + *
+   * File associated with the finding.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.FileOrBuilder getFilesOrBuilder(int index) { + return files_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3114,6 +3184,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (database_ != null) { output.writeMessage(44, getDatabase()); } + for (int i = 0; i < files_.size(); i++) { + output.writeMessage(46, files_.get(i)); + } getUnknownFields().writeTo(output); } @@ -3250,6 +3323,9 @@ public int getSerializedSize() { if (database_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(44, getDatabase()); } + for (int i = 0; i < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, files_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3332,6 +3408,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDatabase()) { if (!getDatabase().equals(other.getDatabase())) return false; } + if (!getFilesList().equals(other.getFilesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3447,6 +3524,10 @@ public int hashCode() { hash = (37 * hash) + DATABASE_FIELD_NUMBER; hash = (53 * hash) + getDatabase().hashCode(); } + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3750,6 +3831,13 @@ public Builder clear() { database_ = null; databaseBuilder_ = null; } + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -3898,6 +3986,15 @@ public com.google.cloud.securitycenter.v1.Finding buildPartial() { } else { result.database_ = databaseBuilder_.build(); } + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } onBuilt(); return result; } @@ -4170,6 +4267,33 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { if (other.hasDatabase()) { mergeDatabase(other.getDatabase()); } + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000100); + filesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilesFieldBuilder() + : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4449,6 +4573,19 @@ public Builder mergeFrom( break; } // case 354 + case 370: + { + com.google.cloud.securitycenter.v1.File m = + input.readMessage( + com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + break; + } // case 370 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10719,6 +10856,354 @@ public com.google.cloud.securitycenter.v1.DatabaseOrBuilder getDatabaseOrBuilder return databaseBuilder_; } + private java.util.List files_ = + java.util.Collections.emptyList(); + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.File, + com.google.cloud.securitycenter.v1.File.Builder, + com.google.cloud.securitycenter.v1.FileOrBuilder> + filesBuilder_; + + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public com.google.cloud.securitycenter.v1.File getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public Builder setFiles(int index, com.google.cloud.securitycenter.v1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public Builder setFiles( + int index, com.google.cloud.securitycenter.v1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public Builder addFiles(com.google.cloud.securitycenter.v1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public Builder addFiles(int index, com.google.cloud.securitycenter.v1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public Builder addFiles(com.google.cloud.securitycenter.v1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public Builder addFiles( + int index, com.google.cloud.securitycenter.v1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public Builder addAllFiles( + java.lang.Iterable values) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + onChanged(); + } else { + filesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public com.google.cloud.securitycenter.v1.File.Builder getFilesBuilder(int index) { + return getFilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public com.google.cloud.securitycenter.v1.FileOrBuilder getFilesOrBuilder(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public com.google.cloud.securitycenter.v1.File.Builder addFilesBuilder() { + return getFilesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.File.getDefaultInstance()); + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public com.google.cloud.securitycenter.v1.File.Builder addFilesBuilder(int index) { + return getFilesFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1.File.getDefaultInstance()); + } + /** + * + * + *
+     * File associated with the finding.
+     * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + public java.util.List getFilesBuilderList() { + return getFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.File, + com.google.cloud.securitycenter.v1.File.Builder, + com.google.cloud.securitycenter.v1.FileOrBuilder> + getFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.File, + com.google.cloud.securitycenter.v1.File.Builder, + com.google.cloud.securitycenter.v1.FileOrBuilder>( + files_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + files_ = null; + } + return filesBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); 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 b03a7eec0506..f067a512e738 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 @@ -1438,4 +1438,56 @@ com.google.cloud.securitycenter.v1.ContactDetails getContactsOrDefault( * .google.cloud.securitycenter.v1.Database database = 44; */ com.google.cloud.securitycenter.v1.DatabaseOrBuilder getDatabaseOrBuilder(); + + /** + * + * + *
+   * File associated with the finding.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + java.util.List getFilesList(); + /** + * + * + *
+   * File associated with the finding.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + com.google.cloud.securitycenter.v1.File getFiles(int index); + /** + * + * + *
+   * File associated with the finding.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + int getFilesCount(); + /** + * + * + *
+   * File associated with the finding.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + java.util.List + getFilesOrBuilderList(); + /** + * + * + *
+   * File associated with the finding.
+   * 
+ * + * repeated .google.cloud.securitycenter.v1.File files = 46; + */ + com.google.cloud.securitycenter.v1.FileOrBuilder getFilesOrBuilder(int index); } 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 98b291537b7d..c9f2383b1176 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 @@ -65,88 +65,90 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "curitycenter/v1/database.proto\0321google/c" + "loud/securitycenter/v1/exfiltration.prot" + "o\0324google/cloud/securitycenter/v1/extern" - + "al_system.proto\0320google/cloud/securityce" - + "nter/v1/iam_binding.proto\032.google/cloud/" - + "securitycenter/v1/indicator.proto\032/googl" - + "e/cloud/securitycenter/v1/kubernetes.pro" - + "to\0321google/cloud/securitycenter/v1/mitre" - + "_attack.proto\032,google/cloud/securitycent" - + "er/v1/process.proto\0323google/cloud/securi" - + "tycenter/v1/security_marks.proto\0322google" - + "/cloud/securitycenter/v1/vulnerability.p" - + "roto\032\034google/protobuf/struct.proto\032\037goog" - + "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" - + "tegory\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022X\n\021so" - + "urce_properties\030\007 \003(\0132=.google.cloud.sec" - + "uritycenter.v1.Finding.SourcePropertiesE" - + "ntry\022J\n\016security_marks\030\010 \001(\0132-.google.cl" - + "oud.securitycenter.v1.SecurityMarksB\003\340A\003" - + "\022.\n\nevent_time\030\t \001(\0132\032.google.protobuf.T" - + "imestamp\022/\n\013create_time\030\n \001(\0132\032.google.p" - + "rotobuf.Timestamp\022B\n\010severity\030\014 \001(\01620.go" - + "ogle.cloud.securitycenter.v1.Finding.Sev" - + "erity\022\026\n\016canonical_name\030\016 \001(\t\022:\n\004mute\030\017 " - + "\001(\0162,.google.cloud.securitycenter.v1.Fin" - + "ding.Mute\022K\n\rfinding_class\030\021 \001(\01624.googl" - + "e.cloud.securitycenter.v1.Finding.Findin" - + "gClass\022<\n\tindicator\030\022 \001(\0132).google.cloud" - + ".securitycenter.v1.Indicator\022D\n\rvulnerab" - + "ility\030\024 \001(\0132-.google.cloud.securitycente" - + "r.v1.Vulnerability\0229\n\020mute_update_time\030\025" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022[\n" - + "\020external_systems\030\026 \003(\0132<.google.cloud.s" - + "ecuritycenter.v1.Finding.ExternalSystems" - + "EntryB\003\340A\003\022A\n\014mitre_attack\030\031 \001(\0132+.googl" - + "e.cloud.securitycenter.v1.MitreAttack\0226\n" - + "\006access\030\032 \001(\0132&.google.cloud.securitycen" - + "ter.v1.Access\022?\n\013connections\030\037 \003(\0132*.goo" - + "gle.cloud.securitycenter.v1.Connection\022\026" - + "\n\016mute_initiator\030\034 \001(\t\022:\n\tprocesses\030\036 \003(" - + "\0132\'.google.cloud.securitycenter.v1.Proce" - + "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 \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" + + "al_system.proto\032)google/cloud/securityce" + + "nter/v1/file.proto\0320google/cloud/securit" + + "ycenter/v1/iam_binding.proto\032.google/clo" + + "ud/securitycenter/v1/indicator.proto\032/go" + + "ogle/cloud/securitycenter/v1/kubernetes." + + "proto\0321google/cloud/securitycenter/v1/mi" + + "tre_attack.proto\032,google/cloud/securityc" + + "enter/v1/process.proto\0323google/cloud/sec" + + "uritycenter/v1/security_marks.proto\0322goo" + + "gle/cloud/securitycenter/v1/vulnerabilit" + + "y.proto\032\034google/protobuf/struct.proto\032\037g" + + "oogle/protobuf/timestamp.proto\"\333\024\n\007Findi" + + "ng\022\014\n\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rreso" + + "urce_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=.google.cloud." + + "securitycenter.v1.Finding.SourceProperti" + + "esEntry\022J\n\016security_marks\030\010 \001(\0132-.google" + + ".cloud.securitycenter.v1.SecurityMarksB\003" + + "\340A\003\022.\n\nevent_time\030\t \001(\0132\032.google.protobu" + + "f.Timestamp\022/\n\013create_time\030\n \001(\0132\032.googl" + + "e.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.securitycenter.v1." + + "Finding.Mute\022K\n\rfinding_class\030\021 \001(\01624.go" + + "ogle.cloud.securitycenter.v1.Finding.Fin" + + "dingClass\022<\n\tindicator\030\022 \001(\0132).google.cl" + + "oud.securitycenter.v1.Indicator\022D\n\rvulne" + + "rability\030\024 \001(\0132-.google.cloud.securityce" + + "nter.v1.Vulnerability\0229\n\020mute_update_tim" + + "e\030\025 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022[\n\020external_systems\030\026 \003(\0132<.google.clou" + + "d.securitycenter.v1.Finding.ExternalSyst" + + "emsEntryB\003\340A\003\022A\n\014mitre_attack\030\031 \001(\0132+.go" + + "ogle.cloud.securitycenter.v1.MitreAttack" + + "\0226\n\006access\030\032 \001(\0132&.google.cloud.security" + + "center.v1.Access\022?\n\013connections\030\037 \003(\0132*." + + "google.cloud.securitycenter.v1.Connectio" + + "n\022\026\n\016mute_initiator\030\034 \001(\t\022:\n\tprocesses\030\036" + + " \003(\0132\'.google.cloud.securitycenter.v1.Pr" + + "ocess\022L\n\010contacts\030! \003(\01325.google.cloud.s" + + "ecuritycenter.v1.Finding.ContactsEntryB\003" + + "\340A\003\022?\n\013compliances\030\" \003(\0132*.google.cloud." + + "securitycenter.v1.Compliance\022 \n\023parent_d" + + "isplay_name\030$ \001(\tB\003\340A\003\022\023\n\013description\030% " + + "\001(\t\022B\n\014exfiltration\030& \001(\0132,.google.cloud" + + ".securitycenter.v1.Exfiltration\022@\n\014iam_b" + + "indings\030\' \003(\0132*.google.cloud.securitycen" + + "ter.v1.IamBinding\022\022\n\nnext_steps\030( \001(\t\022=\n" + + "\ncontainers\030* \003(\0132).google.cloud.securit" + + "ycenter.v1.Container\022>\n\nkubernetes\030+ \001(\013" + + "2*.google.cloud.securitycenter.v1.Kubern" + + "etes\022:\n\010database\030, \001(\0132(.google.cloud.se" + + "curitycenter.v1.Database\0223\n\005files\030. \003(\0132" + + "$.google.cloud.securitycenter.v1.File\032O\n" + + "\025SourcePropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005v" + + "alue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032f" + + "\n\024ExternalSystemsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005v" + + "alue\030\002 \001(\0132..google.cloud.securitycenter" + + ".v1.ExternalSystem:\0028\001\032_\n\rContactsEntry\022" + + "\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google.clo" + + "ud.securitycenter.v1.ContactDetails:\0028\001\"" + + "8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + + "E\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010Severity\022\030\n\024SEVERIT" + + "Y_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_UNS" + + "PECIFIED\020\000\022\t\n\005MUTED\020\001\022\013\n\007UNMUTED\020\002\022\r\n\tUN" + + "DEFINED\020\004\"\202\001\n\014FindingClass\022\035\n\031FINDING_CL" + + "ASS_UNSPECIFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERA" + + "BILITY\020\002\022\024\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERV" + + "ATION\020\004\022\r\n\tSCC_ERROR\020\005:\333\001\352A\327\001\n%securityc" + + "enter.googleapis.com/Finding\022@organizati" + + "ons/{organization}/sources/{source}/find" + + "ings/{finding}\0224folders/{folder}/sources" + + "/{source}/findings/{finding}\0226projects/{" + + "project}/sources/{source}/findings/{find" + + "ing}B\332\001\n\"com.google.cloud.securitycenter" + + ".v1P\001ZLgoogle.golang.org/genproto/google" + + "apis/cloud/securitycenter/v1;securitycen" + + "ter\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036G" + + "oogle\\Cloud\\SecurityCenter\\V1\352\002!Google::" + + "Cloud::SecurityCenter::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -162,6 +164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v1.DatabaseProto.getDescriptor(), com.google.cloud.securitycenter.v1.ExfiltrationProto.getDescriptor(), com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(), + com.google.cloud.securitycenter.v1.FileProto.getDescriptor(), com.google.cloud.securitycenter.v1.IamBindingProto.getDescriptor(), com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(), com.google.cloud.securitycenter.v1.KubernetesProto.getDescriptor(), @@ -211,6 +214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Containers", "Kubernetes", "Database", + "Files", }); internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor = internal_static_google_cloud_securitycenter_v1_Finding_descriptor.getNestedTypes().get(0); @@ -252,6 +256,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v1.DatabaseProto.getDescriptor(); com.google.cloud.securitycenter.v1.ExfiltrationProto.getDescriptor(); com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(); + com.google.cloud.securitycenter.v1.FileProto.getDescriptor(); com.google.cloud.securitycenter.v1.IamBindingProto.getDescriptor(); com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(); com.google.cloud.securitycenter.v1.KubernetesProto.getDescriptor(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java index 4c1b5ced41c2..f80a97da8ee4 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java @@ -22,7 +22,7 @@ * * *
- * Request message for listing  BigQuery exports at a given scope e.g.
+ * Request message for listing BigQuery exports at a given scope e.g.
  * organization, folder or project.
  * 
* @@ -384,7 +384,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for listing  BigQuery exports at a given scope e.g.
+   * Request message for listing BigQuery exports at a given scope e.g.
    * organization, folder or project.
    * 
* diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java index eec8326c2162..ee0a77e26f57 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java @@ -855,6 +855,16 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { * ABUSE_ELEVATION_CONTROL_MECHANISM = 34; */ ABUSE_ELEVATION_CONTROL_MECHANISM(34), + /** + * + * + *
+     * T1078.001
+     * 
+ * + * DEFAULT_ACCOUNTS = 35; + */ + DEFAULT_ACCOUNTS(35), UNRECOGNIZED(-1), ; @@ -1208,6 +1218,16 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { * ABUSE_ELEVATION_CONTROL_MECHANISM = 34; */ public static final int ABUSE_ELEVATION_CONTROL_MECHANISM_VALUE = 34; + /** + * + * + *
+     * T1078.001
+     * 
+ * + * DEFAULT_ACCOUNTS = 35; + */ + public static final int DEFAULT_ACCOUNTS_VALUE = 35; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -1303,6 +1323,8 @@ public static Technique forNumber(int value) { return ACCESS_TOKEN_MANIPULATION; case 34: return ABUSE_ELEVATION_CONTROL_MECHANISM; + case 35: + return DEFAULT_ACCOUNTS; default: return null; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java index 172123aed95d..eaec5063191b 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java @@ -42,7 +42,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/securitycenter/v1/mitre_a" + "ttack.proto\022\036google.cloud.securitycenter" - + ".v1\"\322\014\n\013MitreAttack\022J\n\016primary_tactic\030\001 " + + ".v1\"\350\014\n\013MitreAttack\022J\n\016primary_tactic\030\001 " + "\001(\01622.google.cloud.securitycenter.v1.Mit" + "reAttack.Tactic\022Q\n\022primary_techniques\030\002 " + "\003(\01625.google.cloud.securitycenter.v1.Mit" @@ -58,7 +58,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\023\n\017DEFENSE_EVASION\020\007\022\025\n\021CREDENTIAL_ACCE" + "SS\020\t\022\r\n\tDISCOVERY\020\n\022\024\n\020LATERAL_MOVEMENT\020" + "\013\022\016\n\nCOLLECTION\020\014\022\027\n\023COMMAND_AND_CONTROL" - + "\020\004\022\020\n\014EXFILTRATION\020\r\022\n\n\006IMPACT\020\016\"\265\007\n\tTec" + + "\020\004\022\020\n\014EXFILTRATION\020\r\022\n\n\006IMPACT\020\016\"\313\007\n\tTec" + "hnique\022\031\n\025TECHNIQUE_UNSPECIFIED\020\000\022\023\n\017ACT" + "IVE_SCANNING\020\001\022\026\n\022SCANNING_IP_BLOCKS\020\002\022\031" + "\n\025INGRESS_TOOL_TRANSFER\020\003\022\016\n\nNATIVE_API\020" @@ -82,13 +82,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_POLICY_MODIFICATION\020\036\022\023\n\017IMPAIR_DEFENSE" + "S\020\037\022\035\n\031NETWORK_SERVICE_DISCOVERY\020 \022\035\n\031AC" + "CESS_TOKEN_MANIPULATION\020!\022%\n!ABUSE_ELEVA" - + "TION_CONTROL_MECHANISM\020\"B\354\001\n\"com.google." - + "cloud.securitycenter.v1B\020MitreAttackProt" - + "oP\001ZLgoogle.golang.org/genproto/googleap" - + "is/cloud/securitycenter/v1;securitycente" - + "r\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Goo" - + "gle\\Cloud\\SecurityCenter\\V1\352\002!Google::Cl" - + "oud::SecurityCenter::V1b\006proto3" + + "TION_CONTROL_MECHANISM\020\"\022\024\n\020DEFAULT_ACCO" + + "UNTS\020#B\354\001\n\"com.google.cloud.securitycent" + + "er.v1B\020MitreAttackProtoP\001ZLgoogle.golang" + + ".org/genproto/googleapis/cloud/securityc" + + "enter/v1;securitycenter\252\002\036Google.Cloud.S" + + "ecurityCenter.V1\312\002\036Google\\Cloud\\Security" + + "Center\\V1\352\002!Google::Cloud::SecurityCente" + + "r::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java index 999fbac53390..9db3506e7e3e 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -105,7 +105,7 @@ public java.lang.String getName() { * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -610,7 +610,7 @@ public Builder mergeFrom( * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -637,7 +637,7 @@ public java.lang.String getName() { * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -664,7 +664,7 @@ public com.google.protobuf.ByteString getNameBytes() { * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -690,7 +690,7 @@ public Builder setName(java.lang.String value) { * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -712,7 +712,7 @@ public Builder clearName() { * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". * * * diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java index 1482a44f5ea9..6e8f1bed2a67 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface SetFindingStateRequestOrBuilder * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -47,7 +47,7 @@ public interface SetFindingStateRequestOrBuilder * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". * * * diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java index 6cac56dd00a0..e468d59ba605 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java @@ -77,9 +77,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/finding/{finding_id}", - * "projects/{project_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -107,9 +107,9 @@ public java.lang.String getName() { * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/finding/{finding_id}", - * "projects/{project_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -530,9 +530,9 @@ public Builder mergeFrom( * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/finding/{finding_id}", - * "projects/{project_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -559,9 +559,9 @@ public java.lang.String getName() { * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/finding/{finding_id}", - * "projects/{project_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -588,9 +588,9 @@ public com.google.protobuf.ByteString getNameBytes() { * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/finding/{finding_id}", - * "projects/{project_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -616,9 +616,9 @@ public Builder setName(java.lang.String value) { * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/finding/{finding_id}", - * "projects/{project_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -640,9 +640,9 @@ public Builder clearName() { * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/finding/{finding_id}", - * "projects/{project_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". * * * diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java index 317dcd3f1edd..6250c2d64377 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java @@ -30,9 +30,9 @@ public interface SetMuteRequestOrBuilder * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/finding/{finding_id}", - * "projects/{project_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". * * * @@ -49,9 +49,9 @@ public interface SetMuteRequestOrBuilder * Required. The relative resource name of the finding. See: * https://cloud.google.com/apis/design/resource_names#relative_resource_name * Example: - * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/finding/{finding_id}", - * "projects/{project_id}/sources/{source_id}/finding/{finding_id}". + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". * * * 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 126d5e59feb4..755b661772dd 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 @@ -26,6 +26,7 @@ import "google/cloud/securitycenter/v1/container.proto"; import "google/cloud/securitycenter/v1/database.proto"; import "google/cloud/securitycenter/v1/exfiltration.proto"; import "google/cloud/securitycenter/v1/external_system.proto"; +import "google/cloud/securitycenter/v1/file.proto"; import "google/cloud/securitycenter/v1/iam_binding.proto"; import "google/cloud/securitycenter/v1/indicator.proto"; import "google/cloud/securitycenter/v1/kubernetes.proto"; @@ -332,4 +333,7 @@ message Finding { // Database associated with the finding. Database database = 44; + + // File associated with the finding. + repeated File files = 46; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto index ba654822b099..ab8262ccfbb3 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto @@ -183,6 +183,9 @@ message MitreAttack { // T1548 ABUSE_ELEVATION_CONTROL_MECHANISM = 34; + + // T1078.001 + DEFAULT_ACCOUNTS = 35; } // The MITRE ATT&CK tactic most closely represented by this finding, if any. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto index a70726cba72e..24e5e27e610d 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto @@ -1655,7 +1655,7 @@ message SetFindingStateRequest { // Required. The relative resource name of the finding. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1676,9 +1676,9 @@ message SetMuteRequest { // Required. The relative resource name of the finding. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}", - // "folders/{folder_id}/sources/{source_id}/finding/{finding_id}", - // "projects/{project_id}/sources/{source_id}/finding/{finding_id}". + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + // "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + // "projects/{project_id}/sources/{source_id}/findings/{finding_id}". string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1829,7 +1829,7 @@ message UpdateBigQueryExportRequest { google.protobuf.FieldMask update_mask = 2; } -// Request message for listing BigQuery exports at a given scope e.g. +// Request message for listing BigQuery exports at a given scope e.g. // organization, folder or project. message ListBigQueryExportsRequest { // Required. The parent, which owns the collection of BigQuery exports. Its