diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md
index 1cb9b08182c3..35af9bcaa1ad 100644
--- a/java-securitycenter/README.md
+++ b/java-securitycenter/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + * String parent = "parent-995424086"; + * CustomConfig customConfig = CustomConfig.newBuilder().build(); + * SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = + * SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.newBuilder().build(); + * SimulateSecurityHealthAnalyticsCustomModuleResponse response = + * securityCenterClient.simulateSecurityHealthAnalyticsCustomModule( + * parent, customConfig, resource); + * } + * }+ * + * @param parent Required. The relative resource name of the organization, project, or folder. + * See: https://cloud.google.com/apis/design/resource_names#relative_resource_name An example + * is: "organizations/{organization_id}". + * @param customConfig Required. The user specified custom configuration to test. + * @param resource Required. Resource data to simulate custom module against. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SimulateSecurityHealthAnalyticsCustomModuleResponse + simulateSecurityHealthAnalyticsCustomModule( + String parent, + CustomConfig customConfig, + SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource) { + SimulateSecurityHealthAnalyticsCustomModuleRequest request = + SimulateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setParent(parent) + .setCustomConfig(customConfig) + .setResource(resource) + .build(); + return simulateSecurityHealthAnalyticsCustomModule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Simulates a given SecurityHealthAnalyticsCustomModule and Resource. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + * SimulateSecurityHealthAnalyticsCustomModuleRequest request = + * SimulateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + * .setParent("parent-995424086") + * .setCustomConfig(CustomConfig.newBuilder().build()) + * .setResource( + * SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.newBuilder() + * .build()) + * .build(); + * SimulateSecurityHealthAnalyticsCustomModuleResponse response = + * securityCenterClient.simulateSecurityHealthAnalyticsCustomModule(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SimulateSecurityHealthAnalyticsCustomModuleResponse + simulateSecurityHealthAnalyticsCustomModule( + SimulateSecurityHealthAnalyticsCustomModuleRequest request) { + return simulateSecurityHealthAnalyticsCustomModuleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Simulates a given SecurityHealthAnalyticsCustomModule and Resource. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + * SimulateSecurityHealthAnalyticsCustomModuleRequest request = + * SimulateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + * .setParent("parent-995424086") + * .setCustomConfig(CustomConfig.newBuilder().build()) + * .setResource( + * SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.newBuilder() + * .build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallable< + SimulateSecurityHealthAnalyticsCustomModuleRequest, + SimulateSecurityHealthAnalyticsCustomModuleResponse> + simulateSecurityHealthAnalyticsCustomModuleCallable() { + return stub.simulateSecurityHealthAnalyticsCustomModuleCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates external system. This is for a given finding. diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java index 83c06025b32d..575b160cd95a 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java @@ -350,6 +350,18 @@ public UnaryCallSettingsfuture = + * securityCenterClient + * .simulateSecurityHealthAnalyticsCustomModuleCallable() + * .futureCall(request); + * // Do something. + * SimulateSecurityHealthAnalyticsCustomModuleResponse response = future.get(); + * } + * }
+ * Simulates a given SecurityHealthAnalyticsCustomModule and Resource. + *+ */ + default void simulateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSimulateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + /** * * @@ -3566,6 +3646,27 @@ public void testIamPermissions( responseObserver); } + /** + * + * + *
+ * Simulates a given SecurityHealthAnalyticsCustomModule and Resource. + *+ */ + public void simulateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1 + .SimulateSecurityHealthAnalyticsCustomModuleResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4281,6 +4382,24 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } + /** + * + * + *
+ * Simulates a given SecurityHealthAnalyticsCustomModule and Resource. + *+ */ + public com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse + simulateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getSimulateSecurityHealthAnalyticsCustomModuleMethod(), + getCallOptions(), + request); + } + /** * * @@ -4981,6 +5100,24 @@ protected SecurityCenterFutureStub build( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } + /** + * + * + *
+ * Simulates a given SecurityHealthAnalyticsCustomModule and Resource. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse> + simulateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getSimulateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request); + } + /** * * @@ -5201,18 +5338,19 @@ protected SecurityCenterFutureStub build( private static final int METHODID_SET_MUTE = 29; private static final int METHODID_SET_IAM_POLICY = 30; private static final int METHODID_TEST_IAM_PERMISSIONS = 31; - private static final int METHODID_UPDATE_EXTERNAL_SYSTEM = 32; - private static final int METHODID_UPDATE_FINDING = 33; - private static final int METHODID_UPDATE_MUTE_CONFIG = 34; - private static final int METHODID_UPDATE_NOTIFICATION_CONFIG = 35; - private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 36; - private static final int METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 37; - private static final int METHODID_UPDATE_SOURCE = 38; - private static final int METHODID_UPDATE_SECURITY_MARKS = 39; - private static final int METHODID_CREATE_BIG_QUERY_EXPORT = 40; - private static final int METHODID_DELETE_BIG_QUERY_EXPORT = 41; - private static final int METHODID_UPDATE_BIG_QUERY_EXPORT = 42; - private static final int METHODID_LIST_BIG_QUERY_EXPORTS = 43; + private static final int METHODID_SIMULATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 32; + private static final int METHODID_UPDATE_EXTERNAL_SYSTEM = 33; + private static final int METHODID_UPDATE_FINDING = 34; + private static final int METHODID_UPDATE_MUTE_CONFIG = 35; + private static final int METHODID_UPDATE_NOTIFICATION_CONFIG = 36; + private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 37; + private static final int METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 38; + private static final int METHODID_UPDATE_SOURCE = 39; + private static final int METHODID_UPDATE_SECURITY_MARKS = 40; + private static final int METHODID_CREATE_BIG_QUERY_EXPORT = 41; + private static final int METHODID_DELETE_BIG_QUERY_EXPORT = 42; + private static final int METHODID_UPDATE_BIG_QUERY_EXPORT = 43; + private static final int METHODID_LIST_BIG_QUERY_EXPORTS = 44; private static final class MethodHandlers
string mute_annotation = 3 [deprecated = true];
*
* @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is
- * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
+ * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=787
* @return The muteAnnotation.
*/
@java.lang.Override
@@ -259,7 +259,7 @@ public java.lang.String getMuteAnnotation() {
* string mute_annotation = 3 [deprecated = true];
*
* @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is
- * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
+ * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=787
* @return The bytes for muteAnnotation.
*/
@java.lang.Override
@@ -1011,7 +1011,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
* string mute_annotation = 3 [deprecated = true];
*
* @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is
- * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
+ * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=787
* @return The muteAnnotation.
*/
@java.lang.Deprecated
@@ -1037,7 +1037,7 @@ public java.lang.String getMuteAnnotation() {
* string mute_annotation = 3 [deprecated = true];
*
* @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is
- * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
+ * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=787
* @return The bytes for muteAnnotation.
*/
@java.lang.Deprecated
@@ -1063,7 +1063,7 @@ public com.google.protobuf.ByteString getMuteAnnotationBytes() {
* string mute_annotation = 3 [deprecated = true];
*
* @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is
- * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
+ * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=787
* @param value The muteAnnotation to set.
* @return This builder for chaining.
*/
@@ -1088,7 +1088,7 @@ public Builder setMuteAnnotation(java.lang.String value) {
* string mute_annotation = 3 [deprecated = true];
*
* @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is
- * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
+ * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=787
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -1109,7 +1109,7 @@ public Builder clearMuteAnnotation() {
* string mute_annotation = 3 [deprecated = true];
*
* @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is
- * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
+ * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=787
* @param value The bytes for muteAnnotation to set.
* @return This builder for chaining.
*/
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java
index 259c4794c3f3..dd86264f0518 100644
--- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java
@@ -130,7 +130,7 @@ public interface BulkMuteFindingsRequestOrBuilder
* string mute_annotation = 3 [deprecated = true];
*
* @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is
- * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
+ * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=787
* @return The muteAnnotation.
*/
@java.lang.Deprecated
@@ -146,7 +146,7 @@ public interface BulkMuteFindingsRequestOrBuilder
* string mute_annotation = 3 [deprecated = true];
*
* @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is
- * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
+ * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=787
* @return The bytes for muteAnnotation.
*/
@java.lang.Deprecated
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java
index 9461a9f2ef5d..46f1541be441 100644
--- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java
@@ -207,6 +207,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -289,638 +305,673 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "d/securitycenter/v1/run_asset_discovery_"
+ "response.proto\032Lgoogle/cloud/securitycen"
+ "ter/v1/security_health_analytics_custom_"
- + "module.proto\0323google/cloud/securitycente"
- + "r/v1/security_marks.proto\032+google/cloud/"
- + "securitycenter/v1/source.proto\032\036google/i"
- + "am/v1/iam_policy.proto\032\032google/iam/v1/po"
- + "licy.proto\032#google/longrunning/operation"
- + "s.proto\032\036google/protobuf/duration.proto\032"
- + "\033google/protobuf/empty.proto\032 google/pro"
- + "tobuf/field_mask.proto\032\034google/protobuf/"
- + "struct.proto\032\037google/protobuf/timestamp."
- + "proto\"b\n\027BulkMuteFindingsRequest\022\032\n\006pare"
- + "nt\030\001 \001(\tB\n\342A\001\002\372A\003\n\001*\022\016\n\006filter\030\002 \001(\t\022\033\n\017"
- + "mute_annotation\030\003 \001(\tB\002\030\001\"\032\n\030BulkMuteFin"
- + "dingsResponse\"\257\001\n\024CreateFindingRequest\022="
- + "\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\n$securitycenter."
- + "googleapis.com/Source\022\030\n\nfinding_id\030\002 \001("
- + "\tB\004\342A\001\002\022>\n\007finding\030\003 \001(\0132\'.google.cloud."
- + "securitycenter.v1.FindingB\004\342A\001\002\"\301\001\n\027Crea"
- + "teMuteConfigRequest\022A\n\006parent\030\001 \001(\tB1\342A\001"
- + "\002\372A*\022(securitycenter.googleapis.com/Mute"
- + "Config\022E\n\013mute_config\030\002 \001(\0132*.google.clo"
- + "ud.securitycenter.v1.MuteConfigB\004\342A\001\002\022\034\n"
- + "\016mute_config_id\030\003 \001(\tB\004\342A\001\002\"\334\001\n\037CreateNo"
- + "tificationConfigRequest\022I\n\006parent\030\001 \001(\tB"
- + "9\342A\001\002\372A2\0220securitycenter.googleapis.com/"
- + "NotificationConfig\022\027\n\tconfig_id\030\002 \001(\tB\004\342"
- + "A\001\002\022U\n\023notification_config\030\003 \001(\01322.googl"
- + "e.cloud.securitycenter.v1.NotificationCo"
- + "nfigB\004\342A\001\002\"\212\002\n0CreateSecurityHealthAnaly"
- + "ticsCustomModuleRequest\022Z\n\006parent\030\001 \001(\tB"
- + "J\342A\001\002\372AC\022Asecuritycenter.googleapis.com/"
- + "SecurityHealthAnalyticsCustomModule\022z\n\'s"
- + "ecurity_health_analytics_custom_module\030\002"
- + " \001(\0132C.google.cloud.securitycenter.v1.Se"
- + "curityHealthAnalyticsCustomModuleB\004\342A\001\002\""
- + "\236\001\n\023CreateSourceRequest\022I\n\006parent\030\001 \001(\tB"
- + "9\342A\001\002\372A2\n0cloudresourcemanager.googleapi"
- + "s.com/Organization\022<\n\006source\030\002 \001(\0132&.goo"
- + "gle.cloud.securitycenter.v1.SourceB\004\342A\001\002"
- + "\"Z\n\027DeleteMuteConfigRequest\022?\n\004name\030\001 \001("
- + "\tB1\342A\001\002\372A*\n(securitycenter.googleapis.co"
- + "m/MuteConfig\"j\n\037DeleteNotificationConfig"
- + "Request\022G\n\004name\030\001 \001(\tB9\342A\001\002\372A2\n0security"
- + "center.googleapis.com/NotificationConfig"
- + "\"\214\001\n0DeleteSecurityHealthAnalyticsCustom"
- + "ModuleRequest\022X\n\004name\030\001 \001(\tBJ\342A\001\002\372AC\nAse"
- + "curitycenter.googleapis.com/SecurityHeal"
- + "thAnalyticsCustomModule\"_\n\030GetBigQueryEx"
- + "portRequest\022C\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,secu"
- + "ritycenter.googleapis.com/BigQueryExport"
- + "\"W\n\024GetMuteConfigRequest\022?\n\004name\030\001 \001(\tB1"
- + "\342A\001\002\372A*\n(securitycenter.googleapis.com/M"
- + "uteConfig\"g\n\034GetNotificationConfigReques"
- + "t\022G\n\004name\030\001 \001(\tB9\342A\001\002\372A2\n0securitycenter"
- + ".googleapis.com/NotificationConfig\"k\n\036Ge"
- + "tOrganizationSettingsRequest\022I\n\004name\030\001 \001"
- + "(\tB;\342A\001\002\372A4\n2securitycenter.googleapis.c"
- + "om/OrganizationSettings\"\233\001\n6GetEffective"
- + "SecurityHealthAnalyticsCustomModuleReque"
- + "st\022a\n\004name\030\001 \001(\tBS\342A\001\002\372AL\nJsecuritycente"
- + "r.googleapis.com/EffectiveSecurityHealth"
- + "AnalyticsCustomModule\"\211\001\n-GetSecurityHea"
- + "lthAnalyticsCustomModuleRequest\022X\n\004name\030"
- + "\001 \001(\tBJ\342A\001\002\372AC\nAsecuritycenter.googleapi"
- + "s.com/SecurityHealthAnalyticsCustomModul"
- + "e\"O\n\020GetSourceRequest\022;\n\004name\030\001 \001(\tB-\342A\001"
- + "\002\372A&\n$securitycenter.googleapis.com/Sour"
- + "ce\"\205\002\n\022GroupAssetsRequest\022<\n\006parent\030\001 \001("
- + "\tB,\342A\001\002\372A%\022#securitycenter.googleapis.co"
- + "m/Asset\022\016\n\006filter\030\002 \001(\t\022\026\n\010group_by\030\003 \001("
- + "\tB\004\342A\001\002\0223\n\020compare_duration\030\004 \001(\0132\031.goog"
- + "le.protobuf.Duration\022-\n\tread_time\030\005 \001(\0132"
- + "\032.google.protobuf.Timestamp\022\022\n\npage_toke"
- + "n\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\270\001\n\023GroupAsse"
- + "tsResponse\022E\n\020group_by_results\030\001 \003(\0132+.g"
- + "oogle.cloud.securitycenter.v1.GroupResul"
- + "t\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf.T"
- + "imestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntot"
- + "al_size\030\004 \001(\005\"\210\002\n\024GroupFindingsRequest\022="
- + "\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\n$securitycenter."
- + "googleapis.com/Source\022\016\n\006filter\030\002 \001(\t\022\026\n"
- + "\010group_by\030\003 \001(\tB\004\342A\001\002\022-\n\tread_time\030\004 \001(\013"
- + "2\032.google.protobuf.Timestamp\0223\n\020compare_"
- + "duration\030\005 \001(\0132\031.google.protobuf.Duratio"
- + "n\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005"
- + "\"\272\001\n\025GroupFindingsResponse\022E\n\020group_by_r"
- + "esults\030\001 \003(\0132+.google.cloud.securitycent"
- + "er.v1.GroupResult\022-\n\tread_time\030\002 \001(\0132\032.g"
- + "oogle.protobuf.Timestamp\022\027\n\017next_page_to"
- + "ken\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\270\001\n\013GroupR"
- + "esult\022O\n\nproperties\030\001 \003(\0132;.google.cloud"
- + ".securitycenter.v1.GroupResult.Propertie"
- + "sEntry\022\r\n\005count\030\002 \001(\003\032I\n\017PropertiesEntry"
- + "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr"
- + "otobuf.Value:\0028\001\"\276\001\n9ListDescendantSecur"
- + "ityHealthAnalyticsCustomModulesRequest\022Z"
- + "\n\006parent\030\001 \001(\tBJ\342A\001\002\372AC\022Asecuritycenter."
- + "googleapis.com/SecurityHealthAnalyticsCu"
- + "stomModule\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to"
- + "ken\030\003 \001(\t\"\314\001\n:ListDescendantSecurityHeal"
- + "thAnalyticsCustomModulesResponse\022u\n(secu"
- + "rity_health_analytics_custom_modules\030\001 \003"
- + "(\0132C.google.cloud.securitycenter.v1.Secu"
- + "rityHealthAnalyticsCustomModule\022\027\n\017next_"
- + "page_token\030\002 \001(\t\"\202\001\n\026ListMuteConfigsRequ"
- + "est\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(securityce"
- + "nter.googleapis.com/MuteConfig\022\021\n\tpage_s"
- + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\027ListMut"
- + "eConfigsResponse\022@\n\014mute_configs\030\001 \003(\0132*"
- + ".google.cloud.securitycenter.v1.MuteConf"
- + "ig\022\027\n\017next_page_token\030\002 \001(\t\"\222\001\n\036ListNoti"
- + "ficationConfigsRequest\022I\n\006parent\030\001 \001(\tB9"
- + "\342A\001\002\372A2\0220securitycenter.googleapis.com/N"
- + "otificationConfig\022\022\n\npage_token\030\002 \001(\t\022\021\n"
- + "\tpage_size\030\003 \001(\005\"\214\001\n\037ListNotificationCon"
- + "figsResponse\022P\n\024notification_configs\030\001 \003"
- + "(\01322.google.cloud.securitycenter.v1.Noti"
- + "ficationConfig\022\027\n\017next_page_token\030\002 \001(\t\""
- + "\275\001\n8ListEffectiveSecurityHealthAnalytics"
- + "CustomModulesRequest\022Z\n\006parent\030\001 \001(\tBJ\342A"
- + "\001\002\372AC\022Asecuritycenter.googleapis.com/Sec"
- + "urityHealthAnalyticsCustomModule\022\021\n\tpage"
- + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\337\001\n9List"
+ + "config.proto\032Lgoogle/cloud/securitycente"
+ + "r/v1/security_health_analytics_custom_mo"
+ + "dule.proto\0323google/cloud/securitycenter/"
+ + "v1/security_marks.proto\032+google/cloud/se"
+ + "curitycenter/v1/source.proto\032\036google/iam"
+ + "/v1/iam_policy.proto\032\032google/iam/v1/poli"
+ + "cy.proto\032#google/longrunning/operations."
+ + "proto\032\036google/protobuf/duration.proto\032\033g"
+ + "oogle/protobuf/empty.proto\032 google/proto"
+ + "buf/field_mask.proto\032\034google/protobuf/st"
+ + "ruct.proto\032\037google/protobuf/timestamp.pr"
+ + "oto\032\027google/rpc/status.proto\"b\n\027BulkMute"
+ + "FindingsRequest\022\032\n\006parent\030\001 \001(\tB\n\342A\001\002\372A\003"
+ + "\n\001*\022\016\n\006filter\030\002 \001(\t\022\033\n\017mute_annotation\030\003"
+ + " \001(\tB\002\030\001\"\032\n\030BulkMuteFindingsResponse\"\257\001\n"
+ + "\024CreateFindingRequest\022=\n\006parent\030\001 \001(\tB-\342"
+ + "A\001\002\372A&\n$securitycenter.googleapis.com/So"
+ + "urce\022\030\n\nfinding_id\030\002 \001(\tB\004\342A\001\002\022>\n\007findin"
+ + "g\030\003 \001(\0132\'.google.cloud.securitycenter.v1"
+ + ".FindingB\004\342A\001\002\"\301\001\n\027CreateMuteConfigReque"
+ + "st\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(securitycen"
+ + "ter.googleapis.com/MuteConfig\022E\n\013mute_co"
+ + "nfig\030\002 \001(\0132*.google.cloud.securitycenter"
+ + ".v1.MuteConfigB\004\342A\001\002\022\034\n\016mute_config_id\030\003"
+ + " \001(\tB\004\342A\001\002\"\334\001\n\037CreateNotificationConfigR"
+ + "equest\022I\n\006parent\030\001 \001(\tB9\342A\001\002\372A2\0220securit"
+ + "ycenter.googleapis.com/NotificationConfi"
+ + "g\022\027\n\tconfig_id\030\002 \001(\tB\004\342A\001\002\022U\n\023notificati"
+ + "on_config\030\003 \001(\01322.google.cloud.securityc"
+ + "enter.v1.NotificationConfigB\004\342A\001\002\"\212\002\n0Cr"
+ + "eateSecurityHealthAnalyticsCustomModuleR"
+ + "equest\022Z\n\006parent\030\001 \001(\tBJ\342A\001\002\372AC\022Asecurit"
+ + "ycenter.googleapis.com/SecurityHealthAna"
+ + "lyticsCustomModule\022z\n\'security_health_an"
+ + "alytics_custom_module\030\002 \001(\0132C.google.clo"
+ + "ud.securitycenter.v1.SecurityHealthAnaly"
+ + "ticsCustomModuleB\004\342A\001\002\"\236\001\n\023CreateSourceR"
+ + "equest\022I\n\006parent\030\001 \001(\tB9\342A\001\002\372A2\n0cloudre"
+ + "sourcemanager.googleapis.com/Organizatio"
+ + "n\022<\n\006source\030\002 \001(\0132&.google.cloud.securit"
+ + "ycenter.v1.SourceB\004\342A\001\002\"Z\n\027DeleteMuteCon"
+ + "figRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(secur"
+ + "itycenter.googleapis.com/MuteConfig\"j\n\037D"
+ + "eleteNotificationConfigRequest\022G\n\004name\030\001"
+ + " \001(\tB9\342A\001\002\372A2\n0securitycenter.googleapis"
+ + ".com/NotificationConfig\"\214\001\n0DeleteSecuri"
+ + "tyHealthAnalyticsCustomModuleRequest\022X\n\004"
+ + "name\030\001 \001(\tBJ\342A\001\002\372AC\nAsecuritycenter.goog"
+ + "leapis.com/SecurityHealthAnalyticsCustom"
+ + "Module\"_\n\030GetBigQueryExportRequest\022C\n\004na"
+ + "me\030\001 \001(\tB5\342A\001\002\372A.\n,securitycenter.google"
+ + "apis.com/BigQueryExport\"W\n\024GetMuteConfig"
+ + "Request\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(security"
+ + "center.googleapis.com/MuteConfig\"g\n\034GetN"
+ + "otificationConfigRequest\022G\n\004name\030\001 \001(\tB9"
+ + "\342A\001\002\372A2\n0securitycenter.googleapis.com/N"
+ + "otificationConfig\"k\n\036GetOrganizationSett"
+ + "ingsRequest\022I\n\004name\030\001 \001(\tB;\342A\001\002\372A4\n2secu"
+ + "ritycenter.googleapis.com/OrganizationSe"
+ + "ttings\"\233\001\n6GetEffectiveSecurityHealthAna"
+ + "lyticsCustomModuleRequest\022a\n\004name\030\001 \001(\tB"
+ + "S\342A\001\002\372AL\nJsecuritycenter.googleapis.com/"
+ "EffectiveSecurityHealthAnalyticsCustomMo"
- + "dulesResponse\022\210\001\n2effective_security_hea"
- + "lth_analytics_custom_modules\030\001 \003(\0132L.goo"
- + "gle.cloud.securitycenter.v1.EffectiveSec"
- + "urityHealthAnalyticsCustomModule\022\027\n\017next"
- + "_page_token\030\002 \001(\t\"\264\001\n/ListSecurityHealth"
- + "AnalyticsCustomModulesRequest\022Z\n\006parent\030"
- + "\001 \001(\tBJ\342A\001\002\372AC\022Asecuritycenter.googleapi"
- + "s.com/SecurityHealthAnalyticsCustomModul"
- + "e\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t"
- + "\"\302\001\n0ListSecurityHealthAnalyticsCustomMo"
- + "dulesResponse\022u\n(security_health_analyti"
- + "cs_custom_modules\030\001 \003(\0132C.google.cloud.s"
- + "ecuritycenter.v1.SecurityHealthAnalytics"
- + "CustomModule\022\027\n\017next_page_token\030\002 \001(\t\"z\n"
- + "\022ListSourcesRequest\022=\n\006parent\030\001 \001(\tB-\342A\001"
- + "\002\372A&\022$securitycenter.googleapis.com/Sour"
- + "ce\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\007 \001("
- + "\005\"g\n\023ListSourcesResponse\0227\n\007sources\030\001 \003("
- + "\0132&.google.cloud.securitycenter.v1.Sourc"
- + "e\022\027\n\017next_page_token\030\002 \001(\t\"\256\002\n\021ListAsset"
+ + "dule\"\211\001\n-GetSecurityHealthAnalyticsCusto"
+ + "mModuleRequest\022X\n\004name\030\001 \001(\tBJ\342A\001\002\372AC\nAs"
+ + "ecuritycenter.googleapis.com/SecurityHea"
+ + "lthAnalyticsCustomModule\"O\n\020GetSourceReq"
+ + "uest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$securitycen"
+ + "ter.googleapis.com/Source\"\205\002\n\022GroupAsset"
+ "sRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#secur"
+ "itycenter.googleapis.com/Asset\022\016\n\006filter"
- + "\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004 "
- + "\001(\0132\032.google.protobuf.Timestamp\0223\n\020compa"
- + "re_duration\030\005 \001(\0132\031.google.protobuf.Dura"
- + "tion\022.\n\nfield_mask\030\007 \001(\0132\032.google.protob"
- + "uf.FieldMask\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage"
- + "_size\030\t \001(\005\"\303\003\n\022ListAssetsResponse\022`\n\023li"
- + "st_assets_results\030\001 \003(\0132C.google.cloud.s"
- + "ecuritycenter.v1.ListAssetsResponse.List"
- + "AssetsResult\022-\n\tread_time\030\002 \001(\0132\032.google"
- + ".protobuf.Timestamp\022\027\n\017next_page_token\030\003"
- + " \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032\356\001\n\020ListAssetsR"
- + "esult\0224\n\005asset\030\001 \001(\0132%.google.cloud.secu"
- + "ritycenter.v1.Asset\022e\n\014state_change\030\002 \001("
- + "\0162O.google.cloud.securitycenter.v1.ListA"
- + "ssetsResponse.ListAssetsResult.StateChan"
- + "ge\"=\n\013StateChange\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001"
- + "\022\013\n\007REMOVED\020\002\022\n\n\006ACTIVE\020\003\"\261\002\n\023ListFindin"
- + "gsRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\n$secu"
- + "ritycenter.googleapis.com/Source\022\016\n\006filt"
- + "er\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_time\030"
- + "\004 \001(\0132\032.google.protobuf.Timestamp\0223\n\020com"
- + "pare_duration\030\005 \001(\0132\031.google.protobuf.Du"
- + "ration\022.\n\nfield_mask\030\007 \001(\0132\032.google.prot"
- + "obuf.FieldMask\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpa"
- + "ge_size\030\t \001(\005\"\255\006\n\024ListFindingsResponse\022f"
- + "\n\025list_findings_results\030\001 \003(\0132G.google.c"
- + "loud.securitycenter.v1.ListFindingsRespo"
- + "nse.ListFindingsResult\022-\n\tread_time\030\002 \001("
- + "\0132\032.google.protobuf.Timestamp\022\027\n\017next_pa"
- + "ge_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032\320\004\n\022L"
- + "istFindingsResult\0228\n\007finding\030\001 \001(\0132\'.goo"
- + "gle.cloud.securitycenter.v1.Finding\022i\n\014s"
- + "tate_change\030\002 \001(\0162S.google.cloud.securit"
- + "ycenter.v1.ListFindingsResponse.ListFind"
- + "ingsResult.StateChange\022h\n\010resource\030\003 \001(\013"
- + "2P.google.cloud.securitycenter.v1.ListFi"
- + "ndingsResponse.ListFindingsResult.Resour"
- + "ceB\004\342A\001\003\032\333\001\n\010Resource\022\014\n\004name\030\001 \001(\t\022\024\n\014d"
- + "isplay_name\030\010 \001(\t\022\014\n\004type\030\006 \001(\t\022\024\n\014proje"
- + "ct_name\030\002 \001(\t\022\034\n\024project_display_name\030\003 "
- + "\001(\t\022\023\n\013parent_name\030\004 \001(\t\022\033\n\023parent_displ"
- + "ay_name\030\005 \001(\t\0227\n\007folders\030\007 \003(\0132&.google."
- + "cloud.securitycenter.v1.Folder\"M\n\013StateC"
- + "hange\022\n\n\006UNUSED\020\000\022\013\n\007CHANGED\020\001\022\r\n\tUNCHAN"
- + "GED\020\002\022\t\n\005ADDED\020\003\022\013\n\007REMOVED\020\004\"\320\001\n\026SetFin"
- + "dingStateRequest\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n"
- + "%securitycenter.googleapis.com/Finding\022B"
- + "\n\005state\030\002 \001(\0162-.google.cloud.securitycen"
- + "ter.v1.Finding.StateB\004\342A\001\002\0224\n\nstart_time"
- + "\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\002"
- + "\"\220\001\n\016SetMuteRequest\022<\n\004name\030\001 \001(\tB.\342A\001\002\372"
- + "A\'\n%securitycenter.googleapis.com/Findin"
- + "g\022@\n\004mute\030\002 \001(\0162,.google.cloud.securityc"
- + "enter.v1.Finding.MuteB\004\342A\001\002\"e\n\030RunAssetD"
- + "iscoveryRequest\022I\n\006parent\030\001 \001(\tB9\342A\001\002\372A2"
- + "\n0cloudresourcemanager.googleapis.com/Or"
- + "ganization\"\235\001\n\033UpdateExternalSystemReque"
- + "st\022M\n\017external_system\030\001 \001(\0132..google.clo"
- + "ud.securitycenter.v1.ExternalSystemB\004\342A\001"
- + "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf"
- + ".FieldMask\"\207\001\n\024UpdateFindingRequest\022>\n\007f"
- + "inding\030\001 \001(\0132\'.google.cloud.securitycent"
- + "er.v1.FindingB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\013"
- + "2\032.google.protobuf.FieldMask\"\221\001\n\027UpdateM"
- + "uteConfigRequest\022E\n\013mute_config\030\001 \001(\0132*."
- + "google.cloud.securitycenter.v1.MuteConfi"
- + "gB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pr"
- + "otobuf.FieldMask\"\251\001\n\037UpdateNotificationC"
- + "onfigRequest\022U\n\023notification_config\030\001 \001("
- + "\01322.google.cloud.securitycenter.v1.Notif"
- + "icationConfigB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\013"
- + "2\032.google.protobuf.FieldMask\"\257\001\n!UpdateO"
- + "rganizationSettingsRequest\022Y\n\025organizati"
- + "on_settings\030\001 \001(\01324.google.cloud.securit"
- + "ycenter.v1.OrganizationSettingsB\004\342A\001\002\022/\n"
- + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie"
- + "ldMask\"\337\001\n0UpdateSecurityHealthAnalytics"
- + "CustomModuleRequest\022z\n\'security_health_a"
- + "nalytics_custom_module\030\001 \001(\0132C.google.cl"
- + "oud.securitycenter.v1.SecurityHealthAnal"
- + "yticsCustomModuleB\004\342A\001\002\022/\n\013update_mask\030\002"
- + " \001(\0132\032.google.protobuf.FieldMask\"\204\001\n\023Upd"
- + "ateSourceRequest\022<\n\006source\030\001 \001(\0132&.googl"
- + "e.cloud.securitycenter.v1.SourceB\004\342A\001\002\022/"
- + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi"
- + "eldMask\"\312\001\n\032UpdateSecurityMarksRequest\022K"
- + "\n\016security_marks\030\001 \001(\0132-.google.cloud.se"
- + "curitycenter.v1.SecurityMarksB\004\342A\001\002\022/\n\013u"
- + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field"
- + "Mask\022.\n\nstart_time\030\003 \001(\0132\032.google.protob"
- + "uf.Timestamp\"\327\001\n\033CreateBigQueryExportReq"
- + "uest\022E\n\006parent\030\001 \001(\tB5\342A\001\002\372A.\022,securityc"
- + "enter.googleapis.com/BigQueryExport\022N\n\020b"
- + "ig_query_export\030\002 \001(\0132..google.cloud.sec"
- + "uritycenter.v1.BigQueryExportB\004\342A\001\002\022!\n\023b"
- + "ig_query_export_id\030\003 \001(\tB\004\342A\001\002\"\236\001\n\033Updat"
- + "eBigQueryExportRequest\022N\n\020big_query_expo"
- + "rt\030\001 \001(\0132..google.cloud.securitycenter.v"
- + "1.BigQueryExportB\004\342A\001\002\022/\n\013update_mask\030\002 "
- + "\001(\0132\032.google.protobuf.FieldMask\"\212\001\n\032List"
- + "BigQueryExportsRequest\022E\n\006parent\030\001 \001(\tB5"
- + "\342A\001\002\372A.\022,securitycenter.googleapis.com/B"
- + "igQueryExport\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage"
- + "_token\030\003 \001(\t\"\201\001\n\033ListBigQueryExportsResp"
- + "onse\022I\n\021big_query_exports\030\001 \003(\0132..google"
- + ".cloud.securitycenter.v1.BigQueryExport\022"
- + "\027\n\017next_page_token\030\002 \001(\t\"b\n\033DeleteBigQue"
- + "ryExportRequest\022C\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,"
- + "securitycenter.googleapis.com/BigQueryEx"
- + "port2\213t\n\016SecurityCenter\022\342\002\n\020BulkMuteFind"
- + "ings\0227.google.cloud.securitycenter.v1.Bu"
- + "lkMuteFindingsRequest\032\035.google.longrunni"
- + "ng.Operation\"\365\001\312AP\n7google.cloud.securit"
- + "ycenter.v1.BulkMuteFindingsResponse\022\025goo"
- + "gle.protobuf.Empty\332A\006parent\202\323\344\223\002\222\001\"./v1/"
- + "{parent=organizations/*}/findings:bulkMu"
- + "te:\001*Z-\"(/v1/{parent=folders/*}/findings"
- + ":bulkMute:\001*Z.\")/v1/{parent=projects/*}/"
- + "findings:bulkMute:\001*\022\325\004\n)CreateSecurityH"
- + "ealthAnalyticsCustomModule\022P.google.clou"
- + "d.securitycenter.v1.CreateSecurityHealth"
- + "AnalyticsCustomModuleRequest\032C.google.cl"
- + "oud.securitycenter.v1.SecurityHealthAnal"
- + "yticsCustomModule\"\220\003\332A.parent,security_h"
- + "ealth_analytics_custom_module\202\323\344\223\002\330\002\"J/v"
- + "1/{parent=organizations/*/securityHealth"
- + "AnalyticsSettings}/customModules:\'securi"
- + "ty_health_analytics_custom_moduleZo\"D/v1"
- + "/{parent=folders/*/securityHealthAnalyti"
- + "csSettings}/customModules:\'security_heal"
- + "th_analytics_custom_moduleZp\"E/v1/{paren"
- + "t=projects/*/securityHealthAnalyticsSett"
- + "ings}/customModules:\'security_health_ana"
- + "lytics_custom_module\022\261\001\n\014CreateSource\0223."
- + "google.cloud.securitycenter.v1.CreateSou"
- + "rceRequest\032&.google.cloud.securitycenter"
- + ".v1.Source\"D\332A\rparent,source\202\323\344\223\002.\"$/v1/"
- + "{parent=organizations/*}/sources:\006source"
- + "\022\314\001\n\rCreateFinding\0224.google.cloud.securi"
- + "tycenter.v1.CreateFindingRequest\032\'.googl"
- + "e.cloud.securitycenter.v1.Finding\"\\\332A\031pa"
- + "rent,finding_id,finding\202\323\344\223\002:\"//v1/{pare"
- + "nt=organizations/*/sources/*}/findings:\007"
- + "finding\022\330\002\n\020CreateMuteConfig\0227.google.cl"
- + "oud.securitycenter.v1.CreateMuteConfigRe"
- + "quest\032*.google.cloud.securitycenter.v1.M"
- + "uteConfig\"\336\001\332A\022parent,mute_config\332A!pare"
- + "nt,mute_config,mute_config_id\202\323\344\223\002\236\001\"(/v"
- + "1/{parent=organizations/*}/muteConfigs:\013"
- + "mute_configZ1\"\"/v1/{parent=folders/*}/mu"
- + "teConfigs:\013mute_configZ2\"#/v1/{parent=pr"
- + "ojects/*}/muteConfigs:\013mute_config\022\253\003\n\030C"
- + "reateNotificationConfig\022?.google.cloud.s"
- + "ecuritycenter.v1.CreateNotificationConfi"
- + "gRequest\0322.google.cloud.securitycenter.v"
- + "1.NotificationConfig\"\231\002\332A$parent,config_"
- + "id,notification_config\332A\032parent,notifica"
- + "tion_config\202\323\344\223\002\316\001\"0/v1/{parent=organiza"
- + "tions/*}/notificationConfigs:\023notificati"
- + "on_configZA\"*/v1/{parent=folders/*}/noti"
- + "ficationConfigs:\023notification_configZB\"+"
- + "/v1/{parent=projects/*}/notificationConf"
- + "igs:\023notification_config\022\352\001\n\020DeleteMuteC"
- + "onfig\0227.google.cloud.securitycenter.v1.D"
- + "eleteMuteConfigRequest\032\026.google.protobuf"
- + ".Empty\"\204\001\332A\004name\202\323\344\223\002w*(/v1/{name=organi"
- + "zations/*/muteConfigs/*}Z$*\"/v1/{name=fo"
- + "lders/*/muteConfigs/*}Z%*#/v1/{name=proj"
- + "ects/*/muteConfigs/*}\022\223\002\n\030DeleteNotifica"
- + "tionConfig\022?.google.cloud.securitycenter"
- + ".v1.DeleteNotificationConfigRequest\032\026.go"
- + "ogle.protobuf.Empty\"\235\001\332A\004name\202\323\344\223\002\217\001*0/v"
- + "1/{name=organizations/*/notificationConf"
- + "igs/*}Z,**/v1/{name=folders/*/notificati"
- + "onConfigs/*}Z-*+/v1/{name=projects/*/not"
- + "ificationConfigs/*}\022\203\003\n)DeleteSecurityHe"
- + "althAnalyticsCustomModule\022P.google.cloud"
- + ".securitycenter.v1.DeleteSecurityHealthA"
- + "nalyticsCustomModuleRequest\032\026.google.pro"
- + "tobuf.Empty\"\353\001\332A\004name\202\323\344\223\002\335\001*J/v1/{name="
- + "organizations/*/securityHealthAnalyticsS"
- + "ettings/customModules/*}ZF*D/v1/{name=fo"
- + "lders/*/securityHealthAnalyticsSettings/"
- + "customModules/*}ZG*E/v1/{name=projects/*"
- + "/securityHealthAnalyticsSettings/customM"
- + "odules/*}\022\221\002\n\021GetBigQueryExport\0228.google"
- + ".cloud.securitycenter.v1.GetBigQueryExpo"
- + "rtRequest\032..google.cloud.securitycenter."
- + "v1.BigQueryExport\"\221\001\332A\004name\202\323\344\223\002\203\001\022,/v1/"
- + "{name=organizations/*/bigQueryExports/*}"
- + "Z(\022&/v1/{name=folders/*/bigQueryExports/"
- + "*}Z)\022\'/v1/{name=projects/*/bigQueryExpor"
- + "ts/*}\022\226\001\n\014GetIamPolicy\022\".google.iam.v1.G"
- + "etIamPolicyRequest\032\025.google.iam.v1.Polic"
- + "y\"K\332A\010resource\202\323\344\223\002:\"5/v1/{resource=orga"
- + "nizations/*/sources/*}:getIamPolicy:\001*\022\370"
- + "\001\n\rGetMuteConfig\0224.google.cloud.security"
- + "center.v1.GetMuteConfigRequest\032*.google."
- + "cloud.securitycenter.v1.MuteConfig\"\204\001\332A\004"
- + "name\202\323\344\223\002w\022(/v1/{name=organizations/*/mu"
- + "teConfigs/*}Z$\022\"/v1/{name=folders/*/mute"
- + "Configs/*}Z%\022#/v1/{name=projects/*/muteC"
- + "onfigs/*}\022\251\002\n\025GetNotificationConfig\022<.go"
- + "ogle.cloud.securitycenter.v1.GetNotifica"
- + "tionConfigRequest\0322.google.cloud.securit"
- + "ycenter.v1.NotificationConfig\"\235\001\332A\004name\202"
- + "\323\344\223\002\217\001\0220/v1/{name=organizations/*/notifi"
- + "cationConfigs/*}Z,\022*/v1/{name=folders/*/"
- + "notificationConfigs/*}Z-\022+/v1/{name=proj"
- + "ects/*/notificationConfigs/*}\022\317\001\n\027GetOrg"
- + "anizationSettings\022>.google.cloud.securit"
- + "ycenter.v1.GetOrganizationSettingsReques"
- + "t\0324.google.cloud.securitycenter.v1.Organ"
- + "izationSettings\">\332A\004name\202\323\344\223\0021\022//v1/{nam"
- + "e=organizations/*/organizationSettings}\022"
- + "\340\003\n/GetEffectiveSecurityHealthAnalyticsC"
- + "ustomModule\022V.google.cloud.securitycente"
- + "r.v1.GetEffectiveSecurityHealthAnalytics"
- + "CustomModuleRequest\032L.google.cloud.secur"
- + "itycenter.v1.EffectiveSecurityHealthAnal"
- + "yticsCustomModule\"\206\002\332A\004name\202\323\344\223\002\370\001\022S/v1/"
- + "{name=organizations/*/securityHealthAnal"
- + "yticsSettings/effectiveCustomModules/*}Z"
- + "O\022M/v1/{name=folders/*/securityHealthAna"
- + "lyticsSettings/effectiveCustomModules/*}"
- + "ZP\022N/v1/{name=projects/*/securityHealthA"
- + "nalyticsSettings/effectiveCustomModules/"
- + "*}\022\252\003\n&GetSecurityHealthAnalyticsCustomM"
- + "odule\022M.google.cloud.securitycenter.v1.G"
- + "etSecurityHealthAnalyticsCustomModuleReq"
- + "uest\032C.google.cloud.securitycenter.v1.Se"
- + "curityHealthAnalyticsCustomModule\"\353\001\332A\004n"
- + "ame\202\323\344\223\002\335\001\022J/v1/{name=organizations/*/se"
- + "curityHealthAnalyticsSettings/customModu",
- "les/*}ZF\022D/v1/{name=folders/*/securityHe"
- + "althAnalyticsSettings/customModules/*}ZG"
- + "\022E/v1/{name=projects/*/securityHealthAna"
- + "lyticsSettings/customModules/*}\022\232\001\n\tGetS"
- + "ource\0220.google.cloud.securitycenter.v1.G"
- + "etSourceRequest\032&.google.cloud.securityc"
- + "enter.v1.Source\"3\332A\004name\202\323\344\223\002&\022$/v1/{nam"
- + "e=organizations/*/sources/*}\022\206\002\n\013GroupAs"
- + "sets\0222.google.cloud.securitycenter.v1.Gr"
- + "oupAssetsRequest\0323.google.cloud.security"
- + "center.v1.GroupAssetsResponse\"\215\001\210\002\001\202\323\344\223\002"
- + "\203\001\")/v1/{parent=organizations/*}/assets:"
- + "group:\001*Z(\"#/v1/{parent=folders/*}/asset"
- + "s:group:\001*Z)\"$/v1/{parent=projects/*}/as"
- + "sets:group:\001*\022\277\002\n\rGroupFindings\0224.google"
- + ".cloud.securitycenter.v1.GroupFindingsRe"
- + "quest\0325.google.cloud.securitycenter.v1.G"
- + "roupFindingsResponse\"\300\001\332A\017parent,group_b"
- + "y\202\323\344\223\002\247\001\"5/v1/{parent=organizations/*/so"
- + "urces/*}/findings:group:\001*Z4\"//v1/{paren"
- + "t=folders/*/sources/*}/findings:group:\001*"
- + "Z5\"0/v1/{parent=projects/*/sources/*}/fi"
- + "ndings:group:\001*\022\346\001\n\nListAssets\0221.google."
- + "cloud.securitycenter.v1.ListAssetsReques"
- + "t\0322.google.cloud.securitycenter.v1.ListA"
- + "ssetsResponse\"q\210\002\001\202\323\344\223\002h\022#/v1/{parent=or"
- + "ganizations/*}/assetsZ\037\022\035/v1/{parent=fol"
- + "ders/*}/assetsZ \022\036/v1/{parent=projects/*"
- + "}/assets\022\210\004\n2ListDescendantSecurityHealt"
- + "hAnalyticsCustomModules\022Y.google.cloud.s"
- + "ecuritycenter.v1.ListDescendantSecurityH"
- + "ealthAnalyticsCustomModulesRequest\032Z.goo"
- + "gle.cloud.securitycenter.v1.ListDescenda"
- + "ntSecurityHealthAnalyticsCustomModulesRe"
- + "sponse\"\232\002\332A\006parent\202\323\344\223\002\212\002\022Y/v1/{parent=o"
- + "rganizations/*/securityHealthAnalyticsSe"
- + "ttings}/customModules:listDescendantZU\022S"
- + "/v1/{parent=folders/*/securityHealthAnal"
- + "yticsSettings}/customModules:listDescend"
- + "antZV\022T/v1/{parent=projects/*/securityHe"
+ + "\030\002 \001(\t\022\026\n\010group_by\030\003 \001(\tB\004\342A\001\002\0223\n\020compar"
+ + "e_duration\030\004 \001(\0132\031.google.protobuf.Durat"
+ + "ion\022-\n\tread_time\030\005 \001(\0132\032.google.protobuf"
+ + ".Timestamp\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_s"
+ + "ize\030\010 \001(\005\"\270\001\n\023GroupAssetsResponse\022E\n\020gro"
+ + "up_by_results\030\001 \003(\0132+.google.cloud.secur"
+ + "itycenter.v1.GroupResult\022-\n\tread_time\030\002 "
+ + "\001(\0132\032.google.protobuf.Timestamp\022\027\n\017next_"
+ + "page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\210\002\n"
+ + "\024GroupFindingsRequest\022=\n\006parent\030\001 \001(\tB-\342"
+ + "A\001\002\372A&\n$securitycenter.googleapis.com/So"
+ + "urce\022\016\n\006filter\030\002 \001(\t\022\026\n\010group_by\030\003 \001(\tB\004"
+ + "\342A\001\002\022-\n\tread_time\030\004 \001(\0132\032.google.protobu"
+ + "f.Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031."
+ + "google.protobuf.Duration\022\022\n\npage_token\030\007"
+ + " \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\272\001\n\025GroupFinding"
+ + "sResponse\022E\n\020group_by_results\030\001 \003(\0132+.go"
+ + "ogle.cloud.securitycenter.v1.GroupResult"
+ + "\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Ti"
+ + "mestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntota"
+ + "l_size\030\004 \001(\005\"\270\001\n\013GroupResult\022O\n\nproperti"
+ + "es\030\001 \003(\0132;.google.cloud.securitycenter.v"
+ + "1.GroupResult.PropertiesEntry\022\r\n\005count\030\002"
+ + " \001(\003\032I\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005"
+ + "value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\""
+ + "\276\001\n9ListDescendantSecurityHealthAnalytic"
+ + "sCustomModulesRequest\022Z\n\006parent\030\001 \001(\tBJ\342"
+ + "A\001\002\372AC\022Asecuritycenter.googleapis.com/Se"
+ + "curityHealthAnalyticsCustomModule\022\021\n\tpag"
+ + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\314\001\n:Lis"
+ + "tDescendantSecurityHealthAnalyticsCustom"
+ + "ModulesResponse\022u\n(security_health_analy"
+ + "tics_custom_modules\030\001 \003(\0132C.google.cloud"
+ + ".securitycenter.v1.SecurityHealthAnalyti"
+ + "csCustomModule\022\027\n\017next_page_token\030\002 \001(\t\""
+ + "\202\001\n\026ListMuteConfigsRequest\022A\n\006parent\030\001 \001"
+ + "(\tB1\342A\001\002\372A*\022(securitycenter.googleapis.c"
+ + "om/MuteConfig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage"
+ + "_token\030\003 \001(\t\"t\n\027ListMuteConfigsResponse\022"
+ + "@\n\014mute_configs\030\001 \003(\0132*.google.cloud.sec"
+ + "uritycenter.v1.MuteConfig\022\027\n\017next_page_t"
+ + "oken\030\002 \001(\t\"\222\001\n\036ListNotificationConfigsRe"
+ + "quest\022I\n\006parent\030\001 \001(\tB9\342A\001\002\372A2\0220security"
+ + "center.googleapis.com/NotificationConfig"
+ + "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\""
+ + "\214\001\n\037ListNotificationConfigsResponse\022P\n\024n"
+ + "otification_configs\030\001 \003(\01322.google.cloud"
+ + ".securitycenter.v1.NotificationConfig\022\027\n"
+ + "\017next_page_token\030\002 \001(\t\"\275\001\n8ListEffective"
+ + "SecurityHealthAnalyticsCustomModulesRequ"
+ + "est\022Z\n\006parent\030\001 \001(\tBJ\342A\001\002\372AC\022Asecurityce"
+ + "nter.googleapis.com/SecurityHealthAnalyt"
+ + "icsCustomModule\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa"
+ + "ge_token\030\003 \001(\t\"\337\001\n9ListEffectiveSecurity"
+ + "HealthAnalyticsCustomModulesResponse\022\210\001\n"
+ + "2effective_security_health_analytics_cus"
+ + "tom_modules\030\001 \003(\0132L.google.cloud.securit"
+ + "ycenter.v1.EffectiveSecurityHealthAnalyt"
+ + "icsCustomModule\022\027\n\017next_page_token\030\002 \001(\t"
+ + "\"\264\001\n/ListSecurityHealthAnalyticsCustomMo"
+ + "dulesRequest\022Z\n\006parent\030\001 \001(\tBJ\342A\001\002\372AC\022As"
+ + "ecuritycenter.googleapis.com/SecurityHea"
+ + "lthAnalyticsCustomModule\022\021\n\tpage_size\030\002 "
+ + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"\302\001\n0ListSecurity"
+ + "HealthAnalyticsCustomModulesResponse\022u\n("
+ + "security_health_analytics_custom_modules"
+ + "\030\001 \003(\0132C.google.cloud.securitycenter.v1."
+ + "SecurityHealthAnalyticsCustomModule\022\027\n\017n"
+ + "ext_page_token\030\002 \001(\t\"z\n\022ListSourcesReque"
+ + "st\022=\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\022$securitycen"
+ + "ter.googleapis.com/Source\022\022\n\npage_token\030"
+ + "\002 \001(\t\022\021\n\tpage_size\030\007 \001(\005\"g\n\023ListSourcesR"
+ + "esponse\0227\n\007sources\030\001 \003(\0132&.google.cloud."
+ + "securitycenter.v1.Source\022\027\n\017next_page_to"
+ + "ken\030\002 \001(\t\"\256\002\n\021ListAssetsRequest\022<\n\006paren"
+ + "t\030\001 \001(\tB,\342A\001\002\372A%\022#securitycenter.googlea"
+ + "pis.com/Asset\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_b"
+ + "y\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.prot"
+ + "obuf.Timestamp\0223\n\020compare_duration\030\005 \001(\013"
+ + "2\031.google.protobuf.Duration\022.\n\nfield_mas"
+ + "k\030\007 \001(\0132\032.google.protobuf.FieldMask\022\022\n\np"
+ + "age_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\303\003\n\022L"
+ + "istAssetsResponse\022`\n\023list_assets_results"
+ + "\030\001 \003(\0132C.google.cloud.securitycenter.v1."
+ + "ListAssetsResponse.ListAssetsResult\022-\n\tr"
+ + "ead_time\030\002 \001(\0132\032.google.protobuf.Timesta"
+ + "mp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_siz"
+ + "e\030\004 \001(\005\032\356\001\n\020ListAssetsResult\0224\n\005asset\030\001 "
+ + "\001(\0132%.google.cloud.securitycenter.v1.Ass"
+ + "et\022e\n\014state_change\030\002 \001(\0162O.google.cloud."
+ + "securitycenter.v1.ListAssetsResponse.Lis"
+ + "tAssetsResult.StateChange\"=\n\013StateChange"
+ + "\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED\020\002\022\n\n\006"
+ + "ACTIVE\020\003\"\261\002\n\023ListFindingsRequest\022=\n\006pare"
+ + "nt\030\001 \001(\tB-\342A\001\002\372A&\n$securitycenter.google"
+ + "apis.com/Source\022\016\n\006filter\030\002 \001(\t\022\020\n\010order"
+ + "_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.pr"
+ + "otobuf.Timestamp\0223\n\020compare_duration\030\005 \001"
+ + "(\0132\031.google.protobuf.Duration\022.\n\nfield_m"
+ + "ask\030\007 \001(\0132\032.google.protobuf.FieldMask\022\022\n"
+ + "\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\255\006\n"
+ + "\024ListFindingsResponse\022f\n\025list_findings_r"
+ + "esults\030\001 \003(\0132G.google.cloud.securitycent"
+ + "er.v1.ListFindingsResponse.ListFindingsR"
+ + "esult\022-\n\tread_time\030\002 \001(\0132\032.google.protob"
+ + "uf.Timestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n"
+ + "\ntotal_size\030\004 \001(\005\032\320\004\n\022ListFindingsResult"
+ + "\0228\n\007finding\030\001 \001(\0132\'.google.cloud.securit"
+ + "ycenter.v1.Finding\022i\n\014state_change\030\002 \001(\016"
+ + "2S.google.cloud.securitycenter.v1.ListFi"
+ + "ndingsResponse.ListFindingsResult.StateC"
+ + "hange\022h\n\010resource\030\003 \001(\0132P.google.cloud.s"
+ + "ecuritycenter.v1.ListFindingsResponse.Li"
+ + "stFindingsResult.ResourceB\004\342A\001\003\032\333\001\n\010Reso"
+ + "urce\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\010 \001(\t"
+ + "\022\014\n\004type\030\006 \001(\t\022\024\n\014project_name\030\002 \001(\t\022\034\n\024"
+ + "project_display_name\030\003 \001(\t\022\023\n\013parent_nam"
+ + "e\030\004 \001(\t\022\033\n\023parent_display_name\030\005 \001(\t\0227\n\007"
+ + "folders\030\007 \003(\0132&.google.cloud.securitycen"
+ + "ter.v1.Folder\"M\n\013StateChange\022\n\n\006UNUSED\020\000"
+ + "\022\013\n\007CHANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005ADDED\020\003\022"
+ + "\013\n\007REMOVED\020\004\"\320\001\n\026SetFindingStateRequest\022"
+ + "<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%securitycenter.g"
+ + "oogleapis.com/Finding\022B\n\005state\030\002 \001(\0162-.g"
+ + "oogle.cloud.securitycenter.v1.Finding.St"
+ + "ateB\004\342A\001\002\0224\n\nstart_time\030\003 \001(\0132\032.google.p"
+ + "rotobuf.TimestampB\004\342A\001\002\"\220\001\n\016SetMuteReque"
+ + "st\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%securitycente"
+ + "r.googleapis.com/Finding\022@\n\004mute\030\002 \001(\0162,"
+ + ".google.cloud.securitycenter.v1.Finding."
+ + "MuteB\004\342A\001\002\"e\n\030RunAssetDiscoveryRequest\022I"
+ + "\n\006parent\030\001 \001(\tB9\342A\001\002\372A2\n0cloudresourcema"
+ + "nager.googleapis.com/Organization\"\262\003\n2Si"
+ + "mulateSecurityHealthAnalyticsCustomModul"
+ + "eRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022I\n\rcustom"
+ + "_config\030\002 \001(\0132,.google.cloud.securitycen"
+ + "ter.v1.CustomConfigB\004\342A\001\002\022|\n\010resource\030\003 "
+ + "\001(\0132d.google.cloud.securitycenter.v1.Sim"
+ + "ulateSecurityHealthAnalyticsCustomModule"
+ + "Request.SimulatedResourceB\004\342A\001\002\032\234\001\n\021Simu"
+ + "latedResource\022\033\n\rresource_type\030\001 \001(\tB\004\342A"
+ + "\001\002\0224\n\rresource_data\030\002 \001(\0132\027.google.proto"
+ + "buf.StructB\004\342A\001\001\0224\n\017iam_policy_data\030\003 \001("
+ + "\0132\025.google.iam.v1.PolicyB\004\342A\001\001\"\331\002\n3Simul"
+ + "ateSecurityHealthAnalyticsCustomModuleRe"
+ + "sponse\022s\n\006result\030\001 \001(\0132c.google.cloud.se"
+ + "curitycenter.v1.SimulateSecurityHealthAn"
+ + "alyticsCustomModuleResponse.SimulatedRes"
+ + "ult\032\254\001\n\017SimulatedResult\022:\n\007finding\030\001 \001(\013"
+ + "2\'.google.cloud.securitycenter.v1.Findin"
+ + "gH\000\022.\n\014no_violation\030\002 \001(\0132\026.google.proto"
+ + "buf.EmptyH\000\022#\n\005error\030\003 \001(\0132\022.google.rpc."
+ + "StatusH\000B\010\n\006result\"\235\001\n\033UpdateExternalSys"
+ + "temRequest\022M\n\017external_system\030\001 \001(\0132..go"
+ + "ogle.cloud.securitycenter.v1.ExternalSys"
+ + "temB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google."
+ + "protobuf.FieldMask\"\207\001\n\024UpdateFindingRequ"
+ + "est\022>\n\007finding\030\001 \001(\0132\'.google.cloud.secu"
+ + "ritycenter.v1.FindingB\004\342A\001\002\022/\n\013update_ma"
+ + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"\221\001\n"
+ + "\027UpdateMuteConfigRequest\022E\n\013mute_config\030"
+ + "\001 \001(\0132*.google.cloud.securitycenter.v1.M"
+ + "uteConfigB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.g"
+ + "oogle.protobuf.FieldMask\"\251\001\n\037UpdateNotif"
+ + "icationConfigRequest\022U\n\023notification_con"
+ + "fig\030\001 \001(\01322.google.cloud.securitycenter."
+ + "v1.NotificationConfigB\004\342A\001\002\022/\n\013update_ma"
+ + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"\257\001\n"
+ + "!UpdateOrganizationSettingsRequest\022Y\n\025or"
+ + "ganization_settings\030\001 \001(\01324.google.cloud"
+ + ".securitycenter.v1.OrganizationSettingsB"
+ + "\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot"
+ + "obuf.FieldMask\"\337\001\n0UpdateSecurityHealthA"
+ + "nalyticsCustomModuleRequest\022z\n\'security_"
+ + "health_analytics_custom_module\030\001 \001(\0132C.g"
+ + "oogle.cloud.securitycenter.v1.SecurityHe"
+ + "althAnalyticsCustomModuleB\004\342A\001\002\022/\n\013updat"
+ + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask"
+ + "\"\204\001\n\023UpdateSourceRequest\022<\n\006source\030\001 \001(\013"
+ + "2&.google.cloud.securitycenter.v1.Source"
+ + "B\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pro"
+ + "tobuf.FieldMask\"\312\001\n\032UpdateSecurityMarksR"
+ + "equest\022K\n\016security_marks\030\001 \001(\0132-.google."
+ + "cloud.securitycenter.v1.SecurityMarksB\004\342"
+ + "A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob"
+ + "uf.FieldMask\022.\n\nstart_time\030\003 \001(\0132\032.googl"
+ + "e.protobuf.Timestamp\"\327\001\n\033CreateBigQueryE"
+ + "xportRequest\022E\n\006parent\030\001 \001(\tB5\342A\001\002\372A.\022,s"
+ + "ecuritycenter.googleapis.com/BigQueryExp"
+ + "ort\022N\n\020big_query_export\030\002 \001(\0132..google.c"
+ + "loud.securitycenter.v1.BigQueryExportB\004\342"
+ + "A\001\002\022!\n\023big_query_export_id\030\003 \001(\tB\004\342A\001\002\"\236"
+ + "\001\n\033UpdateBigQueryExportRequest\022N\n\020big_qu"
+ + "ery_export\030\001 \001(\0132..google.cloud.security"
+ + "center.v1.BigQueryExportB\004\342A\001\002\022/\n\013update"
+ + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\""
+ + "\212\001\n\032ListBigQueryExportsRequest\022E\n\006parent"
+ + "\030\001 \001(\tB5\342A\001\002\372A.\022,securitycenter.googleap"
+ + "is.com/BigQueryExport\022\021\n\tpage_size\030\002 \001(\005"
+ + "\022\022\n\npage_token\030\003 \001(\t\"\201\001\n\033ListBigQueryExp"
+ + "ortsResponse\022I\n\021big_query_exports\030\001 \003(\0132"
+ + "..google.cloud.securitycenter.v1.BigQuer"
+ + "yExport\022\027\n\017next_page_token\030\002 \001(\t\"b\n\033Dele"
+ + "teBigQueryExportRequest\022C\n\004name\030\001 \001(\tB5\342"
+ + "A\001\002\372A.\n,securitycenter.googleapis.com/Bi"
+ + "gQueryExport2\217x\n\016SecurityCenter\022\342\002\n\020Bulk"
+ + "MuteFindings\0227.google.cloud.securitycent"
+ + "er.v1.BulkMuteFindingsRequest\032\035.google.l"
+ + "ongrunning.Operation\"\365\001\312AP\n7google.cloud"
+ + ".securitycenter.v1.BulkMuteFindingsRespo"
+ + "nse\022\025google.protobuf.Empty\332A\006parent\202\323\344\223\002"
+ + "\222\001\"./v1/{parent=organizations/*}/finding"
+ + "s:bulkMute:\001*Z-\"(/v1/{parent=folders/*}/"
+ + "findings:bulkMute:\001*Z.\")/v1/{parent=proj"
+ + "ects/*}/findings:bulkMute:\001*\022\325\004\n)CreateS"
+ + "ecurityHealthAnalyticsCustomModule\022P.goo"
+ + "gle.cloud.securitycenter.v1.CreateSecuri"
+ + "tyHealthAnalyticsCustomModuleRequest\032C.g"
+ + "oogle.cloud.securitycenter.v1.SecurityHe"
+ + "althAnalyticsCustomModule\"\220\003\332A.parent,se"
+ + "curity_health_analytics_custom_module\202\323\344"
+ + "\223\002\330\002\"J/v1/{parent=organizations/*/securi"
+ + "tyHealthAnalyticsSettings}/customModules"
+ + ":\'security_health_analytics_custom_modul"
+ + "eZo\"D/v1/{parent=folders/*/securityHealt"
+ + "hAnalyticsSettings}/customModules:\'secur"
+ + "ity_health_analytics_custom_moduleZp\"E/v"
+ + "1/{parent=projects/*/securityHealthAnaly"
+ + "ticsSettings}/customModules:\'security_he"
+ + "alth_analytics_custom_module\022\261\001\n\014CreateS"
+ + "ource\0223.google.cloud.securitycenter.v1.C"
+ + "reateSourceRequest\032&.google.cloud.securi"
+ + "tycenter.v1.Source\"D\332A\rparent,source\202\323\344\223"
+ + "\002.\"$/v1/{parent=organizations/*}/sources"
+ + ":\006source\022\314\001\n\rCreateFinding\0224.google.clou"
+ + "d.securitycenter.v1.CreateFindingRequest"
+ + "\032\'.google.cloud.securitycenter.v1.Findin"
+ + "g\"\\\332A\031parent,finding_id,finding\202\323\344\223\002:\"//"
+ + "v1/{parent=organizations/*/sources/*}/fi"
+ + "ndings:\007finding\022\330\002\n\020CreateMuteConfig\0227.g"
+ + "oogle.cloud.securitycenter.v1.CreateMute"
+ + "ConfigRequest\032*.google.cloud.securitycen"
+ + "ter.v1.MuteConfig\"\336\001\332A\022parent,mute_confi"
+ + "g\332A!parent,mute_config,mute_config_id\202\323\344"
+ + "\223\002\236\001\"(/v1/{parent=organizations/*}/muteC"
+ + "onfigs:\013mute_configZ1\"\"/v1/{parent=folde"
+ + "rs/*}/muteConfigs:\013mute_configZ2\"#/v1/{p"
+ + "arent=projects/*}/muteConfigs:\013mute_conf"
+ + "ig\022\253\003\n\030CreateNotificationConfig\022?.google"
+ + ".cloud.securitycenter.v1.CreateNotificat"
+ + "ionConfigRequest\0322.google.cloud.security"
+ + "center.v1.NotificationConfig\"\231\002\332A$parent"
+ + ",config_id,notification_config\332A\032parent,"
+ + "notification_config\202\323\344\223\002\316\001\"0/v1/{parent="
+ + "organizations/*}/notificationConfigs:\023no"
+ + "tification_configZA\"*/v1/{parent=folders"
+ + "/*}/notificationConfigs:\023notification_co"
+ + "nfigZB\"+/v1/{parent=projects/*}/notifica"
+ + "tionConfigs:\023notification_config\022\352\001\n\020Del"
+ + "eteMuteConfig\0227.google.cloud.securitycen"
+ + "ter.v1.DeleteMuteConfigRequest\032\026.google."
+ + "protobuf.Empty\"\204\001\332A\004name\202\323\344\223\002w*(/v1/{nam"
+ + "e=organizations/*/muteConfigs/*}Z$*\"/v1/"
+ + "{name=folders/*/muteConfigs/*}Z%*#/v1/{n"
+ + "ame=projects/*/muteConfigs/*}\022\223\002\n\030Delete"
+ + "NotificationConfig\022?.google.cloud.securi"
+ + "tycenter.v1.DeleteNotificationConfigRequ"
+ + "est\032\026.google.protobuf.Empty\"\235\001\332A\004name\202\323\344"
+ + "\223\002\217\001*0/v1/{name=organizations/*/notifica"
+ + "tionConfigs/*}Z,**/v1/{name=folders/*/no"
+ + "tificationConfigs/*}Z-*+/v1/{name=projec"
+ + "ts/*/notificationConfigs/*}\022\203\003\n)DeleteSe"
+ + "curityHealthAnalyticsCustomModule\022P.goog"
+ + "le.cloud.securitycenter.v1.DeleteSecurit"
+ + "yHealthAnalyticsCustomModuleRequest\032\026.go"
+ + "ogle.protobuf.Empty\"\353\001\332A\004name\202\323\344\223\002\335\001*J/v"
+ + "1/{name=organizations/*/securityHealthAn"
+ + "alyticsSettings/customModules/*}ZF*D/v1/"
+ + "{name=folders/*/securityHealthAnalyticsS"
+ + "ettings/customModules/*}ZG*E/v1/{name=pr"
+ + "ojects/*/securityHealthAnalyticsSettings"
+ + "/customModules/*}\022\221\002\n\021GetBigQueryExport\022"
+ + "8.google.cloud.securitycenter.v1.GetBigQ"
+ + "ueryExportRequest\032..google.cloud.securit"
+ + "ycenter.v1.BigQueryExport\"\221\001\332A\004name\202\323\344\223\002"
+ + "\203\001\022,/v1/{name=organizations/*/bigQueryEx"
+ + "ports/*}Z(\022&/v1/{name=folders/*/bigQuery"
+ + "Exports/*}Z)\022\'/v1/{name=projects/*/bigQu"
+ + "eryExports/*}\022\226\001\n\014GetIamPolicy\022\".google."
+ + "iam.v1.GetIamPolicyRequest\032\025.google.iam."
+ + "v1.Policy\"K\332A\010resource\202\323\344\223\002:\"5/v1/{resou"
+ + "rce=organizations/*/sources/*}:getIamPol"
+ + "icy:\001*\022\370\001\n\rGetMuteConfig\0224.google.cloud."
+ + "securitycenter.v1.GetMuteConfigRequest\032*"
+ + ".google.cloud.securitycenter.v1.MuteConf"
+ + "ig\"\204\001\332A\004name\202\323\344\223\002w\022(/v1/{name=organizati"
+ + "ons/*/muteConfigs/*}Z$\022\"/v1/{name=folder"
+ + "s/*/muteConfigs/*}Z%\022#/v1/{name=projects"
+ + "/*/muteConfigs/*}\022\251\002\n\025GetNotificationCon"
+ + "fig\022<.google.cloud.securitycenter.v1.Get"
+ + "NotificationConfigRequest\0322.google.cloud"
+ + ".securitycenter.v1.NotificationConfig\"\235\001"
+ + "\332A\004name\202\323\344\223\002\217\001\0220/v1/{name=organizations/"
+ + "*/notificationConfigs/*}Z,\022*/v1/{name=fo"
+ + "lders/*/notificationConfigs/*}Z-\022+/v1/{n"
+ + "ame=projects/*/notificationConfigs/*}\022\317\001"
+ + "\n\027GetOrganizationSettings\022>.google.cloud"
+ + ".securitycenter.v1.GetOrganizationSettin",
+ "gsRequest\0324.google.cloud.securitycenter."
+ + "v1.OrganizationSettings\">\332A\004name\202\323\344\223\0021\022/"
+ + "/v1/{name=organizations/*/organizationSe"
+ + "ttings}\022\340\003\n/GetEffectiveSecurityHealthAn"
+ + "alyticsCustomModule\022V.google.cloud.secur"
+ + "itycenter.v1.GetEffectiveSecurityHealthA"
+ + "nalyticsCustomModuleRequest\032L.google.clo"
+ + "ud.securitycenter.v1.EffectiveSecurityHe"
+ + "althAnalyticsCustomModule\"\206\002\332A\004name\202\323\344\223\002"
+ + "\370\001\022S/v1/{name=organizations/*/securityHe"
+ + "althAnalyticsSettings/effectiveCustomMod"
+ + "ules/*}ZO\022M/v1/{name=folders/*/securityH"
+ + "ealthAnalyticsSettings/effectiveCustomMo"
+ + "dules/*}ZP\022N/v1/{name=projects/*/securit"
+ + "yHealthAnalyticsSettings/effectiveCustom"
+ + "Modules/*}\022\252\003\n&GetSecurityHealthAnalytic"
+ + "sCustomModule\022M.google.cloud.securitycen"
+ + "ter.v1.GetSecurityHealthAnalyticsCustomM"
+ + "oduleRequest\032C.google.cloud.securitycent"
+ + "er.v1.SecurityHealthAnalyticsCustomModul"
+ + "e\"\353\001\332A\004name\202\323\344\223\002\335\001\022J/v1/{name=organizati"
+ + "ons/*/securityHealthAnalyticsSettings/cu"
+ + "stomModules/*}ZF\022D/v1/{name=folders/*/se"
+ + "curityHealthAnalyticsSettings/customModu"
+ + "les/*}ZG\022E/v1/{name=projects/*/securityH"
+ + "ealthAnalyticsSettings/customModules/*}\022"
+ + "\232\001\n\tGetSource\0220.google.cloud.securitycen"
+ + "ter.v1.GetSourceRequest\032&.google.cloud.s"
+ + "ecuritycenter.v1.Source\"3\332A\004name\202\323\344\223\002&\022$"
+ + "/v1/{name=organizations/*/sources/*}\022\206\002\n"
+ + "\013GroupAssets\0222.google.cloud.securitycent"
+ + "er.v1.GroupAssetsRequest\0323.google.cloud."
+ + "securitycenter.v1.GroupAssetsResponse\"\215\001"
+ + "\210\002\001\202\323\344\223\002\203\001\")/v1/{parent=organizations/*}"
+ + "/assets:group:\001*Z(\"#/v1/{parent=folders/"
+ + "*}/assets:group:\001*Z)\"$/v1/{parent=projec"
+ + "ts/*}/assets:group:\001*\022\277\002\n\rGroupFindings\022"
+ + "4.google.cloud.securitycenter.v1.GroupFi"
+ + "ndingsRequest\0325.google.cloud.securitycen"
+ + "ter.v1.GroupFindingsResponse\"\300\001\332A\017parent"
+ + ",group_by\202\323\344\223\002\247\001\"5/v1/{parent=organizati"
+ + "ons/*/sources/*}/findings:group:\001*Z4\"//v"
+ + "1/{parent=folders/*/sources/*}/findings:"
+ + "group:\001*Z5\"0/v1/{parent=projects/*/sourc"
+ + "es/*}/findings:group:\001*\022\346\001\n\nListAssets\0221"
+ + ".google.cloud.securitycenter.v1.ListAsse"
+ + "tsRequest\0322.google.cloud.securitycenter."
+ + "v1.ListAssetsResponse\"q\210\002\001\202\323\344\223\002h\022#/v1/{p"
+ + "arent=organizations/*}/assetsZ\037\022\035/v1/{pa"
+ + "rent=folders/*}/assetsZ \022\036/v1/{parent=pr"
+ + "ojects/*}/assets\022\210\004\n2ListDescendantSecur"
+ + "ityHealthAnalyticsCustomModules\022Y.google"
+ + ".cloud.securitycenter.v1.ListDescendantS"
+ + "ecurityHealthAnalyticsCustomModulesReque"
+ + "st\032Z.google.cloud.securitycenter.v1.List"
+ + "DescendantSecurityHealthAnalyticsCustomM"
+ + "odulesResponse\"\232\002\332A\006parent\202\323\344\223\002\212\002\022Y/v1/{"
+ + "parent=organizations/*/securityHealthAna"
+ + "lyticsSettings}/customModules:listDescen"
+ + "dantZU\022S/v1/{parent=folders/*/securityHe"
+ "althAnalyticsSettings}/customModules:lis"
- + "tDescendant\022\217\002\n\014ListFindings\0223.google.cl"
- + "oud.securitycenter.v1.ListFindingsReques"
- + "t\0324.google.cloud.securitycenter.v1.ListF"
- + "indingsResponse\"\223\001\202\323\344\223\002\214\001\022//v1/{parent=o"
- + "rganizations/*/sources/*}/findingsZ+\022)/v"
- + "1/{parent=folders/*/sources/*}/findingsZ"
- + ",\022*/v1/{parent=projects/*/sources/*}/fin"
- + "dings\022\213\002\n\017ListMuteConfigs\0226.google.cloud"
- + ".securitycenter.v1.ListMuteConfigsReques"
- + "t\0327.google.cloud.securitycenter.v1.ListM"
- + "uteConfigsResponse\"\206\001\332A\006parent\202\323\344\223\002w\022(/v"
- + "1/{parent=organizations/*}/muteConfigsZ$"
- + "\022\"/v1/{parent=folders/*}/muteConfigsZ%\022#"
- + "/v1/{parent=projects/*}/muteConfigs\022\274\002\n\027"
- + "ListNotificationConfigs\022>.google.cloud.s"
- + "ecuritycenter.v1.ListNotificationConfigs"
- + "Request\032?.google.cloud.securitycenter.v1"
- + ".ListNotificationConfigsResponse\"\237\001\332A\006pa"
- + "rent\202\323\344\223\002\217\001\0220/v1/{parent=organizations/*"
- + "}/notificationConfigsZ,\022*/v1/{parent=fol"
- + "ders/*}/notificationConfigsZ-\022+/v1/{pare"
- + "nt=projects/*}/notificationConfigs\022\363\003\n1L"
- + "istEffectiveSecurityHealthAnalyticsCusto"
- + "mModules\022X.google.cloud.securitycenter.v"
- + "1.ListEffectiveSecurityHealthAnalyticsCu"
- + "stomModulesRequest\032Y.google.cloud.securi"
- + "tycenter.v1.ListEffectiveSecurityHealthA"
- + "nalyticsCustomModulesResponse\"\210\002\332A\006paren"
- + "t\202\323\344\223\002\370\001\022S/v1/{parent=organizations/*/se"
- + "curityHealthAnalyticsSettings}/effective"
- + "CustomModulesZO\022M/v1/{parent=folders/*/s"
- + "ecurityHealthAnalyticsSettings}/effectiv"
- + "eCustomModulesZP\022N/v1/{parent=projects/*"
- + "/securityHealthAnalyticsSettings}/effect"
- + "iveCustomModules\022\275\003\n(ListSecurityHealthA"
- + "nalyticsCustomModules\022O.google.cloud.sec"
- + "uritycenter.v1.ListSecurityHealthAnalyti"
- + "csCustomModulesRequest\032P.google.cloud.se"
- + "curitycenter.v1.ListSecurityHealthAnalyt"
- + "icsCustomModulesResponse\"\355\001\332A\006parent\202\323\344\223"
- + "\002\335\001\022J/v1/{parent=organizations/*/securit"
+ + "tDescendantZV\022T/v1/{parent=projects/*/se"
+ + "curityHealthAnalyticsSettings}/customMod"
+ + "ules:listDescendant\022\217\002\n\014ListFindings\0223.g"
+ + "oogle.cloud.securitycenter.v1.ListFindin"
+ + "gsRequest\0324.google.cloud.securitycenter."
+ + "v1.ListFindingsResponse\"\223\001\202\323\344\223\002\214\001\022//v1/{"
+ + "parent=organizations/*/sources/*}/findin"
+ + "gsZ+\022)/v1/{parent=folders/*/sources/*}/f"
+ + "indingsZ,\022*/v1/{parent=projects/*/source"
+ + "s/*}/findings\022\213\002\n\017ListMuteConfigs\0226.goog"
+ + "le.cloud.securitycenter.v1.ListMuteConfi"
+ + "gsRequest\0327.google.cloud.securitycenter."
+ + "v1.ListMuteConfigsResponse\"\206\001\332A\006parent\202\323"
+ + "\344\223\002w\022(/v1/{parent=organizations/*}/muteC"
+ + "onfigsZ$\022\"/v1/{parent=folders/*}/muteCon"
+ + "figsZ%\022#/v1/{parent=projects/*}/muteConf"
+ + "igs\022\274\002\n\027ListNotificationConfigs\022>.google"
+ + ".cloud.securitycenter.v1.ListNotificatio"
+ + "nConfigsRequest\032?.google.cloud.securityc"
+ + "enter.v1.ListNotificationConfigsResponse"
+ + "\"\237\001\332A\006parent\202\323\344\223\002\217\001\0220/v1/{parent=organiz"
+ + "ations/*}/notificationConfigsZ,\022*/v1/{pa"
+ + "rent=folders/*}/notificationConfigsZ-\022+/"
+ + "v1/{parent=projects/*}/notificationConfi"
+ + "gs\022\363\003\n1ListEffectiveSecurityHealthAnalyt"
+ + "icsCustomModules\022X.google.cloud.security"
+ + "center.v1.ListEffectiveSecurityHealthAna"
+ + "lyticsCustomModulesRequest\032Y.google.clou"
+ + "d.securitycenter.v1.ListEffectiveSecurit"
+ + "yHealthAnalyticsCustomModulesResponse\"\210\002"
+ + "\332A\006parent\202\323\344\223\002\370\001\022S/v1/{parent=organizati"
+ + "ons/*/securityHealthAnalyticsSettings}/e"
+ + "ffectiveCustomModulesZO\022M/v1/{parent=fol"
+ + "ders/*/securityHealthAnalyticsSettings}/"
+ + "effectiveCustomModulesZP\022N/v1/{parent=pr"
+ + "ojects/*/securityHealthAnalyticsSettings"
+ + "}/effectiveCustomModules\022\275\003\n(ListSecurit"
+ + "yHealthAnalyticsCustomModules\022O.google.c"
+ + "loud.securitycenter.v1.ListSecurityHealt"
+ + "hAnalyticsCustomModulesRequest\032P.google."
+ + "cloud.securitycenter.v1.ListSecurityHeal"
+ + "thAnalyticsCustomModulesResponse\"\355\001\332A\006pa"
+ + "rent\202\323\344\223\002\335\001\022J/v1/{parent=organizations/*"
+ + "/securityHealthAnalyticsSettings}/custom"
+ + "ModulesZF\022D/v1/{parent=folders/*/securit"
+ "yHealthAnalyticsSettings}/customModulesZ"
- + "F\022D/v1/{parent=folders/*/securityHealthA"
- + "nalyticsSettings}/customModulesZG\022E/v1/{"
- + "parent=projects/*/securityHealthAnalytic"
- + "sSettings}/customModules\022\362\001\n\013ListSources"
- + "\0222.google.cloud.securitycenter.v1.ListSo"
- + "urcesRequest\0323.google.cloud.securitycent"
- + "er.v1.ListSourcesResponse\"z\332A\006parent\202\323\344\223"
- + "\002k\022$/v1/{parent=organizations/*}/sources"
- + "Z \022\036/v1/{parent=folders/*}/sourcesZ!\022\037/v"
- + "1/{parent=projects/*}/sources\022\212\002\n\021RunAss"
- + "etDiscovery\0228.google.cloud.securitycente"
- + "r.v1.RunAssetDiscoveryRequest\032\035.google.l"
- + "ongrunning.Operation\"\233\001\210\002\001\312AQ\n8google.cl"
- + "oud.securitycenter.v1.RunAssetDiscoveryR"
- + "esponse\022\025google.protobuf.Empty\332A\006parent\202"
- + "\323\344\223\0025\"0/v1/{parent=organizations/*}/asse"
- + "ts:runDiscovery:\001*\022\304\002\n\017SetFindingState\0226"
- + ".google.cloud.securitycenter.v1.SetFindi"
- + "ngStateRequest\032\'.google.cloud.securityce"
- + "nter.v1.Finding\"\317\001\332A\025name,state,start_ti"
- + "me\202\323\344\223\002\260\001\"8/v1/{name=organizations/*/sou"
- + "rces/*/findings/*}:setState:\001*Z7\"2/v1/{n"
- + "ame=folders/*/sources/*/findings/*}:setS"
- + "tate:\001*Z8\"3/v1/{name=projects/*/sources/"
- + "*/findings/*}:setState:\001*\022\245\002\n\007SetMute\022.."
- + "google.cloud.securitycenter.v1.SetMuteRe"
- + "quest\032\'.google.cloud.securitycenter.v1.F"
- + "inding\"\300\001\332A\tname,mute\202\323\344\223\002\255\001\"7/v1/{name="
- + "organizations/*/sources/*/findings/*}:se"
- + "tMute:\001*Z6\"1/v1/{name=folders/*/sources/"
- + "*/findings/*}:setMute:\001*Z7\"2/v1/{name=pr"
- + "ojects/*/sources/*/findings/*}:setMute:\001"
- + "*\022\235\001\n\014SetIamPolicy\022\".google.iam.v1.SetIa"
- + "mPolicyRequest\032\025.google.iam.v1.Policy\"R\332"
- + "A\017resource,policy\202\323\344\223\002:\"5/v1/{resource=o"
- + "rganizations/*/sources/*}:setIamPolicy:\001"
- + "*\022\310\001\n\022TestIamPermissions\022(.google.iam.v1"
- + ".TestIamPermissionsRequest\032).google.iam."
- + "v1.TestIamPermissionsResponse\"]\332A\024resour"
- + "ce,permissions\202\323\344\223\002@\";/v1/{resource=orga"
- + "nizations/*/sources/*}:testIamPermission"
- + "s:\001*\022\320\003\n\024UpdateExternalSystem\022;.google.c"
- + "loud.securitycenter.v1.UpdateExternalSys"
- + "temRequest\032..google.cloud.securitycenter"
- + ".v1.ExternalSystem\"\312\002\332A\033external_system,"
- + "update_mask\202\323\344\223\002\245\0022Q/v1/{external_system"
- + ".name=organizations/*/sources/*/findings"
- + "/*/externalSystems/*}:\017external_systemZ^"
- + "2K/v1/{external_system.name=folders/*/so"
- + "urces/*/findings/*/externalSystems/*}:\017e"
- + "xternal_systemZ_2L/v1/{external_system.n"
- + "ame=projects/*/sources/*/findings/*/exte"
- + "rnalSystems/*}:\017external_system\022\301\002\n\rUpda"
- + "teFinding\0224.google.cloud.securitycenter."
- + "v1.UpdateFindingRequest\032\'.google.cloud.s"
- + "ecuritycenter.v1.Finding\"\320\001\332A\007finding\202\323\344"
- + "\223\002\277\00127/v1/{finding.name=organizations/*/"
- + "sources/*/findings/*}:\007findingZ<21/v1/{f"
- + "inding.name=folders/*/sources/*/findings"
- + "/*}:\007findingZ=22/v1/{finding.name=projec"
- + "ts/*/sources/*/findings/*}:\007finding\022\335\002\n\020"
- + "UpdateMuteConfig\0227.google.cloud.security"
- + "center.v1.UpdateMuteConfigRequest\032*.goog"
- + "le.cloud.securitycenter.v1.MuteConfig\"\343\001"
- + "\332A\027mute_config,update_mask\202\323\344\223\002\302\00124/v1/{"
- + "mute_config.name=organizations/*/muteCon"
- + "figs/*}:\013mute_configZ=2./v1/{mute_config"
- + ".name=folders/*/muteConfigs/*}:\013mute_con"
- + "figZ>2//v1/{mute_config.name=projects/*/"
- + "muteConfigs/*}:\013mute_config\022\333\003\n\030UpdateNo"
- + "tificationConfig\022?.google.cloud.security"
- + "center.v1.UpdateNotificationConfigReques"
- + "t\0322.google.cloud.securitycenter.v1.Notif"
- + "icationConfig\"\311\002\332A\023notification_config\332A"
- + "\037notification_config,update_mask\202\323\344\223\002\212\0022"
- + "D/v1/{notification_config.name=organizat"
- + "ions/*/notificationConfigs/*}:\023notificat"
- + "ion_configZU2>/v1/{notification_config.n"
- + "ame=folders/*/notificationConfigs/*}:\023no"
- + "tification_configZV2?/v1/{notification_c"
- + "onfig.name=projects/*/notificationConfig"
- + "s/*}:\023notification_config\022\223\002\n\032UpdateOrga"
- + "nizationSettings\022A.google.cloud.security"
- + "center.v1.UpdateOrganizationSettingsRequ"
- + "est\0324.google.cloud.securitycenter.v1.Org"
- + "anizationSettings\"|\332A\025organization_setti"
- + "ngs\202\323\344\223\002^2E/v1/{organization_settings.na"
- + "me=organizations/*/organizationSettings}"
- + ":\025organization_settings\022\324\005\n)UpdateSecuri"
- + "tyHealthAnalyticsCustomModule\022P.google.c"
- + "loud.securitycenter.v1.UpdateSecurityHea"
- + "lthAnalyticsCustomModuleRequest\032C.google"
- + ".cloud.securitycenter.v1.SecurityHealthA"
- + "nalyticsCustomModule\"\217\004\332A3security_healt"
- + "h_analytics_custom_module,update_mask\202\323\344"
- + "\223\002\322\0032r/v1/{security_health_analytics_cus"
- + "tom_module.name=organizations/*/security"
- + "HealthAnalyticsSettings/customModules/*}"
- + ":\'security_health_analytics_custom_modul"
- + "eZ\227\0012l/v1/{security_health_analytics_cus"
- + "tom_module.name=folders/*/securityHealth"
- + "AnalyticsSettings/customModules/*}:\'secu"
- + "rity_health_analytics_custom_moduleZ\230\0012m"
- + "/v1/{security_health_analytics_custom_mo"
- + "dule.name=projects/*/securityHealthAnaly"
- + "ticsSettings/customModules/*}:\'security_"
- + "health_analytics_custom_module\022\261\001\n\014Updat"
- + "eSource\0223.google.cloud.securitycenter.v1"
- + ".UpdateSourceRequest\032&.google.cloud.secu"
- + "ritycenter.v1.Source\"D\332A\006source\202\323\344\223\00252+/"
- + "v1/{source.name=organizations/*/sources/"
- + "*}:\006source\022\237\005\n\023UpdateSecurityMarks\022:.goo"
- + "gle.cloud.securitycenter.v1.UpdateSecuri"
- + "tyMarksRequest\032-.google.cloud.securityce"
- + "nter.v1.SecurityMarks\"\234\004\332A\016security_mark"
- + "s\202\323\344\223\002\204\0042@/v1/{security_marks.name=organ"
- + "izations/*/assets/*/securityMarks}:\016secu"
- + "rity_marksZL2:/v1/{security_marks.name=f"
- + "olders/*/assets/*/securityMarks}:\016securi"
- + "ty_marksZM2;/v1/{security_marks.name=pro"
- + "jects/*/assets/*/securityMarks}:\016securit"
- + "y_marksZ^2L/v1/{security_marks.name=orga"
- + "nizations/*/sources/*/findings/*/securit"
- + "yMarks}:\016security_marksZX2F/v1/{security"
- + "_marks.name=folders/*/sources/*/findings"
- + "/*/securityMarks}:\016security_marksZY2G/v1"
- + "/{security_marks.name=projects/*/sources"
- + "/*/findings/*/securityMarks}:\016security_m"
- + "arks\022\364\002\n\024CreateBigQueryExport\022;.google.c"
- + "loud.securitycenter.v1.CreateBigQueryExp"
- + "ortRequest\032..google.cloud.securitycenter"
- + ".v1.BigQueryExport\"\356\001\332A+parent,big_query"
- + "_export,big_query_export_id\202\323\344\223\002\271\001\",/v1/"
- + "{parent=organizations/*}/bigQueryExports"
- + ":\020big_query_exportZ:\"&/v1/{parent=folder"
- + "s/*}/bigQueryExports:\020big_query_exportZ;"
- + "\"\'/v1/{parent=projects/*}/bigQueryExport"
- + "s:\020big_query_export\022\377\001\n\024DeleteBigQueryEx"
- + "port\022;.google.cloud.securitycenter.v1.De"
- + "leteBigQueryExportRequest\032\026.google.proto"
- + "buf.Empty\"\221\001\332A\004name\202\323\344\223\002\203\001*,/v1/{name=or"
- + "ganizations/*/bigQueryExports/*}Z(*&/v1/"
- + "{name=folders/*/bigQueryExports/*}Z)*\'/v"
- + "1/{name=projects/*/bigQueryExports/*}\022\230\003"
- + "\n\024UpdateBigQueryExport\022;.google.cloud.se"
- + "curitycenter.v1.UpdateBigQueryExportRequ"
- + "est\032..google.cloud.securitycenter.v1.Big"
- + "QueryExport\"\222\002\332A\034big_query_export,update"
- + "_mask\202\323\344\223\002\354\0012=/v1/{big_query_export.name"
- + "=organizations/*/bigQueryExports/*}:\020big"
- + "_query_exportZK27/v1/{big_query_export.n"
- + "ame=folders/*/bigQueryExports/*}:\020big_qu"
- + "ery_exportZL28/v1/{big_query_export.name"
- + "=projects/*/bigQueryExports/*}:\020big_quer"
- + "y_export\022\244\002\n\023ListBigQueryExports\022:.googl"
- + "e.cloud.securitycenter.v1.ListBigQueryEx"
- + "portsRequest\032;.google.cloud.securitycent"
- + "er.v1.ListBigQueryExportsResponse\"\223\001\332A\006p"
- + "arent\202\323\344\223\002\203\001\022,/v1/{parent=organizations/"
- + "*}/bigQueryExportsZ(\022&/v1/{parent=folder"
- + "s/*}/bigQueryExportsZ)\022\'/v1/{parent=proj"
- + "ects/*}/bigQueryExports\032Q\312A\035securitycent"
- + "er.googleapis.com\322A.https://www.googleap"
- + "is.com/auth/cloud-platformB\330\001\n\"com.googl"
- + "e.cloud.securitycenter.v1P\001ZJcloud.googl"
- + "e.com/go/securitycenter/apiv1/securityce"
- + "nterpb;securitycenterpb\252\002\036Google.Cloud.S"
- + "ecurityCenter.V1\312\002\036Google\\Cloud\\Security"
- + "Center\\V1\352\002!Google::Cloud::SecurityCente"
- + "r::V1b\006proto3"
+ + "G\022E/v1/{parent=projects/*/securityHealth"
+ + "AnalyticsSettings}/customModules\022\362\001\n\013Lis"
+ + "tSources\0222.google.cloud.securitycenter.v"
+ + "1.ListSourcesRequest\0323.google.cloud.secu"
+ + "ritycenter.v1.ListSourcesResponse\"z\332A\006pa"
+ + "rent\202\323\344\223\002k\022$/v1/{parent=organizations/*}"
+ + "/sourcesZ \022\036/v1/{parent=folders/*}/sourc"
+ + "esZ!\022\037/v1/{parent=projects/*}/sources\022\212\002"
+ + "\n\021RunAssetDiscovery\0228.google.cloud.secur"
+ + "itycenter.v1.RunAssetDiscoveryRequest\032\035."
+ + "google.longrunning.Operation\"\233\001\210\002\001\312AQ\n8g"
+ + "oogle.cloud.securitycenter.v1.RunAssetDi"
+ + "scoveryResponse\022\025google.protobuf.Empty\332A"
+ + "\006parent\202\323\344\223\0025\"0/v1/{parent=organizations"
+ + "/*}/assets:runDiscovery:\001*\022\304\002\n\017SetFindin"
+ + "gState\0226.google.cloud.securitycenter.v1."
+ + "SetFindingStateRequest\032\'.google.cloud.se"
+ + "curitycenter.v1.Finding\"\317\001\332A\025name,state,"
+ + "start_time\202\323\344\223\002\260\001\"8/v1/{name=organizatio"
+ + "ns/*/sources/*/findings/*}:setState:\001*Z7"
+ + "\"2/v1/{name=folders/*/sources/*/findings"
+ + "/*}:setState:\001*Z8\"3/v1/{name=projects/*/"
+ + "sources/*/findings/*}:setState:\001*\022\245\002\n\007Se"
+ + "tMute\022..google.cloud.securitycenter.v1.S"
+ + "etMuteRequest\032\'.google.cloud.securitycen"
+ + "ter.v1.Finding\"\300\001\332A\tname,mute\202\323\344\223\002\255\001\"7/v"
+ + "1/{name=organizations/*/sources/*/findin"
+ + "gs/*}:setMute:\001*Z6\"1/v1/{name=folders/*/"
+ + "sources/*/findings/*}:setMute:\001*Z7\"2/v1/"
+ + "{name=projects/*/sources/*/findings/*}:s"
+ + "etMute:\001*\022\235\001\n\014SetIamPolicy\022\".google.iam."
+ + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P"
+ + "olicy\"R\332A\017resource,policy\202\323\344\223\002:\"5/v1/{re"
+ + "source=organizations/*/sources/*}:setIam"
+ + "Policy:\001*\022\310\001\n\022TestIamPermissions\022(.googl"
+ + "e.iam.v1.TestIamPermissionsRequest\032).goo"
+ + "gle.iam.v1.TestIamPermissionsResponse\"]\332"
+ + "A\024resource,permissions\202\323\344\223\002@\";/v1/{resou"
+ + "rce=organizations/*/sources/*}:testIamPe"
+ + "rmissions:\001*\022\201\004\n+SimulateSecurityHealthA"
+ + "nalyticsCustomModule\022R.google.cloud.secu"
+ + "ritycenter.v1.SimulateSecurityHealthAnal"
+ + "yticsCustomModuleRequest\032S.google.cloud."
+ + "securitycenter.v1.SimulateSecurityHealth"
+ + "AnalyticsCustomModuleResponse\"\250\002\332A\035paren"
+ + "t,custom_config,resource\202\323\344\223\002\201\002\"S/v1/{pa"
+ + "rent=organizations/*/securityHealthAnaly"
+ + "ticsSettings}/customModules:simulate:\001*Z"
+ + "R\"M/v1/{parent=folders/*/securityHealthA"
+ + "nalyticsSettings}/customModules:simulate"
+ + ":\001*ZS\"N/v1/{parent=projects/*/securityHe"
+ + "althAnalyticsSettings}/customModules:sim"
+ + "ulate:\001*\022\320\003\n\024UpdateExternalSystem\022;.goog"
+ + "le.cloud.securitycenter.v1.UpdateExterna"
+ + "lSystemRequest\032..google.cloud.securityce"
+ + "nter.v1.ExternalSystem\"\312\002\332A\033external_sys"
+ + "tem,update_mask\202\323\344\223\002\245\0022Q/v1/{external_sy"
+ + "stem.name=organizations/*/sources/*/find"
+ + "ings/*/externalSystems/*}:\017external_syst"
+ + "emZ^2K/v1/{external_system.name=folders/"
+ + "*/sources/*/findings/*/externalSystems/*"
+ + "}:\017external_systemZ_2L/v1/{external_syst"
+ + "em.name=projects/*/sources/*/findings/*/"
+ + "externalSystems/*}:\017external_system\022\301\002\n\r"
+ + "UpdateFinding\0224.google.cloud.securitycen"
+ + "ter.v1.UpdateFindingRequest\032\'.google.clo"
+ + "ud.securitycenter.v1.Finding\"\320\001\332A\007findin"
+ + "g\202\323\344\223\002\277\00127/v1/{finding.name=organization"
+ + "s/*/sources/*/findings/*}:\007findingZ<21/v"
+ + "1/{finding.name=folders/*/sources/*/find"
+ + "ings/*}:\007findingZ=22/v1/{finding.name=pr"
+ + "ojects/*/sources/*/findings/*}:\007finding\022"
+ + "\335\002\n\020UpdateMuteConfig\0227.google.cloud.secu"
+ + "ritycenter.v1.UpdateMuteConfigRequest\032*."
+ + "google.cloud.securitycenter.v1.MuteConfi"
+ + "g\"\343\001\332A\027mute_config,update_mask\202\323\344\223\002\302\00124/"
+ + "v1/{mute_config.name=organizations/*/mut"
+ + "eConfigs/*}:\013mute_configZ=2./v1/{mute_co"
+ + "nfig.name=folders/*/muteConfigs/*}:\013mute"
+ + "_configZ>2//v1/{mute_config.name=project"
+ + "s/*/muteConfigs/*}:\013mute_config\022\333\003\n\030Upda"
+ + "teNotificationConfig\022?.google.cloud.secu"
+ + "ritycenter.v1.UpdateNotificationConfigRe"
+ + "quest\0322.google.cloud.securitycenter.v1.N"
+ + "otificationConfig\"\311\002\332A\023notification_conf"
+ + "ig\332A\037notification_config,update_mask\202\323\344\223"
+ + "\002\212\0022D/v1/{notification_config.name=organ"
+ + "izations/*/notificationConfigs/*}:\023notif"
+ + "ication_configZU2>/v1/{notification_conf"
+ + "ig.name=folders/*/notificationConfigs/*}"
+ + ":\023notification_configZV2?/v1/{notificati"
+ + "on_config.name=projects/*/notificationCo"
+ + "nfigs/*}:\023notification_config\022\223\002\n\032Update"
+ + "OrganizationSettings\022A.google.cloud.secu"
+ + "ritycenter.v1.UpdateOrganizationSettings"
+ + "Request\0324.google.cloud.securitycenter.v1"
+ + ".OrganizationSettings\"|\332A\025organization_s"
+ + "ettings\202\323\344\223\002^2E/v1/{organization_setting"
+ + "s.name=organizations/*/organizationSetti"
+ + "ngs}:\025organization_settings\022\324\005\n)UpdateSe"
+ + "curityHealthAnalyticsCustomModule\022P.goog"
+ + "le.cloud.securitycenter.v1.UpdateSecurit"
+ + "yHealthAnalyticsCustomModuleRequest\032C.go"
+ + "ogle.cloud.securitycenter.v1.SecurityHea"
+ + "lthAnalyticsCustomModule\"\217\004\332A3security_h"
+ + "ealth_analytics_custom_module,update_mas"
+ + "k\202\323\344\223\002\322\0032r/v1/{security_health_analytics"
+ + "_custom_module.name=organizations/*/secu"
+ + "rityHealthAnalyticsSettings/customModule"
+ + "s/*}:\'security_health_analytics_custom_m"
+ + "oduleZ\227\0012l/v1/{security_health_analytics"
+ + "_custom_module.name=folders/*/securityHe"
+ + "althAnalyticsSettings/customModules/*}:\'"
+ + "security_health_analytics_custom_moduleZ"
+ + "\230\0012m/v1/{security_health_analytics_custo"
+ + "m_module.name=projects/*/securityHealthA"
+ + "nalyticsSettings/customModules/*}:\'secur"
+ + "ity_health_analytics_custom_module\022\261\001\n\014U"
+ + "pdateSource\0223.google.cloud.securitycente"
+ + "r.v1.UpdateSourceRequest\032&.google.cloud."
+ + "securitycenter.v1.Source\"D\332A\006source\202\323\344\223\002"
+ + "52+/v1/{source.name=organizations/*/sour"
+ + "ces/*}:\006source\022\237\005\n\023UpdateSecurityMarks\022:"
+ + ".google.cloud.securitycenter.v1.UpdateSe"
+ + "curityMarksRequest\032-.google.cloud.securi"
+ + "tycenter.v1.SecurityMarks\"\234\004\332A\016security_"
+ + "marks\202\323\344\223\002\204\0042@/v1/{security_marks.name=o"
+ + "rganizations/*/assets/*/securityMarks}:\016"
+ + "security_marksZL2:/v1/{security_marks.na"
+ + "me=folders/*/assets/*/securityMarks}:\016se"
+ + "curity_marksZM2;/v1/{security_marks.name"
+ + "=projects/*/assets/*/securityMarks}:\016sec"
+ + "urity_marksZ^2L/v1/{security_marks.name="
+ + "organizations/*/sources/*/findings/*/sec"
+ + "urityMarks}:\016security_marksZX2F/v1/{secu"
+ + "rity_marks.name=folders/*/sources/*/find"
+ + "ings/*/securityMarks}:\016security_marksZY2"
+ + "G/v1/{security_marks.name=projects/*/sou"
+ + "rces/*/findings/*/securityMarks}:\016securi"
+ + "ty_marks\022\364\002\n\024CreateBigQueryExport\022;.goog"
+ + "le.cloud.securitycenter.v1.CreateBigQuer"
+ + "yExportRequest\032..google.cloud.securityce"
+ + "nter.v1.BigQueryExport\"\356\001\332A+parent,big_q"
+ + "uery_export,big_query_export_id\202\323\344\223\002\271\001\","
+ + "/v1/{parent=organizations/*}/bigQueryExp"
+ + "orts:\020big_query_exportZ:\"&/v1/{parent=fo"
+ + "lders/*}/bigQueryExports:\020big_query_expo"
+ + "rtZ;\"\'/v1/{parent=projects/*}/bigQueryEx"
+ + "ports:\020big_query_export\022\377\001\n\024DeleteBigQue"
+ + "ryExport\022;.google.cloud.securitycenter.v"
+ + "1.DeleteBigQueryExportRequest\032\026.google.p"
+ + "rotobuf.Empty\"\221\001\332A\004name\202\323\344\223\002\203\001*,/v1/{nam"
+ + "e=organizations/*/bigQueryExports/*}Z(*&"
+ + "/v1/{name=folders/*/bigQueryExports/*}Z)"
+ + "*\'/v1/{name=projects/*/bigQueryExports/*"
+ + "}\022\230\003\n\024UpdateBigQueryExport\022;.google.clou"
+ + "d.securitycenter.v1.UpdateBigQueryExport"
+ + "Request\032..google.cloud.securitycenter.v1"
+ + ".BigQueryExport\"\222\002\332A\034big_query_export,up"
+ + "date_mask\202\323\344\223\002\354\0012=/v1/{big_query_export."
+ + "name=organizations/*/bigQueryExports/*}:"
+ + "\020big_query_exportZK27/v1/{big_query_expo"
+ + "rt.name=folders/*/bigQueryExports/*}:\020bi"
+ + "g_query_exportZL28/v1/{big_query_export."
+ + "name=projects/*/bigQueryExports/*}:\020big_"
+ + "query_export\022\244\002\n\023ListBigQueryExports\022:.g"
+ + "oogle.cloud.securitycenter.v1.ListBigQue"
+ + "ryExportsRequest\032;.google.cloud.security"
+ + "center.v1.ListBigQueryExportsResponse\"\223\001"
+ + "\332A\006parent\202\323\344\223\002\203\001\022,/v1/{parent=organizati"
+ + "ons/*}/bigQueryExportsZ(\022&/v1/{parent=fo"
+ + "lders/*}/bigQueryExportsZ)\022\'/v1/{parent="
+ + "projects/*}/bigQueryExports\032Q\312A\035security"
+ + "center.googleapis.com\322A.https://www.goog"
+ + "leapis.com/auth/cloud-platformB\330\001\n\"com.g"
+ + "oogle.cloud.securitycenter.v1P\001ZJcloud.g"
+ + "oogle.com/go/securitycenter/apiv1/securi"
+ + "tycenterpb;securitycenterpb\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(
@@ -942,6 +993,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(),
com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass
.getDescriptor(),
+ com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto
+ .getDescriptor(),
com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleProto
.getDescriptor(),
com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(),
@@ -954,6 +1007,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.FieldMaskProto.getDescriptor(),
com.google.protobuf.StructProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
+ com.google.rpc.StatusProto.getDescriptor(),
});
internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
@@ -1342,8 +1396,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Parent",
});
- internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor =
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor =
getDescriptor().getMessageTypes().get(41);
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "CustomConfig", "Resource",
+ });
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor =
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor,
+ new java.lang.String[] {
+ "ResourceType", "ResourceData", "IamPolicyData",
+ });
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor =
+ getDescriptor().getMessageTypes().get(42);
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor,
+ new java.lang.String[] {
+ "Result",
+ });
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor =
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor,
+ new java.lang.String[] {
+ "Finding", "NoViolation", "Error", "Result",
+ });
+ internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor =
+ getDescriptor().getMessageTypes().get(43);
internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor,
@@ -1351,7 +1441,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ExternalSystem", "UpdateMask",
});
internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor =
- getDescriptor().getMessageTypes().get(42);
+ getDescriptor().getMessageTypes().get(44);
internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor,
@@ -1359,7 +1449,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Finding", "UpdateMask",
});
internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor =
- getDescriptor().getMessageTypes().get(43);
+ getDescriptor().getMessageTypes().get(45);
internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor,
@@ -1367,7 +1457,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"MuteConfig", "UpdateMask",
});
internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor =
- getDescriptor().getMessageTypes().get(44);
+ getDescriptor().getMessageTypes().get(46);
internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor,
@@ -1375,7 +1465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"NotificationConfig", "UpdateMask",
});
internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor =
- getDescriptor().getMessageTypes().get(45);
+ getDescriptor().getMessageTypes().get(47);
internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor,
@@ -1383,7 +1473,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"OrganizationSettings", "UpdateMask",
});
internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor =
- getDescriptor().getMessageTypes().get(46);
+ getDescriptor().getMessageTypes().get(48);
internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor,
@@ -1391,7 +1481,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"SecurityHealthAnalyticsCustomModule", "UpdateMask",
});
internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor =
- getDescriptor().getMessageTypes().get(47);
+ getDescriptor().getMessageTypes().get(49);
internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor,
@@ -1399,7 +1489,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Source", "UpdateMask",
});
internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor =
- getDescriptor().getMessageTypes().get(48);
+ getDescriptor().getMessageTypes().get(50);
internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor,
@@ -1407,7 +1497,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"SecurityMarks", "UpdateMask", "StartTime",
});
internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor =
- getDescriptor().getMessageTypes().get(49);
+ getDescriptor().getMessageTypes().get(51);
internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor,
@@ -1415,7 +1505,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "BigQueryExport", "BigQueryExportId",
});
internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor =
- getDescriptor().getMessageTypes().get(50);
+ getDescriptor().getMessageTypes().get(52);
internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor,
@@ -1423,7 +1513,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"BigQueryExport", "UpdateMask",
});
internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor =
- getDescriptor().getMessageTypes().get(51);
+ getDescriptor().getMessageTypes().get(53);
internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor,
@@ -1431,7 +1521,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "PageSize", "PageToken",
});
internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor =
- getDescriptor().getMessageTypes().get(52);
+ getDescriptor().getMessageTypes().get(54);
internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor,
@@ -1439,7 +1529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"BigQueryExports", "NextPageToken",
});
internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor =
- getDescriptor().getMessageTypes().get(53);
+ getDescriptor().getMessageTypes().get(55);
internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor,
@@ -1472,6 +1562,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor();
com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor();
com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor();
+ com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto.getDescriptor();
com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleProto.getDescriptor();
com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor();
com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor();
@@ -1483,6 +1574,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.FieldMaskProto.getDescriptor();
com.google.protobuf.StructProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
+ com.google.rpc.StatusProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java
new file mode 100644
index 000000000000..25a77ee9f654
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SimulateSecurityHealthAnalyticsCustomModuleRequest.java
@@ -0,0 +1,2691 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/securitycenter/v1/securitycenter_service.proto
+
+package com.google.cloud.securitycenter.v1;
+
+/**
+ *
+ *
+ * + * Request message to simulate a CustomConfig against a given test resource. + * Maximum size of the request is 4 MB by default. + *+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest} + */ +public final class SimulateSecurityHealthAnalyticsCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) + SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SimulateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. + private SimulateSecurityHealthAnalyticsCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private SimulateSecurityHealthAnalyticsCustomModuleRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SimulateSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest + .class, + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest + .Builder.class); + } + + public interface SimulatedResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Required. The type of the resource, e.g. `compute.googleapis.com/Disk`. + *+ * + *
string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The resourceType.
+ */
+ java.lang.String getResourceType();
+ /**
+ *
+ *
+ * + * Required. The type of the resource, e.g. `compute.googleapis.com/Disk`. + *+ * + *
string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for resourceType.
+ */
+ com.google.protobuf.ByteString getResourceTypeBytes();
+
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the resourceData field is set.
+ */
+ boolean hasResourceData();
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The resourceData.
+ */
+ com.google.protobuf.Struct getResourceData();
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.StructOrBuilder getResourceDataOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the iamPolicyData field is set.
+ */
+ boolean hasIamPolicyData();
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The iamPolicyData.
+ */
+ com.google.iam.v1.Policy getIamPolicyData();
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.iam.v1.PolicyOrBuilder getIamPolicyDataOrBuilder();
+ }
+ /**
+ *
+ *
+ * + * Manually constructed resource. If the custom module only evaluates against + * the resource data, the iam_policy_data field can be omitted, and vice + * versa. + *+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource} + */ + public static final class SimulatedResource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource) + SimulatedResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SimulatedResource.newBuilder() to construct. + private SimulatedResource(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private SimulatedResource() { + resourceType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SimulatedResource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleRequest_SimulatedResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest + .SimulatedResource.class, + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest + .SimulatedResource.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceType_ = ""; + /** + * + * + *
+ * Required. The type of the resource, e.g. `compute.googleapis.com/Disk`. + *+ * + *
string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The resourceType.
+ */
+ @java.lang.Override
+ public java.lang.String getResourceType() {
+ java.lang.Object ref = resourceType_;
+ 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();
+ resourceType_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The type of the resource, e.g. `compute.googleapis.com/Disk`. + *+ * + *
string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for resourceType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getResourceTypeBytes() {
+ java.lang.Object ref = resourceType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RESOURCE_DATA_FIELD_NUMBER = 2;
+ private com.google.protobuf.Struct resourceData_;
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the resourceData field is set.
+ */
+ @java.lang.Override
+ public boolean hasResourceData() {
+ return resourceData_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The resourceData.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Struct getResourceData() {
+ return resourceData_ == null
+ ? com.google.protobuf.Struct.getDefaultInstance()
+ : resourceData_;
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.StructOrBuilder getResourceDataOrBuilder() {
+ return resourceData_ == null
+ ? com.google.protobuf.Struct.getDefaultInstance()
+ : resourceData_;
+ }
+
+ public static final int IAM_POLICY_DATA_FIELD_NUMBER = 3;
+ private com.google.iam.v1.Policy iamPolicyData_;
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the iamPolicyData field is set.
+ */
+ @java.lang.Override
+ public boolean hasIamPolicyData() {
+ return iamPolicyData_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The iamPolicyData.
+ */
+ @java.lang.Override
+ public com.google.iam.v1.Policy getIamPolicyData() {
+ return iamPolicyData_ == null
+ ? com.google.iam.v1.Policy.getDefaultInstance()
+ : iamPolicyData_;
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.iam.v1.PolicyOrBuilder getIamPolicyDataOrBuilder() {
+ return iamPolicyData_ == null
+ ? com.google.iam.v1.Policy.getDefaultInstance()
+ : iamPolicyData_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_);
+ }
+ if (resourceData_ != null) {
+ output.writeMessage(2, getResourceData());
+ }
+ if (iamPolicyData_ != null) {
+ output.writeMessage(3, getIamPolicyData());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceType_);
+ }
+ if (resourceData_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResourceData());
+ }
+ if (iamPolicyData_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIamPolicyData());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource
+ other =
+ (com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource)
+ obj;
+
+ if (!getResourceType().equals(other.getResourceType())) return false;
+ if (hasResourceData() != other.hasResourceData()) return false;
+ if (hasResourceData()) {
+ if (!getResourceData().equals(other.getResourceData())) return false;
+ }
+ if (hasIamPolicyData() != other.hasIamPolicyData()) return false;
+ if (hasIamPolicyData()) {
+ if (!getIamPolicyData().equals(other.getIamPolicyData())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceType().hashCode();
+ if (hasResourceData()) {
+ hash = (37 * hash) + RESOURCE_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceData().hashCode();
+ }
+ if (hasIamPolicyData()) {
+ hash = (37 * hash) + IAM_POLICY_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getIamPolicyData().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Manually constructed resource. If the custom module only evaluates against + * the resource data, the iam_policy_data field can be omitted, and vice + * versa. + *+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The type of the resource, e.g. `compute.googleapis.com/Disk`. + *+ * + *
string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The resourceType.
+ */
+ public java.lang.String getResourceType() {
+ java.lang.Object ref = resourceType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resourceType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The type of the resource, e.g. `compute.googleapis.com/Disk`. + *+ * + *
string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for resourceType.
+ */
+ public com.google.protobuf.ByteString getResourceTypeBytes() {
+ java.lang.Object ref = resourceType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The type of the resource, e.g. `compute.googleapis.com/Disk`. + *+ * + *
string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The resourceType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resourceType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The type of the resource, e.g. `compute.googleapis.com/Disk`. + *+ * + *
string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResourceType() {
+ resourceType_ = getDefaultInstance().getResourceType();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The type of the resource, e.g. `compute.googleapis.com/Disk`. + *+ * + *
string resource_type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for resourceType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ resourceType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Struct resourceData_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Struct,
+ com.google.protobuf.Struct.Builder,
+ com.google.protobuf.StructOrBuilder>
+ resourceDataBuilder_;
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the resourceData field is set.
+ */
+ public boolean hasResourceData() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The resourceData.
+ */
+ public com.google.protobuf.Struct getResourceData() {
+ if (resourceDataBuilder_ == null) {
+ return resourceData_ == null
+ ? com.google.protobuf.Struct.getDefaultInstance()
+ : resourceData_;
+ } else {
+ return resourceDataBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setResourceData(com.google.protobuf.Struct value) {
+ if (resourceDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resourceData_ = value;
+ } else {
+ resourceDataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setResourceData(com.google.protobuf.Struct.Builder builderForValue) {
+ if (resourceDataBuilder_ == null) {
+ resourceData_ = builderForValue.build();
+ } else {
+ resourceDataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeResourceData(com.google.protobuf.Struct value) {
+ if (resourceDataBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && resourceData_ != null
+ && resourceData_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getResourceDataBuilder().mergeFrom(value);
+ } else {
+ resourceData_ = value;
+ }
+ } else {
+ resourceDataBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearResourceData() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ resourceData_ = null;
+ if (resourceDataBuilder_ != null) {
+ resourceDataBuilder_.dispose();
+ resourceDataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Struct.Builder getResourceDataBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getResourceDataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.StructOrBuilder getResourceDataOrBuilder() {
+ if (resourceDataBuilder_ != null) {
+ return resourceDataBuilder_.getMessageOrBuilder();
+ } else {
+ return resourceData_ == null
+ ? com.google.protobuf.Struct.getDefaultInstance()
+ : resourceData_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the GCP resource. Should match the GCP + * resource JSON format. + *+ * + *
.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Struct,
+ com.google.protobuf.Struct.Builder,
+ com.google.protobuf.StructOrBuilder>
+ getResourceDataFieldBuilder() {
+ if (resourceDataBuilder_ == null) {
+ resourceDataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Struct,
+ com.google.protobuf.Struct.Builder,
+ com.google.protobuf.StructOrBuilder>(
+ getResourceData(), getParentForChildren(), isClean());
+ resourceData_ = null;
+ }
+ return resourceDataBuilder_;
+ }
+
+ private com.google.iam.v1.Policy iamPolicyData_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.iam.v1.Policy,
+ com.google.iam.v1.Policy.Builder,
+ com.google.iam.v1.PolicyOrBuilder>
+ iamPolicyDataBuilder_;
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the iamPolicyData field is set.
+ */
+ public boolean hasIamPolicyData() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The iamPolicyData.
+ */
+ public com.google.iam.v1.Policy getIamPolicyData() {
+ if (iamPolicyDataBuilder_ == null) {
+ return iamPolicyData_ == null
+ ? com.google.iam.v1.Policy.getDefaultInstance()
+ : iamPolicyData_;
+ } else {
+ return iamPolicyDataBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setIamPolicyData(com.google.iam.v1.Policy value) {
+ if (iamPolicyDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ iamPolicyData_ = value;
+ } else {
+ iamPolicyDataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setIamPolicyData(com.google.iam.v1.Policy.Builder builderForValue) {
+ if (iamPolicyDataBuilder_ == null) {
+ iamPolicyData_ = builderForValue.build();
+ } else {
+ iamPolicyDataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeIamPolicyData(com.google.iam.v1.Policy value) {
+ if (iamPolicyDataBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && iamPolicyData_ != null
+ && iamPolicyData_ != com.google.iam.v1.Policy.getDefaultInstance()) {
+ getIamPolicyDataBuilder().mergeFrom(value);
+ } else {
+ iamPolicyData_ = value;
+ }
+ } else {
+ iamPolicyDataBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearIamPolicyData() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ iamPolicyData_ = null;
+ if (iamPolicyDataBuilder_ != null) {
+ iamPolicyDataBuilder_.dispose();
+ iamPolicyDataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.iam.v1.Policy.Builder getIamPolicyDataBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getIamPolicyDataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.iam.v1.PolicyOrBuilder getIamPolicyDataOrBuilder() {
+ if (iamPolicyDataBuilder_ != null) {
+ return iamPolicyDataBuilder_.getMessageOrBuilder();
+ } else {
+ return iamPolicyData_ == null
+ ? com.google.iam.v1.Policy.getDefaultInstance()
+ : iamPolicyData_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. A representation of the IAM policy. + *+ * + *
.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.iam.v1.Policy,
+ com.google.iam.v1.Policy.Builder,
+ com.google.iam.v1.PolicyOrBuilder>
+ getIamPolicyDataFieldBuilder() {
+ if (iamPolicyDataBuilder_ == null) {
+ iamPolicyDataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.iam.v1.Policy,
+ com.google.iam.v1.Policy.Builder,
+ com.google.iam.v1.PolicyOrBuilder>(
+ getIamPolicyData(), getParentForChildren(), isClean());
+ iamPolicyData_ = null;
+ }
+ return iamPolicyDataBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource)
+ private static final com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource();
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The relative resource name of the organization, project, or + * folder. See: + * https://cloud.google.com/apis/design/resource_names#relative_resource_name + * An example is: + * "organizations/{organization_id}". + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The relative resource name of the organization, project, or + * folder. See: + * https://cloud.google.com/apis/design/resource_names#relative_resource_name + * An example is: + * "organizations/{organization_id}". + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CUSTOM_CONFIG_FIELD_NUMBER = 2;
+ private com.google.cloud.securitycenter.v1.CustomConfig customConfig_;
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the customConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasCustomConfig() {
+ return customConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The customConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.CustomConfig getCustomConfig() {
+ return customConfig_ == null
+ ? com.google.cloud.securitycenter.v1.CustomConfig.getDefaultInstance()
+ : customConfig_;
+ }
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() {
+ return customConfig_ == null
+ ? com.google.cloud.securitycenter.v1.CustomConfig.getDefaultInstance()
+ : customConfig_;
+ }
+
+ public static final int RESOURCE_FIELD_NUMBER = 3;
+ private com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource
+ resource_;
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the resource field is set.
+ */
+ @java.lang.Override
+ public boolean hasResource() {
+ return resource_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The resource.
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource
+ getResource() {
+ return resource_ == null
+ ? com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource.getDefaultInstance()
+ : resource_;
+ }
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResourceOrBuilder
+ getResourceOrBuilder() {
+ return resource_ == null
+ ? com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource.getDefaultInstance()
+ : resource_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (customConfig_ != null) {
+ output.writeMessage(2, getCustomConfig());
+ }
+ if (resource_ != null) {
+ output.writeMessage(3, getResource());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (customConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomConfig());
+ }
+ if (resource_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest other =
+ (com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (hasCustomConfig() != other.hasCustomConfig()) return false;
+ if (hasCustomConfig()) {
+ if (!getCustomConfig().equals(other.getCustomConfig())) return false;
+ }
+ if (hasResource() != other.hasResource()) return false;
+ if (hasResource()) {
+ if (!getResource().equals(other.getResource())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasCustomConfig()) {
+ hash = (37 * hash) + CUSTOM_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getCustomConfig().hashCode();
+ }
+ if (hasResource()) {
+ hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getResource().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message to simulate a CustomConfig against a given test resource. + * Maximum size of the request is 4 MB by default. + *+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The relative resource name of the organization, project, or + * folder. See: + * https://cloud.google.com/apis/design/resource_names#relative_resource_name + * An example is: + * "organizations/{organization_id}". + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The relative resource name of the organization, project, or + * folder. See: + * https://cloud.google.com/apis/design/resource_names#relative_resource_name + * An example is: + * "organizations/{organization_id}". + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The relative resource name of the organization, project, or + * folder. See: + * https://cloud.google.com/apis/design/resource_names#relative_resource_name + * An example is: + * "organizations/{organization_id}". + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The relative resource name of the organization, project, or + * folder. See: + * https://cloud.google.com/apis/design/resource_names#relative_resource_name + * An example is: + * "organizations/{organization_id}". + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The relative resource name of the organization, project, or + * folder. See: + * https://cloud.google.com/apis/design/resource_names#relative_resource_name + * An example is: + * "organizations/{organization_id}". + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.securitycenter.v1.CustomConfig customConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1.CustomConfig,
+ com.google.cloud.securitycenter.v1.CustomConfig.Builder,
+ com.google.cloud.securitycenter.v1.CustomConfigOrBuilder>
+ customConfigBuilder_;
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the customConfig field is set.
+ */
+ public boolean hasCustomConfig() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The customConfig.
+ */
+ public com.google.cloud.securitycenter.v1.CustomConfig getCustomConfig() {
+ if (customConfigBuilder_ == null) {
+ return customConfig_ == null
+ ? com.google.cloud.securitycenter.v1.CustomConfig.getDefaultInstance()
+ : customConfig_;
+ } else {
+ return customConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setCustomConfig(com.google.cloud.securitycenter.v1.CustomConfig value) {
+ if (customConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ customConfig_ = value;
+ } else {
+ customConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setCustomConfig(
+ com.google.cloud.securitycenter.v1.CustomConfig.Builder builderForValue) {
+ if (customConfigBuilder_ == null) {
+ customConfig_ = builderForValue.build();
+ } else {
+ customConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeCustomConfig(com.google.cloud.securitycenter.v1.CustomConfig value) {
+ if (customConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && customConfig_ != null
+ && customConfig_
+ != com.google.cloud.securitycenter.v1.CustomConfig.getDefaultInstance()) {
+ getCustomConfigBuilder().mergeFrom(value);
+ } else {
+ customConfig_ = value;
+ }
+ } else {
+ customConfigBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearCustomConfig() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ customConfig_ = null;
+ if (customConfigBuilder_ != null) {
+ customConfigBuilder_.dispose();
+ customConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.securitycenter.v1.CustomConfig.Builder getCustomConfigBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getCustomConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.securitycenter.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() {
+ if (customConfigBuilder_ != null) {
+ return customConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return customConfig_ == null
+ ? com.google.cloud.securitycenter.v1.CustomConfig.getDefaultInstance()
+ : customConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1.CustomConfig,
+ com.google.cloud.securitycenter.v1.CustomConfig.Builder,
+ com.google.cloud.securitycenter.v1.CustomConfigOrBuilder>
+ getCustomConfigFieldBuilder() {
+ if (customConfigBuilder_ == null) {
+ customConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1.CustomConfig,
+ com.google.cloud.securitycenter.v1.CustomConfig.Builder,
+ com.google.cloud.securitycenter.v1.CustomConfigOrBuilder>(
+ getCustomConfig(), getParentForChildren(), isClean());
+ customConfig_ = null;
+ }
+ return customConfigBuilder_;
+ }
+
+ private com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource
+ resource_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource,
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource.Builder,
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResourceOrBuilder>
+ resourceBuilder_;
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the resource field is set.
+ */
+ public boolean hasResource() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The resource.
+ */
+ public com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource
+ getResource() {
+ if (resourceBuilder_ == null) {
+ return resource_ == null
+ ? com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource.getDefaultInstance()
+ : resource_;
+ } else {
+ return resourceBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setResource(
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource
+ value) {
+ if (resourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resource_ = value;
+ } else {
+ resourceBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setResource(
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource.Builder
+ builderForValue) {
+ if (resourceBuilder_ == null) {
+ resource_ = builderForValue.build();
+ } else {
+ resourceBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeResource(
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource
+ value) {
+ if (resourceBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && resource_ != null
+ && resource_
+ != com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
+ .getDefaultInstance()) {
+ getResourceBuilder().mergeFrom(value);
+ } else {
+ resource_ = value;
+ }
+ } else {
+ resourceBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearResource() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ resource_ = null;
+ if (resourceBuilder_ != null) {
+ resourceBuilder_.dispose();
+ resourceBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource.Builder
+ getResourceBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getResourceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResourceOrBuilder
+ getResourceOrBuilder() {
+ if (resourceBuilder_ != null) {
+ return resourceBuilder_.getMessageOrBuilder();
+ } else {
+ return resource_ == null
+ ? com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource.getDefaultInstance()
+ : resource_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource,
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource.Builder,
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResourceOrBuilder>
+ getResourceFieldBuilder() {
+ if (resourceBuilder_ == null) {
+ resourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource,
+ com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder,
+ com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder>(
+ getResource(), getParentForChildren(), isClean());
+ resource_ = null;
+ }
+ return resourceBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest)
+ private static final com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest();
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<
+ SimulateSecurityHealthAnalyticsCustomModuleRequest>
+ PARSER =
+ new com.google.protobuf.AbstractParser<
+ SimulateSecurityHealthAnalyticsCustomModuleRequest>() {
+ @java.lang.Override
+ public SimulateSecurityHealthAnalyticsCustomModuleRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser+ * Required. The relative resource name of the organization, project, or + * folder. See: + * https://cloud.google.com/apis/design/resource_names#relative_resource_name + * An example is: + * "organizations/{organization_id}". + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. The relative resource name of the organization, project, or + * folder. See: + * https://cloud.google.com/apis/design/resource_names#relative_resource_name + * An example is: + * "organizations/{organization_id}". + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the customConfig field is set.
+ */
+ boolean hasCustomConfig();
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The customConfig.
+ */
+ com.google.cloud.securitycenter.v1.CustomConfig getCustomConfig();
+ /**
+ *
+ *
+ * + * Required. The user specified custom configuration to test. + *+ * + *
+ * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.securitycenter.v1.CustomConfigOrBuilder getCustomConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the resource field is set.
+ */
+ boolean hasResource();
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The resource.
+ */
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResource
+ getResource();
+ /**
+ *
+ *
+ * + * Required. Resource data to simulate custom module against. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest
+ .SimulatedResourceOrBuilder
+ getResourceOrBuilder();
+}
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java
new file mode 100644
index 000000000000..314755c282ae
--- /dev/null
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse.java
@@ -0,0 +1,2415 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/securitycenter/v1/securitycenter_service.proto
+
+package com.google.cloud.securitycenter.v1;
+
+/**
+ *
+ *
+ * + * Response message for simulating a SecurityHealthAnalyticsCustomModule against + * a given resource. + *+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse} + */ +public final class SimulateSecurityHealthAnalyticsCustomModuleResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse) + SimulateSecurityHealthAnalyticsCustomModuleResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SimulateSecurityHealthAnalyticsCustomModuleResponse.newBuilder() to construct. + private SimulateSecurityHealthAnalyticsCustomModuleResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private SimulateSecurityHealthAnalyticsCustomModuleResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SimulateSecurityHealthAnalyticsCustomModuleResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse + .class, + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse + .Builder.class); + } + + public interface SimulatedResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ *
+ * @return Whether the finding field is set.
+ */
+ boolean hasFinding();
+ /**
+ *
+ *
+ * + * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ *
+ * @return The finding.
+ */
+ com.google.cloud.securitycenter.v1.Finding getFinding();
+ /**
+ *
+ *
+ * + * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ */
+ com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder();
+
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ *
+ * @return Whether the noViolation field is set.
+ */
+ boolean hasNoViolation();
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ *
+ * @return The noViolation.
+ */
+ com.google.protobuf.Empty getNoViolation();
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ */
+ com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder();
+
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ *
+ * @return Whether the error field is set.
+ */
+ boolean hasError();
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ *
+ * @return The error.
+ */
+ com.google.rpc.Status getError();
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ com.google.rpc.StatusOrBuilder getErrorOrBuilder();
+
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult.ResultCase
+ getResultCase();
+ }
+ /**
+ *
+ *
+ * + * Possible test result. + *+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult} + */ + public static final class SimulatedResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult) + SimulatedResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use SimulatedResult.newBuilder() to construct. + private SimulatedResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private SimulatedResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SimulatedResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SimulateSecurityHealthAnalyticsCustomModuleResponse_SimulatedResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse + .SimulatedResult.class, + com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse + .SimulatedResult.Builder.class); + } + + private int resultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FINDING(1), + NO_VIOLATION(2), + ERROR(3), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 1: + return FINDING; + case 2: + return NO_VIOLATION; + case 3: + return ERROR; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int FINDING_FIELD_NUMBER = 1; + /** + * + * + *
+ * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ *
+ * @return Whether the finding field is set.
+ */
+ @java.lang.Override
+ public boolean hasFinding() {
+ return resultCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ *
+ * @return The finding.
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.Finding getFinding() {
+ if (resultCase_ == 1) {
+ return (com.google.cloud.securitycenter.v1.Finding) result_;
+ }
+ return com.google.cloud.securitycenter.v1.Finding.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() {
+ if (resultCase_ == 1) {
+ return (com.google.cloud.securitycenter.v1.Finding) result_;
+ }
+ return com.google.cloud.securitycenter.v1.Finding.getDefaultInstance();
+ }
+
+ public static final int NO_VIOLATION_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ *
+ * @return Whether the noViolation field is set.
+ */
+ @java.lang.Override
+ public boolean hasNoViolation() {
+ return resultCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ *
+ * @return The noViolation.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Empty getNoViolation() {
+ if (resultCase_ == 2) {
+ return (com.google.protobuf.Empty) result_;
+ }
+ return com.google.protobuf.Empty.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ */
+ @java.lang.Override
+ public com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder() {
+ if (resultCase_ == 2) {
+ return (com.google.protobuf.Empty) result_;
+ }
+ return com.google.protobuf.Empty.getDefaultInstance();
+ }
+
+ public static final int ERROR_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ *
+ * @return Whether the error field is set.
+ */
+ @java.lang.Override
+ public boolean hasError() {
+ return resultCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ *
+ * @return The error.
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getError() {
+ if (resultCase_ == 3) {
+ return (com.google.rpc.Status) result_;
+ }
+ return com.google.rpc.Status.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
+ if (resultCase_ == 3) {
+ return (com.google.rpc.Status) result_;
+ }
+ return com.google.rpc.Status.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (resultCase_ == 1) {
+ output.writeMessage(1, (com.google.cloud.securitycenter.v1.Finding) result_);
+ }
+ if (resultCase_ == 2) {
+ output.writeMessage(2, (com.google.protobuf.Empty) result_);
+ }
+ if (resultCase_ == 3) {
+ output.writeMessage(3, (com.google.rpc.Status) result_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (resultCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.cloud.securitycenter.v1.Finding) result_);
+ }
+ if (resultCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.protobuf.Empty) result_);
+ }
+ if (resultCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.rpc.Status) result_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult
+ other =
+ (com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult)
+ obj;
+
+ if (!getResultCase().equals(other.getResultCase())) return false;
+ switch (resultCase_) {
+ case 1:
+ if (!getFinding().equals(other.getFinding())) return false;
+ break;
+ case 2:
+ if (!getNoViolation().equals(other.getNoViolation())) return false;
+ break;
+ case 3:
+ if (!getError().equals(other.getError())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (resultCase_) {
+ case 1:
+ hash = (37 * hash) + FINDING_FIELD_NUMBER;
+ hash = (53 * hash) + getFinding().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + NO_VIOLATION_FIELD_NUMBER;
+ hash = (53 * hash) + getNoViolation().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Possible test result. + *+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ *
+ * @return Whether the finding field is set.
+ */
+ @java.lang.Override
+ public boolean hasFinding() {
+ return resultCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ *
+ * @return The finding.
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.Finding getFinding() {
+ if (findingBuilder_ == null) {
+ if (resultCase_ == 1) {
+ return (com.google.cloud.securitycenter.v1.Finding) result_;
+ }
+ return com.google.cloud.securitycenter.v1.Finding.getDefaultInstance();
+ } else {
+ if (resultCase_ == 1) {
+ return findingBuilder_.getMessage();
+ }
+ return com.google.cloud.securitycenter.v1.Finding.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ */
+ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) {
+ if (findingBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result_ = value;
+ onChanged();
+ } else {
+ findingBuilder_.setMessage(value);
+ }
+ resultCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ */
+ public Builder setFinding(
+ com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) {
+ if (findingBuilder_ == null) {
+ result_ = builderForValue.build();
+ onChanged();
+ } else {
+ findingBuilder_.setMessage(builderForValue.build());
+ }
+ resultCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ */
+ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) {
+ if (findingBuilder_ == null) {
+ if (resultCase_ == 1
+ && result_ != com.google.cloud.securitycenter.v1.Finding.getDefaultInstance()) {
+ result_ =
+ com.google.cloud.securitycenter.v1.Finding.newBuilder(
+ (com.google.cloud.securitycenter.v1.Finding) result_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ result_ = value;
+ }
+ onChanged();
+ } else {
+ if (resultCase_ == 1) {
+ findingBuilder_.mergeFrom(value);
+ } else {
+ findingBuilder_.setMessage(value);
+ }
+ }
+ resultCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ */
+ public Builder clearFinding() {
+ if (findingBuilder_ == null) {
+ if (resultCase_ == 1) {
+ resultCase_ = 0;
+ result_ = null;
+ onChanged();
+ }
+ } else {
+ if (resultCase_ == 1) {
+ resultCase_ = 0;
+ result_ = null;
+ }
+ findingBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ */
+ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() {
+ return getFindingFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() {
+ if ((resultCase_ == 1) && (findingBuilder_ != null)) {
+ return findingBuilder_.getMessageOrBuilder();
+ } else {
+ if (resultCase_ == 1) {
+ return (com.google.cloud.securitycenter.v1.Finding) result_;
+ }
+ return com.google.cloud.securitycenter.v1.Finding.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Finding that would be published for the test case, + * if a violation is detected. + *+ * + *
.google.cloud.securitycenter.v1.Finding finding = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1.Finding,
+ com.google.cloud.securitycenter.v1.Finding.Builder,
+ com.google.cloud.securitycenter.v1.FindingOrBuilder>
+ getFindingFieldBuilder() {
+ if (findingBuilder_ == null) {
+ if (!(resultCase_ == 1)) {
+ result_ = com.google.cloud.securitycenter.v1.Finding.getDefaultInstance();
+ }
+ findingBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1.Finding,
+ com.google.cloud.securitycenter.v1.Finding.Builder,
+ com.google.cloud.securitycenter.v1.FindingOrBuilder>(
+ (com.google.cloud.securitycenter.v1.Finding) result_,
+ getParentForChildren(),
+ isClean());
+ result_ = null;
+ }
+ resultCase_ = 1;
+ onChanged();
+ return findingBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Empty,
+ com.google.protobuf.Empty.Builder,
+ com.google.protobuf.EmptyOrBuilder>
+ noViolationBuilder_;
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ *
+ * @return Whether the noViolation field is set.
+ */
+ @java.lang.Override
+ public boolean hasNoViolation() {
+ return resultCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ *
+ * @return The noViolation.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Empty getNoViolation() {
+ if (noViolationBuilder_ == null) {
+ if (resultCase_ == 2) {
+ return (com.google.protobuf.Empty) result_;
+ }
+ return com.google.protobuf.Empty.getDefaultInstance();
+ } else {
+ if (resultCase_ == 2) {
+ return noViolationBuilder_.getMessage();
+ }
+ return com.google.protobuf.Empty.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ */
+ public Builder setNoViolation(com.google.protobuf.Empty value) {
+ if (noViolationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result_ = value;
+ onChanged();
+ } else {
+ noViolationBuilder_.setMessage(value);
+ }
+ resultCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ */
+ public Builder setNoViolation(com.google.protobuf.Empty.Builder builderForValue) {
+ if (noViolationBuilder_ == null) {
+ result_ = builderForValue.build();
+ onChanged();
+ } else {
+ noViolationBuilder_.setMessage(builderForValue.build());
+ }
+ resultCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ */
+ public Builder mergeNoViolation(com.google.protobuf.Empty value) {
+ if (noViolationBuilder_ == null) {
+ if (resultCase_ == 2 && result_ != com.google.protobuf.Empty.getDefaultInstance()) {
+ result_ =
+ com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) result_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ result_ = value;
+ }
+ onChanged();
+ } else {
+ if (resultCase_ == 2) {
+ noViolationBuilder_.mergeFrom(value);
+ } else {
+ noViolationBuilder_.setMessage(value);
+ }
+ }
+ resultCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ */
+ public Builder clearNoViolation() {
+ if (noViolationBuilder_ == null) {
+ if (resultCase_ == 2) {
+ resultCase_ = 0;
+ result_ = null;
+ onChanged();
+ }
+ } else {
+ if (resultCase_ == 2) {
+ resultCase_ = 0;
+ result_ = null;
+ }
+ noViolationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ */
+ public com.google.protobuf.Empty.Builder getNoViolationBuilder() {
+ return getNoViolationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ */
+ @java.lang.Override
+ public com.google.protobuf.EmptyOrBuilder getNoViolationOrBuilder() {
+ if ((resultCase_ == 2) && (noViolationBuilder_ != null)) {
+ return noViolationBuilder_.getMessageOrBuilder();
+ } else {
+ if (resultCase_ == 2) {
+ return (com.google.protobuf.Empty) result_;
+ }
+ return com.google.protobuf.Empty.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Indicates that the test case does not trigger any violation. + *+ * + *
.google.protobuf.Empty no_violation = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Empty,
+ com.google.protobuf.Empty.Builder,
+ com.google.protobuf.EmptyOrBuilder>
+ getNoViolationFieldBuilder() {
+ if (noViolationBuilder_ == null) {
+ if (!(resultCase_ == 2)) {
+ result_ = com.google.protobuf.Empty.getDefaultInstance();
+ }
+ noViolationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Empty,
+ com.google.protobuf.Empty.Builder,
+ com.google.protobuf.EmptyOrBuilder>(
+ (com.google.protobuf.Empty) result_, getParentForChildren(), isClean());
+ result_ = null;
+ }
+ resultCase_ = 2;
+ onChanged();
+ return noViolationBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ errorBuilder_;
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ *
+ * @return Whether the error field is set.
+ */
+ @java.lang.Override
+ public boolean hasError() {
+ return resultCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ *
+ * @return The error.
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getError() {
+ if (errorBuilder_ == null) {
+ if (resultCase_ == 3) {
+ return (com.google.rpc.Status) result_;
+ }
+ return com.google.rpc.Status.getDefaultInstance();
+ } else {
+ if (resultCase_ == 3) {
+ return errorBuilder_.getMessage();
+ }
+ return com.google.rpc.Status.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ public Builder setError(com.google.rpc.Status value) {
+ if (errorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result_ = value;
+ onChanged();
+ } else {
+ errorBuilder_.setMessage(value);
+ }
+ resultCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+ if (errorBuilder_ == null) {
+ result_ = builderForValue.build();
+ onChanged();
+ } else {
+ errorBuilder_.setMessage(builderForValue.build());
+ }
+ resultCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ public Builder mergeError(com.google.rpc.Status value) {
+ if (errorBuilder_ == null) {
+ if (resultCase_ == 3 && result_ != com.google.rpc.Status.getDefaultInstance()) {
+ result_ =
+ com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ result_ = value;
+ }
+ onChanged();
+ } else {
+ if (resultCase_ == 3) {
+ errorBuilder_.mergeFrom(value);
+ } else {
+ errorBuilder_.setMessage(value);
+ }
+ }
+ resultCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ public Builder clearError() {
+ if (errorBuilder_ == null) {
+ if (resultCase_ == 3) {
+ resultCase_ = 0;
+ result_ = null;
+ onChanged();
+ }
+ } else {
+ if (resultCase_ == 3) {
+ resultCase_ = 0;
+ result_ = null;
+ }
+ errorBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ public com.google.rpc.Status.Builder getErrorBuilder() {
+ return getErrorFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
+ if ((resultCase_ == 3) && (errorBuilder_ != null)) {
+ return errorBuilder_.getMessageOrBuilder();
+ } else {
+ if (resultCase_ == 3) {
+ return (com.google.rpc.Status) result_;
+ }
+ return com.google.rpc.Status.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Error encountered during the test. + *+ * + *
.google.rpc.Status error = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ getErrorFieldBuilder() {
+ if (errorBuilder_ == null) {
+ if (!(resultCase_ == 3)) {
+ result_ = com.google.rpc.Status.getDefaultInstance();
+ }
+ errorBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>(
+ (com.google.rpc.Status) result_, getParentForChildren(), isClean());
+ result_ = null;
+ }
+ resultCase_ = 3;
+ onChanged();
+ return errorBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult)
+ private static final com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult();
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ *
+ * @return Whether the result field is set.
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return result_ != null;
+ }
+ /**
+ *
+ *
+ * + * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ *
+ * @return The result.
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult
+ getResult() {
+ return result_ == null
+ ? com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult.getDefaultInstance()
+ : result_;
+ }
+ /**
+ *
+ *
+ * + * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResultOrBuilder
+ getResultOrBuilder() {
+ return result_ == null
+ ? com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult.getDefaultInstance()
+ : result_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (result_ != null) {
+ output.writeMessage(1, getResult());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (result_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResult());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse other =
+ (com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse)
+ obj;
+
+ if (hasResult() != other.hasResult()) return false;
+ if (hasResult()) {
+ if (!getResult().equals(other.getResult())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasResult()) {
+ hash = (37 * hash) + RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + getResult().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Response message for simulating a SecurityHealthAnalyticsCustomModule against + * a given resource. + *+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ *
+ * @return Whether the result field is set.
+ */
+ public boolean hasResult() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ *
+ * @return The result.
+ */
+ public com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult
+ getResult() {
+ if (resultBuilder_ == null) {
+ return result_ == null
+ ? com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult.getDefaultInstance()
+ : result_;
+ } else {
+ return resultBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ */
+ public Builder setResult(
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult
+ value) {
+ if (resultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result_ = value;
+ } else {
+ resultBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ */
+ public Builder setResult(
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult.Builder
+ builderForValue) {
+ if (resultBuilder_ == null) {
+ result_ = builderForValue.build();
+ } else {
+ resultBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ */
+ public Builder mergeResult(
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult
+ value) {
+ if (resultBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && result_ != null
+ && result_
+ != com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult
+ .getDefaultInstance()) {
+ getResultBuilder().mergeFrom(value);
+ } else {
+ result_ = value;
+ }
+ } else {
+ resultBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ */
+ public Builder clearResult() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ result_ = null;
+ if (resultBuilder_ != null) {
+ resultBuilder_.dispose();
+ resultBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ */
+ public com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult.Builder
+ getResultBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getResultFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ */
+ public com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResultOrBuilder
+ getResultOrBuilder() {
+ if (resultBuilder_ != null) {
+ return resultBuilder_.getMessageOrBuilder();
+ } else {
+ return result_ == null
+ ? com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult.getDefaultInstance()
+ : result_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult,
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult.Builder,
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResultOrBuilder>
+ getResultFieldBuilder() {
+ if (resultBuilder_ == null) {
+ resultBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult,
+ com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult.Builder,
+ com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResultOrBuilder>(
+ getResult(), getParentForChildren(), isClean());
+ result_ = null;
+ }
+ return resultBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse)
+ private static final com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse();
+ }
+
+ public static com.google.cloud.securitycenter.v1
+ .SimulateSecurityHealthAnalyticsCustomModuleResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<
+ SimulateSecurityHealthAnalyticsCustomModuleResponse>
+ PARSER =
+ new com.google.protobuf.AbstractParser<
+ SimulateSecurityHealthAnalyticsCustomModuleResponse>() {
+ @java.lang.Override
+ public SimulateSecurityHealthAnalyticsCustomModuleResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser+ * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ *
+ * @return Whether the result field is set.
+ */
+ boolean hasResult();
+ /**
+ *
+ *
+ * + * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ *
+ * @return The result.
+ */
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResult
+ getResult();
+ /**
+ *
+ *
+ * + * Result for test case in the corresponding request. + *+ * + *
+ * .google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult result = 1;
+ *
+ */
+ com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse
+ .SimulatedResultOrBuilder
+ getResultOrBuilder();
+}
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 6c3fe0ea27e5..78c20386be2b 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
@@ -30,6 +30,7 @@ import "google/cloud/securitycenter/v1/mute_config.proto";
import "google/cloud/securitycenter/v1/notification_config.proto";
import "google/cloud/securitycenter/v1/organization_settings.proto";
import "google/cloud/securitycenter/v1/run_asset_discovery_response.proto";
+import "google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto";
import "google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto";
import "google/cloud/securitycenter/v1/security_marks.proto";
import "google/cloud/securitycenter/v1/source.proto";
@@ -41,6 +42,7 @@ import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
@@ -515,6 +517,25 @@ service SecurityCenter {
option (google.api.method_signature) = "resource,permissions";
}
+ // Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
+ rpc SimulateSecurityHealthAnalyticsCustomModule(
+ SimulateSecurityHealthAnalyticsCustomModuleRequest)
+ returns (SimulateSecurityHealthAnalyticsCustomModuleResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules:simulate"
+ body: "*"
+ additional_bindings {
+ post: "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules:simulate"
+ body: "*"
+ }
+ additional_bindings {
+ post: "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules:simulate"
+ body: "*"
+ }
+ };
+ option (google.api.method_signature) = "parent,custom_config,resource";
+ }
+
// Updates external system. This is for a given finding.
rpc UpdateExternalSystem(UpdateExternalSystemRequest)
returns (ExternalSystem) {
@@ -2030,6 +2051,62 @@ message RunAssetDiscoveryRequest {
];
}
+// Request message to simulate a CustomConfig against a given test resource.
+// Maximum size of the request is 4 MB by default.
+message SimulateSecurityHealthAnalyticsCustomModuleRequest {
+ // Manually constructed resource. If the custom module only evaluates against
+ // the resource data, the iam_policy_data field can be omitted, and vice
+ // versa.
+ message SimulatedResource {
+ // Required. The type of the resource, e.g. `compute.googleapis.com/Disk`.
+ string resource_type = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A representation of the GCP resource. Should match the GCP
+ // resource JSON format.
+ google.protobuf.Struct resource_data = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A representation of the IAM policy.
+ google.iam.v1.Policy iam_policy_data = 3
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Required. The relative resource name of the organization, project, or
+ // folder. See:
+ // https://cloud.google.com/apis/design/resource_names#relative_resource_name
+ // An example is:
+ // "organizations/{organization_id}".
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The user specified custom configuration to test.
+ CustomConfig custom_config = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Resource data to simulate custom module against.
+ SimulatedResource resource = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Response message for simulating a SecurityHealthAnalyticsCustomModule against
+// a given resource.
+message SimulateSecurityHealthAnalyticsCustomModuleResponse {
+ // Possible test result.
+ message SimulatedResult {
+ oneof result {
+ // Finding that would be published for the test case,
+ // if a violation is detected.
+ Finding finding = 1;
+
+ // Indicates that the test case does not trigger any violation.
+ google.protobuf.Empty no_violation = 2;
+
+ // Error encountered during the test.
+ google.rpc.Status error = 3;
+ }
+ }
+
+ // Result for test case in the corresponding request.
+ SimulatedResult result = 1;
+}
+
// Request message for updating a ExternalSystem resource.
message UpdateExternalSystemRequest {
// Required. The external system resource to update.
diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java
new file mode 100644
index 000000000000..aa4cf61ad9a1
--- /dev/null
+++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/simulatesecurityhealthanalyticscustommodule/AsyncSimulateSecurityHealthAnalyticsCustomModule.java
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.CustomConfig;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest;
+import com.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse;
+
+public class AsyncSimulateSecurityHealthAnalyticsCustomModule {
+
+ public static void main(String[] args) throws Exception {
+ asyncSimulateSecurityHealthAnalyticsCustomModule();
+ }
+
+ public static void asyncSimulateSecurityHealthAnalyticsCustomModule() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+ SimulateSecurityHealthAnalyticsCustomModuleRequest request =
+ SimulateSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
+ .setParent("parent-995424086")
+ .setCustomConfig(CustomConfig.newBuilder().build())
+ .setResource(
+ SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.newBuilder()
+ .build())
+ .build();
+ ApiFuture